Created
February 25, 2015 15:23
-
-
Save samuell/e68c165bfe2b5184793e to your computer and use it in GitHub Desktop.
Testing some stuff with snakemake ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule rawdata: | |
output: '{base}.raw.fa' | |
shell: 'echo "ACGTTGCA" > {output}' | |
rule atot: | |
input: '{base}.fa' | |
output: '{base}.atot.fa' | |
shell: 'cat {input} | sed "s/A/T/g" > {output}' | |
rule ctog: | |
input: '{base}.fa' | |
output: '{base}.ctog.fa' | |
shell: 'cat {input} | sed "s/C/G/g" > {output}' | |
rule ttoa: | |
input: '{base}.fa' | |
output: '{base}.ttoa.fa' | |
shell: 'cat {input} | sed "s/T/A/g" > {output}' | |
rule gtoc: | |
input: '{base}.fa' | |
output: '{base}.gtoc.fa' | |
shell: 'cat {input} | sed "s/G/C/g" > {output}' | |
rule final: | |
input: | |
expand("{rid}.raw.atot.ttoa.fa", rid=config["rid"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with e.g:
snakemake final --config='rid=r1'