-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Renamed ref-genome in rules (#106)
* Soft-coded the ref-genome DB * Including different databases for classification * Changes in Qiime env * fmt * fmt * fmt * fmt * fmt * fmt * fmt test * fmt * fmt * Separating DB download * fmt * fmt * Ref-DB calling changed --------- Co-authored-by: Ann-Kathrin Brüggemann <[email protected]> Co-authored-by: AKBrueggemann <[email protected]>
- Loading branch information
1 parent
1a15959
commit 0ffdb2a
Showing
14 changed files
with
115 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
if ( | ||
config["database"]["Greengenes"] == True, | ||
config["database"]["Silva"] == False, | ||
config["database"]["NCBI"] == False, | ||
): | ||
|
||
rule get_greengenes: | ||
output: | ||
seq="resources/ref-seqs.qza", | ||
tax="resources/ref-taxa.qza", | ||
params: | ||
seq=str(config["database"]["gg2-seq"]), | ||
tax=str(config["database"]["gg2-tax"]), | ||
log: | ||
"logs/prep_Greengenes.log", | ||
conda: | ||
"../envs/python.yaml" | ||
shell: | ||
"cd resources; " | ||
"wget -O ref-seqs.qza {params.seq}; " | ||
"wget -O ref-taxa.qza {params.tax}; " |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if ( | ||
config["database"]["NCBI"] == True, | ||
config["database"]["Silva"] == False, | ||
config["database"]["Greengenes"] == False, | ||
): | ||
|
||
rule get_NCBI_ref: | ||
output: | ||
seq="resources/ref-seqs.qza", | ||
tax="resources/ref-taxa.qza", | ||
params: | ||
query=config["database"]["NCBI-query"], | ||
log: | ||
"logs/prep_NCBI.log", | ||
conda: | ||
"../envs/qiime-only-env.yaml" | ||
shell: | ||
"qiime rescript get-ncbi-data " | ||
"--p-query {params.query} " | ||
"--o-sequences {output.seq} " | ||
"--o-taxonomy {output.tax} " | ||
"--verbose 2> {log} " |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
if ( | ||
config["database"]["Silva"] == True, | ||
config["database"]["Greengenes"] == False, | ||
config["database"]["NCBI"] == False, | ||
): | ||
|
||
rule get_SILVA: | ||
output: | ||
seq="resources/ref-seqs.qza", | ||
tax="resources/ref-taxa.qza", | ||
params: | ||
seq=str(config["database"]["download-path-seq"]), | ||
tax=str(config["database"]["download-path-tax"]), | ||
log: | ||
"logs/prep_SILVA.log", | ||
conda: | ||
"../envs/python.yaml" | ||
shell: | ||
"cd resources; " | ||
"wget -O ref-seqs.qza {params.seq}; " | ||
"wget -O ref-taxa.qza {params.tax}; " |
This file contains 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
This file contains 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
This file contains 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