Skip to content

Commit 96bded2

Browse files
author
jasmezz
committed
Add compressed flag as ext.args to mmseqs modules
1 parent deb9ac8 commit 96bded2

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

conf/modules.config

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ process {
4141
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
4242
]
4343
ext.args = [
44-
params.taxa_classification_mmseqs_db_savetmp ? "" : "--remove-tmp-files"
44+
params.taxa_classification_mmseqs_db_savetmp ? "" : "--remove-tmp-files",
45+
"--compressed ${params.taxa_classification_mmseqs_compressed}"
4546
].join(' ').trim()
4647
}
4748

@@ -52,6 +53,9 @@ process {
5253
enabled: params.save_db,
5354
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
5455
]
56+
ext.args = [
57+
"--compressed ${params.taxa_classification_mmseqs_compressed}"
58+
].join(' ').trim()
5559
}
5660

5761
withName: MMSEQS_TAXONOMY {
@@ -70,6 +74,7 @@ process {
7074
"--orf-filter-s ${params.taxa_classification_mmseqs_taxonomy_orffilters}",
7175
"--lca-mode ${params.taxa_classification_mmseqs_taxonomy_lcamode}",
7276
"--vote-mode ${params.taxa_classification_mmseqs_taxonomy_votemode}",
77+
"--compressed ${params.taxa_classification_mmseqs_compressed}"
7378
].join(' ').trim()
7479
}
7580

@@ -81,6 +86,9 @@ process {
8186
pattern: "*.tsv",
8287
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
8388
]
89+
ext.args = [
90+
"--compressed ${params.taxa_classification_mmseqs_compressed}"
91+
].join(' ').trim()
8492
}
8593

8694
withName: SEQKIT_SEQ {

nextflow.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ params {
3838
// Taxonomy classification options
3939
run_taxa_classification = false
4040
taxa_classification_tool = 'mmseqs2'
41+
taxa_classification_mmseqs_compressed = 0
4142

4243
taxa_classification_mmseqs_db = null
4344
taxa_classification_mmseqs_db_id = 'Kalamari'
@@ -174,12 +175,11 @@ params {
174175

175176
arg_skip_deeparg = false
176177
arg_deeparg_db = null
177-
arg_deeparg_db_version = 2
178-
// Make sure to update on module version bump!
178+
arg_deeparg_db_version = 2 // Make sure to update on module version bump!
179179
arg_deeparg_model = 'LS'
180180
arg_deeparg_minprob = 0.8
181181
arg_deeparg_alignmentidentity = 50
182-
arg_deeparg_alignmentevalue = 1E-10
182+
arg_deeparg_alignmentevalue = 1e-10
183183
arg_deeparg_alignmentoverlap = 0.8
184184
arg_deeparg_numalignmentsperentry = 1000
185185

@@ -229,7 +229,7 @@ params {
229229
bgc_skip_gecco = false
230230
bgc_gecco_cds = 3
231231
bgc_gecco_threshold = 0.8
232-
bgc_gecco_pfilter = 1E-9
232+
bgc_gecco_pfilter = 0.000000001
233233
bgc_gecco_edgedistance = 0
234234
bgc_gecco_mask = false
235235

nextflow_schema.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@
8686
"help_text": "This flag specifies which tool for taxonomic classification should be activated. At the moment only 'MMseqs2' is incorporated in the pipeline.",
8787
"description": "Specifies the tool used for taxonomic classification.",
8888
"fa_icon": "fas fa-tools"
89+
},
90+
"taxa_classification_mmseqs_compressed": {
91+
"type": "integer",
92+
"default": 0,
93+
"enum": [0, 1],
94+
"help_text": "To compress MMseqs2 output files, choose 1, otherwise leave to 0. Compressing output files can lead to errors when the output is actually empty. In that case, just leave this parameter to default. More details can be found in the [documentation (GitHub)](https://github.com/soedinglab/MMseqs2?tab=readme-ov-file#memory-requirements).\n\n> Modifies tool parameter(s):\n> - mmseqs createdb --compressed <0|1>\n> - mmseqs createtsv --compressed <0|1>\n> - mmseqs databases --compressed <0|1>\n> - mmseqs taxonomy --compressed <0|1>",
95+
"description": "If MMseqs2 is chosen as taxonomic classification tool: Specifies if the output of all MMseqs2 subcommands shall be compressed.",
96+
"fa_icon": "fas fa-file-archive"
8997
}
9098
},
9199
"fa_icon": "fas fa-tag"
@@ -1531,12 +1539,6 @@
15311539
"description": "Base URL or local path to location of pipeline test dataset files",
15321540
"default": "https://raw.githubusercontent.com/nf-core/test-datasets/",
15331541
"hidden": true
1534-
},
1535-
"trace_report_suffix": {
1536-
"type": "string",
1537-
"fa_icon": "far calendar",
1538-
"description": "Suffix to add to the trace report filename. Default is the date and time in the format yyyy-MM-dd_HH-mm-ss.",
1539-
"hidden": true
15401542
}
15411543
}
15421544
}

0 commit comments

Comments
 (0)