Revision 31052e7c
Added by Chloe Quignot 6 months ago
demo_advanced/codes/Snakefile | ||
---|---|---|
fq="data/{sample}.fastq.gz",
|
||
idxFile=rules.bowtieIndex.output,
|
||
output:
|
||
bam=report(
|
||
pipe("result/bowtie/{sample}.sam"),
|
||
caption="report/bowtie2.rst",
|
||
category="Step 2 Bowtie2",
|
||
),
|
||
# not a good idea because bam files are heavy
|
||
bam=pipe("result/bowtie/{sample}.sam"),
|
||
log:
|
||
bwtout="result/logs/bowtie/{sample}_align.txt",
|
||
stderr="result/logs/bowtie/{sample}_align.stderr",
|
||
... | ... | |
shell:
|
||
"""
|
||
bowtie2 -x {params.idx} -U {input.fq} -p {threads} {params.extra} \
|
||
2> {log.bwtout} > {output}
|
||
2> {log.bwtout} > {output}
|
||
"""
|
||
|
||
|
||
... | ... | |
input:
|
||
"result/bowtie/{sample}.sam",
|
||
output:
|
||
protected("result/bowtie/{sample}.bam"),
|
||
report(
|
||
protected("result/bowtie/{sample}.bam"),
|
||
caption="report/bowtie2.rst",
|
||
category="Step 2 Bowtie2",
|
||
),
|
||
# not a good idea because bam files are heavy
|
||
log:
|
||
"result/logs/samtools/{sample}.txt",
|
||
benchmark:
|
demo_advanced/runRnaseq.sh | ||
---|---|---|
|
||
cd /path/to/the/project/
|
||
|
||
snakemake --executor cluster-generic --cluster-generic-submit-cmd "qsub -V -l walltime={resources.time_min} -l select=1:ncpus={threads}:mem={resources.mem}" --snakefile codes/Snakefile --profile codes/profile --configfile configfile.yaml &> smkpipeline.txt
|
||
# create directory for the pbs logs
|
||
mkdir pbs
|
||
|
||
snakemake --executor cluster-generic --cluster-generic-submit-cmd "qsub -V -l walltime={resources.time_min} -l select=1:ncpus={threads}:mem={resources.mem}" --snakefile codes/Snakefile --profile codes/profile --configfile configfile.yaml --report smkRnaseq_report.html
|
||
snakemake --executor cluster-generic --cluster-generic-submit-cmd "qsub -V -l walltime={resources.time_min} -l select=1:ncpus={threads}:mem={resources.mem} -e pbs/{name}_$PBS_JOBID.err -o pbs/{name}_$PBS_JOBID.out" --snakefile codes/Snakefile --profile codes/profile --configfile configfile.yaml &> smkpipeline.txt
|
||
|
||
snakemake --executor cluster-generic --cluster-generic-submit-cmd "qsub -V -l walltime={resources.time_min} -l select=1:ncpus={threads}:mem={resources.mem}" --snakefile codes/Snakefile --profile codes/profile --configfile configfile.yaml --report smkRnaseq_report.html
|
Also available in: Unified diff
add Emilie's changes from other repo: change report from bowtie2 to samtoolsSort