nf-core / ampliseq

Amplicon sequencing analysis workflow using DADA2 and QIIME2
https://nf-co.re/ampliseq
MIT License
187 stars 117 forks source link

Allow stratified output from picrust2 #685

Closed hh1985 closed 11 months ago

hh1985 commented 11 months ago

Description of feature

Please add option to enable stratified results output from picrust2:--stratified and related flags.

hh1985 commented 11 months ago

BTW, to add more parameters, is there any way to update the parameter file somewhere directly instead of downloading the source code and manually changing the configuration of the pipeline?

erikrikarddaniel commented 11 months ago

BTW, to add more parameters, is there any way to update the parameter file somewhere directly instead of downloading the source code and manually changing the configuration of the pipeline?

Yes, to add --stratified you can create a config file (typically nextflow.config in the directory in which you're running the pipeline) looking like this:

process {
  withName: PICRUST {
        ext.args = "-t epa-ng --remove_intermediate --stratified"
  }
}
erikrikarddaniel commented 11 months ago

This technique allows full freedom to end users to set parameters to programs exactly as they want them instead of waiting for a developer to add a flag to the pipeline. If you're satisfied with this, please close the issue.

hh1985 commented 11 months ago

That's exactly what I want. Thanks!