Skip to content

Commit 9851c07

Browse files
committed
Add taxon_merge_strategy parameter to nextflow.config
1 parent 8550ab0 commit 9851c07

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

conf/modules.config

+1
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ process {
478478
}
479479

480480
withName: KAIJU_MERGEOUTPUTS {
481+
ext.args = {"-c ${params.taxon_merge_strategy}"}
481482
publishDir =
482483
[
483484
path: { "${params.outdir}/assembly/polishing/intermediate/precluster/merged_classifications" },

nextflow.config

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ params {
8787
assembler_patterns = null
8888
skip_precluster = false
8989
keep_unclassified = true
90+
taxon_merge_strategy = 'lowest'
9091

9192
// > HYBRID CONSENSUS
9293
skip_hybrid_consensus = false

nextflow_schema.json

+15-7
Original file line numberDiff line numberDiff line change
@@ -552,20 +552,28 @@
552552
"fa_icon": "fas fa-forward",
553553
"description": "Skip the preclustering of assemblies to facilitate downstream processing of assemblies"
554554
},
555-
"cluster_method": {
556-
"type": "string",
557-
"default": "mash",
558-
"description": "Cluster algorithm used for contigs",
559-
"enum": ["cdhitest", "vsearch", "mmseqs-linclust", "mmseqs-cluster", "vrhyme", "mash", "diamond"],
560-
"fa_icon": "fas fa-bezier-curve"
561-
},
562555
"keep_unclassified": {
563556
"type": "boolean",
564557
"default": true,
565558
"fa_icon": "fas fa-filter",
566559
"description": "Keep the contigs that could not be classified with the taxonomic databases (`kaiju_db` & `kraken2_db`)",
567560
"help_text": "Within the preclustering step, all contigs will get a taxonomic classification using the provided databases for the metagenomic tools. In some cases, the number of unclassified contigs, can be very large if the database is restrictive. This will result in large clusters in downstream processing that can take up a lot of resources despite not being a priority in some analyses. So set it to `True` if you want to keep unclassified contigs and set it to `False` if you don't want to keep them. "
568561
},
562+
"taxon_merge_strategy": {
563+
"type": "string",
564+
"default": "lowest",
565+
"fa_icon": "far fa-object-ungroup",
566+
"description": "Taxon conflict resolution mode, must be 1 (Kaiju), 2 (Kraken), lca, or lowest.",
567+
"help_text": "The option -c determines the method of resolving conflicts in the taxonomic assignment for a read.\nPossible values are '1', '2', 'lca', 'lowest':\n '1' -> the taxon id from Kaiju is used.\n '2' -> the taxon id from Kraken is used.\n 'lca' -> the least common ancestor of the two taxon ids from both input files is used.\n 'lowest' -> the lower rank of the two taxa is used if they are within the same lineage. Otherwise the LCA is used.",
568+
"enum": ["1", "2", "lca", "lowest"]
569+
},
570+
"cluster_method": {
571+
"type": "string",
572+
"default": "mash",
573+
"description": "Cluster algorithm used for contigs",
574+
"enum": ["cdhitest", "vsearch", "mmseqs-linclust", "mmseqs-cluster", "vrhyme", "mash", "diamond"],
575+
"fa_icon": "fas fa-bezier-curve"
576+
},
569577
"network_clustering": {
570578
"type": "string",
571579
"default": "connected_components",

0 commit comments

Comments
 (0)