diff --git a/nextflow.config b/nextflow.config index 6fbc00c8f694d81fd4aad75471909fd705a5f8f4..31269f1e9272caafc669dd59782a3e519a50c66f 100644 --- a/nextflow.config +++ b/nextflow.config @@ -93,6 +93,7 @@ params { skip_compartments = false skip_tads = false skip_multiqc = false + skip_plot_matrix = false // MultiQC options multiqc_config = null diff --git a/nextflow_schema.json b/nextflow_schema.json index e5aeb173fabc41b76e859f1666c94e3ce17e86d9..753bab6c5705ebd3f945c787f7175f4bb6e89ad2 100644 --- a/nextflow_schema.json +++ b/nextflow_schema.json @@ -339,6 +339,10 @@ "skip_multiqc": { "type": "boolean", "description": "Do not generate MultiQC report" + }, + "skip_plot_matrix": { + "type": "boolean", + "description": "Do not generate matrices" } } }, diff --git a/workflows/hic.nf b/workflows/hic.nf index 68b4ef884b31c9a9ae8073daa84dc80108c364e6..67ccd439ba8a57240f7a70fe08238043c852883f 100644 --- a/workflows/hic.nf +++ b/workflows/hic.nf @@ -41,12 +41,7 @@ if (params.digestion){ //**************************************** // Combine all maps resolution for downstream analysis -/* if (params.bin_size instanceof Integer) { - ch_map_res = Channel.from( params.bin_size ).toInteger() -} -else { - ch_map_res = Channel.from( params.bin_size ).splitCsv().flatten().toInteger() -} */ + ch_map_res = WorkflowHic.checkIfInt(params.bin_size) if (params.res_zoomify){ @@ -223,10 +218,12 @@ workflow HIC { // // MODULE: HICEXPLORER/HIC_PLOT_MATRIX // - HIC_PLOT_MATRIX( - COOLER.out.cool - ) + if (!params.skip_plot_matrix){ + HIC_PLOT_MATRIX( + COOLER.out.cool + ) ch_versions = ch_versions.mix(HIC_PLOT_MATRIX.out.versions) + } // // SUB-WORKFLOW: COMPARTMENT CALLING