Skip to content

Commit

Permalink
Add help to bracken DM (#5804)
Browse files Browse the repository at this point in the history
* add help

* Update data_managers/data_manager_build_bracken_database/data_manager/bracken_build_database.xml

Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>

* Update data_managers/data_manager_build_bracken_database/data_manager/bracken_build_database.xml

---------

Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
  • Loading branch information
paulzierep and mvdbeek authored Mar 6, 2024
1 parent 0478062 commit c0f1503
Showing 1 changed file with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
</options>
</param>
<conditional name="check_prebuilt">
<param name="prebuilt" type="select" label="Use Pre-built DB">
<param name="prebuilt" type="select" label="Use Pre-built DB" help="Use existing pre-built DB. This only works for kraken DBs, that already contain additional bracken DBs. This is the case for DBs downloaded from https://benlangmead.github.io/aws-indexes/k2.">
<option value="no">No</option>
<option value="yes">Yes</option>
</param>
<when value="no">
<param name="kmer_len" type="integer" min="8" max="256" value="35" label="K-mer length" />
<param name="read_len" type="integer" min="8" max="1000" value="100" label="Read length" />
<param name="kmer_len" type="integer" min="8" max="256" value="35" label="K-mer length" help="The K-mer length of the bracken DB should be identical to the K-mer length used to build the kraken2 DB." />
<param name="read_len" type="integer" min="8" max="1000" value="100" label="Read length" help="The read length of the bracken DB should be the same as the length of the reads to be analysis (one read in case of paired reads)." />
</when>
<when value="yes">
<param name="read_len" type="select" label="Read length" >
<param name="read_len" type="select" label="Read length" help="The read length of the bracken DB should be the same as the length of the reads to be analysis (one read in case of paired reads). The prebuilt DBs where built using the same K-mer length as the kraken2 DB.">
<option value="50">50</option>
<option value="75">75</option>
<option value="100" selected="true">100</option>
Expand All @@ -59,7 +59,7 @@
</param>
</when>
</conditional>
<param name="database_name" type="text" label="Database Name" />
<param name="database_name" type="text" label="Database Name" help="Please add a clear reference to the corresponding kraken2 DB the read length to the name." />
</inputs>
<outputs>
<data name="out_file" format="data_manager_json" />
Expand All @@ -76,6 +76,24 @@
</test>
</tests>
<help>
A bracken DB can only be built as an addition to an existing kracken2 DB (see `Bracken docs`_).

.. _Bracken docs: https://github.com/jenniferlu717/Bracken?tab=readme-ov-file#step-1-generate-the-bracken-database-file-databasexmerskmer_distrib-1

======================================
Using prebuilt DBs
======================================

The prebuilt option does use existing bracken DBs, that are shipped with kraken2 DBs. This is the case for DBs downloaded from https://benlangmead.github.io/aws-indexes/k2.
All prebuilt databases contain a Kraken 2 database along with Bracken databases built for 50, 75, 100, 150, 200, 250 and 300 read lengths (refering to the lenght of the sequenced reads to be analysis using that database (one read in case of paired reads)).
In this case the data manager points to the same DB as the kracken2 DB.
**The prebuilt option must not be used for custom kraken2 DBs ! For this the bracken DB needs to be build.**

======================================
Building new DBs
======================================

Use the same K-mer length as the kraken2 DB and choose read lengths that are close to the read length of analysis you want to perform (one read in case of paired reads).
</help>
<citations>
<citation type="doi">10.7717/peerj-cs.104</citation>
Expand Down

0 comments on commit c0f1503

Please sign in to comment.