kkonganti@11: process BCS_RESULTS { kkonganti@11: tag "bettercallsal aggregate" kkonganti@11: label "process_pico" kkonganti@11: kkonganti@11: module (params.enable_module ? "${params.swmodulepath}${params.fs}python${params.fs}3.8.1" : null) kkonganti@11: conda (params.enable_conda ? "conda-forge::python=3.10 conda-forge::pyyaml" : null) kkonganti@11: container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? kkonganti@11: 'https://depot.galaxyproject.org/singularity/multiqc:1.14--pyhdfd78af_0' : kkonganti@11: 'quay.io/biocontainers/multiqc:1.14--pyhdfd78af_0' }" kkonganti@11: kkonganti@11: input: kkonganti@11: path salmon_res_dirs kkonganti@11: kkonganti@11: output: kkonganti@11: path 'bettercallsal*.tblsum.txt', emit: mqc_txt, optional: true kkonganti@11: path 'bettercallsal*_mqc.json' , emit: mqc_json, optional: true kkonganti@11: path 'bettercallsal*_mqc.yml' , emit: mqc_yml, optional: true kkonganti@11: path 'versions.yml' , emit: versions kkonganti@11: kkonganti@11: when: kkonganti@11: task.ext.when == null || task.ext.when kkonganti@11: kkonganti@11: script: kkonganti@11: def args = task.ext.args ?: '' kkonganti@11: args += (params.tuspy_ps ? " -pickle ${params.tuspy_ps}" : '') kkonganti@11: args += (params.gsrpy_snp_clus_metadata ? " -snp ${params.gsrpy_snp_clus_metadata}" : '') kkonganti@11: """ kkonganti@11: gen_salmon_res_table.py \\ kkonganti@11: $args \\ kkonganti@11: -sal "." kkonganti@11: kkonganti@11: create_mqc_data_table.py \\ kkonganti@11: "bettercallsal" "The following table is an aggregation of serotype calls from all samples which also includes read counts from salmon quant results." kkonganti@11: kkonganti@11: create_mqc_data_table.py \\ kkonganti@11: "bettercallsal_salyn" "The following table summarizes serotype presence or absence for all samples." kkonganti@11: kkonganti@11: cat <<-END_VERSIONS > versions.yml kkonganti@11: "${task.process}": kkonganti@11: python: \$( python --version | sed 's/Python //g' ) kkonganti@11: END_VERSIONS kkonganti@11: """ kkonganti@11: }