snakemake_examples/exercise0/Snakefile @ master
dafa07df | chloe.quignot | rule mafft:
|
|
input:
|
|||
1e5111ea | chloe.quignot | "fusionFasta/allSequences.fasta",
|
|
dafa07df | chloe.quignot | output:
|
|
1e5111ea | chloe.quignot | "mafft/mafft_res.fasta",
|
|
dafa07df | chloe.quignot | shell:
|
|
"""
|
|||
mafft {input} > {output}
|
|||
"""
|
|||
1e5111ea | chloe.quignot | ||
rule loadData:
|
|||
dafa07df | chloe.quignot | output:
|
|
"fasta/P01325.fasta", "fasta/P01308.fasta",
|
|||
1e5111ea | chloe.quignot | params:
|
|
dirFasta = "fasta",
|
|||
shell:
|
|||
"""
|
|||
dafa07df | chloe.quignot | wget --directory-prefix {params.dirFasta} https://www.uniprot.org/uniprot/P01325.fasta
|
|
wget --directory-prefix {params.dirFasta} https://www.uniprot.org/uniprot/P01308.fasta
|
|||
1e5111ea | chloe.quignot | """
|
|
rule fusionFasta:
|
|||
input:
|
|||
dafa07df | chloe.quignot | p1="fasta/P01325.fasta",
|
|
p2="fasta/P01308.fasta",
|
|||
1e5111ea | chloe.quignot | output:
|
|
"fusionFasta/allSequences.fasta",
|
|||
shell:
|
|||
"""
|
|||
dafa07df | chloe.quignot | cat {input.p1} {input.p2} > {output}
|
|
1e5111ea | chloe.quignot | """
|