Open ctb opened 3 years ago
I can't assign myself yet, but happy to co-instruct this workshop :)
I cannot lead (may be a bit late to start). Pamela cannot make it.
I will do the first half and Titus will do the second. I'm thinking I can end before the "Running Salmon quant" section. That way Titus can teach how to add one last rule and then talk about tips, best practices, etc.
Draft lesson is up -- feel free to leave comments here or on the PR!
took a look at the notes so far, a few ideas :)
snakemake
command specifying the all
rule the first time. or say that by default when you run snakemake without specifying a rule, it chooses the all
rule.--dry-run
and then say the shorthand is -n
Suggested survey questions:
Pre-Survey: https://forms.gle/1wUXycHSPA4Gajt27 Post-Survey: https://forms.gle/jiSvrdHYUFBQdoBA9
suggestions for the future :)
nano -ET4 Snakefile
earlier.add multiple inputs to lesson
this is the final snakefile with multiple inputs & expand()
SAMPLES=["ERR458493", "ERR458501", "ERR458494", "ERR458500"]
print('samples are:', SAMPLES)
rule all:
input:
expand("{sample}_fastqc.html", sample=SAMPLES),
"orf_coding.fasta.gz",
"yeast_orfs",
expand("{sample}.quant", sample=SAMPLES),
rule make_fastqc:
input:
"{sample}.fastq.gz",
output:
"{sample}_fastqc.html",
"{sample}_fastqc.zip"
shell:
"fastqc {input}"
rule download_reference:
output:
"orf_coding.fasta.gz"
shell:
"curl -L -O https://downloads.yeastgenome.org/sequence/S288C_reference/orf_dna/orf_coding.fasta.gz"
rule index_reference:
input:
"orf_coding.fasta.gz"
output:
directory("yeast_orfs")
shell:
"salmon index --index yeast_orfs --transcripts {input}"
rule salmon_quant:
input:
fastq = "{sample}.fastq.gz",
index = "yeast_orfs"
output:
directory("{sample}.quant")
shell:
"salmon quant -i {input.index} --libType U -r {input.fastq} -o {output} --seqBias --gcBias"
Wednesday August 25 from 9 am - 11:30 PDT
Instructors: Abhijna Parigi and Titus Brown Moderator: Marisa Helpers:
Zoom link:
Description:
draft lesson: snakemake for workflows. https://github.com/ngs-docs/2021-GGG298/tree/latest/Week4-snakemake-for-workflows
owner: ???