ctmrbio / stag-mwc

StaG Metagenomic Workflow Collaboration
https://stag-mwc.readthedocs.org
MIT License
28 stars 13 forks source link

Error in Bowtie2 and kraken2 db #221

Closed mksherwani closed 11 months ago

mksherwani commented 1 year ago

WorkflowError in file /stagmwc/stag-mwc/workflow/rules/preproc/host_removal.smk, line 134: Cannot find Bowtie2 database for host sequence removal at: './'! Specify path to folder containing Bowtie2 database for host removal in config.yaml. Note that the path should not contain the '.1.bt2' suffix. File "/stagmwc/stag-mwc/workflow/Snakefile", line 70, in File "/stagmwc/stag-mwc/workflow/rules/preproc/host_removal.smk", line 134, in

I tried resolving this error but I couldn't do it.

Kindly help. I am new to this.

boulund commented 1 year ago

It appears you have not specified the path for the kraken2 or bowtie2 databases for host removal in the config file. From the error message, it seems you have configured the workflow to use bowtie2 for host removal, but not specified the path to the database.

Please have a look in your local copy of the config file, lines 65-77, which contains the settings for the host removal step (it is located in config/config.yaml in your local copy of the repo). The StaG workflow does not come configured with any databases out-of-the-box: you need to download and prepare the relevant databases that you want to use. There are GRCh38-based reference databases for both Kraken2 and Bowtie2 available if you google for them, but note that you only need to use either Kraken2 or Bowtie2 for host removal, not both at the same time.

boulund commented 11 months ago

Closing this issue due to inactivity