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