Skip to content

0.1.0

Choose a tag to compare

@clintval clintval released this 17 Mar 21:29
· 11 commits to main since this release
73ffc85

With this in your config:

plugins { id 'nf-versions' }

Do stuff like:

include { bwaMem2Version; samtoolsVersion } from 'plugin/nf-versions'

process ALIGN {
    output:
    eval({ bwaMem2Version() }), topic: "versions"
    eval({ samtoolsVersion() }), topic: "versions"

    script:
    """
    bwa-mem2 mem ... | samtools sort ...
    """
}

And:

include { MULTIQC } from './modules/multiqc'
include { collateVersions } from 'plugin/nf-versions'

workflow {
    // ... pipeline logic ... //

    def qc = channel.empty()
    qc = qc.mix(channel.topic("for_multiqc"))
    qc = qc.mix(collateVersions(channel.topic("versions")))

    MULTIQC(qc.collect())
}