Skip to content

Instantly share code, notes, and snippets.

@samuell
Created February 25, 2015 15:23
Show Gist options
  • Save samuell/e68c165bfe2b5184793e to your computer and use it in GitHub Desktop.
Save samuell/e68c165bfe2b5184793e to your computer and use it in GitHub Desktop.
Testing some stuff with snakemake ...
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"])
@samuell
Copy link
Author

samuell commented Feb 25, 2015

Run with e.g:

snakemake final --config='rid=r1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment