Skip to content

Commit

Permalink
keep db in params
Browse files Browse the repository at this point in the history
  • Loading branch information
tpall committed Jan 5, 2019
1 parent 7f9f360 commit a5af957
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions rules/blast.smk
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ rule prepare_taxonomy_data:
## Blast against NT virus database
rule blastn_virus:
input:
query = rules.parse_megablast.output.unmapped,
db = config["virus_nt"]
query = rules.parse_megablast.output.unmapped
output:
out = "blast/{sample}_blastn_virus_{n,\d+}.tsv"
params:
db = config["virus_nt"],
task = "blastn",
evalue = config["blastn_virus"]["evalue"],
db_soft_mask = config["blastn_virus"]["db_soft_mask"],
Expand Down Expand Up @@ -46,11 +46,11 @@ rule parse_blastn_virus:
## Blastx unmapped sequences against NR virus database
rule blastx_virus:
input:
query = rules.parse_blastn_virus.output.unmapped,
db = config["virus_nr"]
query = rules.parse_blastn_virus.output.unmapped
output:
out = "blast/{sample}_blastx_virus_{n}.tsv"
params:
db = config["virus_nr"],
word_size = 6,
evalue = config["blastx_virus"]["evalue"],
db_soft_mask = config["blastx_virus"]["db_soft_mask"],
Expand Down Expand Up @@ -148,11 +148,11 @@ rule refbac_unmapped_masked:
## MegaBlast against NT to remove host sequences
rule megablast_nt:
input:
query = rules.refbac_unmapped_masked.output,
db = config["nt"]
query = rules.refbac_unmapped_masked.output
output:
out = "blast/{sample}_megablast_nt_{n,\d+}.tsv"
params:
db = config["nt"],
task = "megablast",
evalue = config["megablast_nt"]["evalue"],
word_size = config["megablast_nt"]["word_size"],
Expand Down Expand Up @@ -180,11 +180,11 @@ rule parse_megablast_nt:
## Blastn against NT database
rule blastn_nt:
input:
query = rules.parse_megablast_nt.output.unmapped,
db = config["nt"]
query = rules.parse_megablast_nt.output.unmapped
output:
out = "blast/{sample}_blastn_nt_{n,\d+}.tsv"
params:
db = config["nt"],
task = "blastn",
evalue = config["blastn_nt"]["evalue"],
max_hsps = config["blastn_nt"]["max_hsps"],
Expand All @@ -211,11 +211,11 @@ rule parse_blastn_nt:
## Blastx unmapped sequences against NR virus database
rule blastx_nr:
input:
query = rules.parse_blastn_nt.output.unmapped,
db = config["nr"]
query = rules.parse_blastn_nt.output.unmapped
output:
out = "blast/{sample}_blastx_nr_{n,\d+}.tsv"
params:
db = config["nr"],
word_size = 6,
evalue = config["blastx_nr"]["evalue"],
max_hsps = config["blastx_nr"]["max_hsps"],
Expand Down
4 changes: 2 additions & 2 deletions rules/refgenomefilter.smk
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ rule refgenome_unmapped_masked:
## MegaBlast against reference genome to remove host sequences
rule megablast_refgenome:
input:
query = rules.refgenome_unmapped_masked.output,
db = config["ref_genome"]
query = rules.refgenome_unmapped_masked.output
output:
out = "refgenomefilter/{sample}_megablast_{n}.tsv"
params:
db = config["ref_genome"],
task = "megablast",
perc_identity = config["megablast_ref_genome"]["perc_identity"],
evalue = config["megablast_ref_genome"]["evalue"],
Expand Down

0 comments on commit a5af957

Please sign in to comment.