Skip to content

Commit 55164ab

Browse files
authored
Merge pull request #818 from nf-core/optional-ulimit
Provide users the ability to not bump stack size.
2 parents e17ab62 + 0c48fde commit 55164ab

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### `Changed`
1414

15+
- [#818](https://github.com/nf-core/ampliseq/pull/818) - Provide users the ability to not bump stack size in vsearch clustering.
16+
1517
### `Fixed`
1618

1719
- [#800](https://github.com/nf-core/ampliseq/pull/800) - Fixed SH files for UNITE9.0, they were missing some entries due to a bug caused by API update in PlutoF

modules/local/filter_clusters.nf

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ process FILTER_CLUSTERS {
2323
script:
2424
def prefix = task.ext.prefix ?: "'$meta.id'"
2525
def clusters = "'$clusters'"
26+
def ulimiter = params.raise_filter_stacksize ? "ulimit -s unlimited" : ""
2627
"""
27-
ulimit -s unlimited
28+
${ulimiter}
2829
echo ${clusters} | filt_clusters.py -t ${asv} -p ${prefix} -c -
2930
3031
cat <<-END_VERSIONS > versions.yml

nextflow.config

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ params {
8282
ancombc_significance = 0.05
8383
ancombc_formula = null
8484
ancombc_formula_reflvl = null
85+
raise_filter_stacksize = true
8586

8687
// Report options
8788
report_template = "${projectDir}/assets/report_template.Rmd"

nextflow_schema.json

+7
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,13 @@
288288
"description": "Pairwise Identity value used when post-clustering ASVs if `--vsearch_cluster` option is used (default: 0.97).",
289289
"help_text": "Lowering or increasing this value can change the number ASVs left over after clustering."
290290
},
291+
"raise_filter_stacksize": {
292+
"type": "boolean",
293+
"default": true,
294+
"fa_icon": "fas fa-angle-double-up",
295+
"description": "Raise stack size when filtering VSEARCH clusters",
296+
"help_text": "Setting to true adds 'ulimit -s unlimited' to the beginning of the filt_clusters.py command."
297+
},
291298
"filter_ssu": {
292299
"type": "string",
293300
"description": "Enable SSU filtering. Comma separated list of kingdoms (domains) in Barrnap, a combination (or one) of \"bac\", \"arc\", \"mito\", and \"euk\". ASVs that have their lowest evalue in that kingdoms are kept.",

0 commit comments

Comments
 (0)