Snakemake workflow for SM-PATseq

public public 1yr ago 0 bookmarks

Description

A simple Snakemake file using a conda environment built from requirements.txt and helper scripts. This takes subread data resulting from a Poly-A tail reading experiment from the PacBio Sequel platform, assigns gene identities to t

Code Snippets

62
63
shell:
    "ccs -j {threads} --report-file PacBio{wildcards.r}/{wildcards.cell}/ccs_report.txt PacBio{wildcards.r}/{wildcards.cell}/*.subreads.bam {output.xml}"
SnakeMake From line 62 of main/Snakefile
73
74
shell:
    "lima --peek-guess --split-bam-named -s -j {threads} {input.ccs} {input.bcs} PacBio{wildcards.r}/{wildcards.cell}/split.bam;"
82
83
shell:
    "mkdir -p cell_reports/PacBio{wildcards.r}/{wildcards.cell}; runqc-reports -o cell_reports/PacBio{wildcards.r}/{wildcards.cell} {input.xml}"
SnakeMake From line 82 of main/Snakefile
93
94
95
shell:
    "mkdir -p merged_bams;"
    "samtools merge -f -@ {threads} {output} PacBio*/*/split.lbc{params.value}--lbc{params.value}.bam"
104
105
106
107
shell:
    "mkdir -p reads;"
    "samtools fastq {input} | gzip - > {output.fq};"
    "samtools fasta {input} | gzip - > {output.fa};"
120
121
122
shell:
    "mkdir -p {wildcards.id};"
    "perl {input.pl} {input.fa} {params.fadapter} {params.radapter} 2>{log} | gzip - > {output};"
SnakeMake From line 120 of main/Snakefile
130
131
132
133
shell:
    "mkdir -p {wildcards.id};"
    "minimap2 -a {transcripts} {input.read} | samtools sort -O BAM - > {output};"
    "samtools index {output}"
144
145
shell:
    "perl {input.pl} {input.minimap} {input.len} {params.gencode} | gzip - > {output}"
SnakeMake From line 144 of main/Snakefile
157
158
shell:
    "perl {input.pl} {input.minimap} {input.len} {params.gencode} 2>{log} >{output}"
SnakeMake From line 157 of main/Snakefile
ShowHide 6 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/ibenjame/SM-PATseq
Name: sm-patseq
Version: 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: MIT License
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...