Skip to content

Commit

Permalink
Added version to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
proteinosome committed Jul 27, 2022
1 parent 6e76b2e commit 75b9973
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ nextflow run main.nf --help
--download_db Download databases needed for taxonomy classification only. Will not
run the pipeline. Databases will be downloaded to a folder "databases"
in the Nextflow pipeline directory.
--version Output version
```

To test the pipeline, run the example below. Note that the path of the database needs
Expand Down
6 changes: 6 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,16 @@ def helpMessage() {
--download_db Download databases needed for taxonomy classification only. Will not
run the pipeline. Databases will be downloaded to a folder "databases"
in the Nextflow pipeline directory.
--version Output version
"""
}

// Show help message
params.help = false
if (params.help) exit 0, helpMessage()
params.version = false
version = "0.2"
if (params.version) exit 0, log.info("$version")
params.download_db = false
params.skip_primer_trim = false
params.filterQ = 20
Expand Down Expand Up @@ -149,6 +153,7 @@ log.info """
Minimum amplicon length filtered in DADA2: $params.min_len
Maximum amplicon length filtered in DADA2: $params.max_len
maxEE parameter for DADA2 filterAndTrim: $params.max_ee
minQ parameter for DADA2 filterAndTrim: $params.minQ
Pooling method for DADA2 denoise process: $params.pooling_method
Minimum number of samples required to keep any ASV: $params.min_asv_sample
Minimum number of reads required to keep any ASV: $params.min_asv_totalfreq
Expand All @@ -166,6 +171,7 @@ log.info """
Number of threads specified for VSEARCH: $params.vsearch_cpu
Script location for HTML report generation: $params.rmd_vis_biom_script
Container enabled via docker/singularity: $params.enable_container
Version of Nextflow pipeline: $version
"""

// QC before cutadapt
Expand Down

0 comments on commit 75b9973

Please sign in to comment.