Skip to content

Commit 1531f83

Browse files
authored
let bigtaxonomy.smk use chunked DB
1 parent 91e20e5 commit 1531f83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

workflow/rules/bigtaxonomy.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ if config['blast']['tax2id'] == "" or config['blast']['tax2id'] == "none":
651651
shell:
652652
"""
653653
if [ -s {input} ]; then
654-
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" ]
654+
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" -a ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nal" ]
655655
then
656656
makeblastdb -dbtype nucl -in {config[blast][db_path]}/{config[blast][tax_db]} \
657657
-out {config[blast][db_path]}/{config[blast][tax_db]} &> {log}
@@ -733,7 +733,7 @@ if config['blast']['tax2id'] == "" or config['blast']['tax2id'] == "none":
733733
shell:
734734
"""
735735
if [ -s {input} ]; then
736-
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" ]
736+
if [ ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nin" -a ! -f "{config[blast][db_path]}/{config[blast][tax_db]}.nal" ]
737737
then
738738
makeblastdb -dbtype nucl -in {config[blast][db_path]}/{config[blast][tax_db]} \
739739
-out {config[blast][db_path]}/{config[blast][tax_db]} &> {log}

0 commit comments

Comments
 (0)