forked from PennChopMicrobiomeProgram/16S_QIIME2
-
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.
- Loading branch information
Scott G. Daniel
committed
Jul 24, 2020
1 parent
51a3207
commit 9e7b9ed
Showing
3 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
rule all_vsearch: | ||
input: | ||
TARGET_VSEARCH | ||
|
||
rule run_vsearch: | ||
input: | ||
query = DENOISE_DIR + "/representative_seq_fasta/dna-sequences.fasta", | ||
db = config["sbx_vsearch"]["db"] | ||
output: | ||
reports = DENOISE_DIR + "/representative_seq_fasta/vsearch/vsearch_report.tsv"), | ||
alignments = DENOISE_DIR + "/representative_seq_fasta/vsearch/vsearch.fasta") | ||
threads: | ||
config["vsearch"]["threads"] | ||
params: | ||
iddef = config["vsearch"]["iddef"], | ||
min_id = config["vsearch"]["min_id"], | ||
userfields = config["vsearch"]["userfields"], | ||
weak_id = config["vsearch"]["weak_id"], | ||
fasta_width = config["vsearch"]["fasta_width"], | ||
maxaccepts = config["vsearch"]["maxaccepts"] | ||
shell: | ||
""" | ||
vsearch --usearch_global {input.query} \ | ||
--db {input.db} \ | ||
--userout {output.reports} \ | ||
--matched {output.alignments} \ | ||
--threads {threads} \ | ||
--iddef {params.iddef} \ | ||
--id {params.min_id} \ | ||
--userfields {params.userfields} \ | ||
--weak_id {params.weak_id} \ | ||
--fasta_width {params.fasta_width} \ | ||
--maxaccepts {params.maxaccepts} | ||
""" |