// Import generic module functions include { initOptions; saveFiles; getSoftwareName; getProcessName } from './functions' params.options = [:] options = initOptions(params.options) process CUSTOM_DUMPSOFTWAREVERSIONS { label 'process_low' publishDir "${params.outdir}", mode: params.publish_dir_mode, saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'pipeline_info', meta:[:], publish_by_meta:[]) } // Requires `pyyaml` which does not have a dedicated container but is in the MultiQC container conda (params.enable_conda ? "bioconda::multiqc=1.11" : null) if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) { container "https://depot.galaxyproject.org/singularity/multiqc:1.11--pyhdfd78af_0" } else { container "quay.io/biocontainers/multiqc:1.11--pyhdfd78af_0" } input: path versions output: path "software_versions.yml" , emit: yml path "software_versions_mqc.yml", emit: mqc_yml path "versions.yml" , emit: versions script: """ #!/usr/bin/env python import yaml import platform from textwrap import dedent def _make_versions_html(versions): html = [ dedent( '''\\
Process Name | Software | Version |
---|---|---|
{process if (i == 0) else ''} | {tool} | {version} |