diff --git a/nextflow.config b/nextflow.config index 9a39932..7ce897c 100644 --- a/nextflow.config +++ b/nextflow.config @@ -33,8 +33,8 @@ params { // Plotting options plot_format = 'png' hic_tgt_resolution_plots = 500000 // Approximate Hi-C data resolution used for plotting - plot_sig_interactions_cmap_lb = 1.0 // Lower bound for the color map used to plot significant iteractions - plot_sig_interactions_cmap_ub = 2.0 // Upper bound for the color map used to plot significant iteractions + plot_sig_interactions_cmap_lb = null // Lower bound for the color map used to plot significant iteractions. Set to nchg_log_ratio when not specified + plot_sig_interactions_cmap_ub = 2.0 // Upper bound for the color map used to plot significant iteractions skip_expected_plots = false skip_sign_interaction_plots = false diff --git a/subworkflows/nchg.nf b/subworkflows/nchg.nf index bb7e92f..d3fc750 100644 --- a/subworkflows/nchg.nf +++ b/subworkflows/nchg.nf @@ -117,6 +117,10 @@ workflow NCHG { .join(chrom_pairs.groupTuple()) .set { plotting_tasks } + if (!params.plot_sig_interactions_cmap_lb) { + plot_sig_interactions_cmap_lb = params.nchg_log_ratio + } + PLOT_SIGNIFICANT( plotting_tasks, params.plot_sig_interactions_cmap_lb,