Skip to content

Commit

Permalink
Add clade selection into the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbruna committed Jan 20, 2023
1 parent fafcca0 commit 592e2ea
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
orthodb
.snakemake
clades
61 changes: 61 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,67 @@ orthoDBlinks = [
("level2species.tab", "https://data.orthodb.org/download/odb11v0_level2species.tab.gz"),
("levels.tab", "https://data.orthodb.org/download/odb11v0_levels.tab.gz")]


rule selectViridiplantae:
input:
"clades/Eukaryota.fa",
"orthodb/levels.tab",
"orthodb/level2species.tab"
output:
"clades/Viridiplantae.fa"
shell:
"./selectClade.py {input} Viridiplantae > {output}"

rule selectFungi:
input:
"clades/Eukaryota.fa",
"orthodb/levels.tab",
"orthodb/level2species.tab"
output:
"clades/Fungi.fa"
shell:
"./selectClade.py {input} Fungi > {output}"

rule selectVertebrata:
input:
"clades/Eukaryota.fa",
"orthodb/levels.tab",
"orthodb/level2species.tab"
output:
"clades/Vertebrata.fa"
shell:
"./selectClade.py {input} Vertebrata > {output}"

rule selectMetazoa:
input:
"clades/Eukaryota.fa",
"orthodb/levels.tab",
"orthodb/level2species.tab"
output:
"clades/Metazoa.fa"
shell:
"./selectClade.py {input} Metazoa > {output}"

rule selectArthropoda:
input:
"clades/Eukaryota.fa",
"orthodb/levels.tab",
"orthodb/level2species.tab"
output:
"clades/Arthropoda.fa"
shell:
"./selectClade.py {input} Arthropoda > {output}"

rule selectEukaryota:
input:
"orthodb/raw.fasta",
"orthodb/levels.tab",
"orthodb/level2species.tab"
output:
"clades/Eukaryota.fa"
shell:
"./selectClade.py {input} Eukaryota > {output}"

rule unzip:
input:
["orthodb/{f}.gz".format(f=filename) for (filename, _) in orthoDBlinks]
Expand Down

0 comments on commit 592e2ea

Please sign in to comment.