From 9660267818279c9aabf7888a573afdea7f8b64f4 Mon Sep 17 00:00:00 2001 From: Roberto Rossini <71787608+robomics@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:47:17 +0200 Subject: [PATCH] Bugfix --- nextflow.config | 4 ++-- subworkflows/nchg.nf | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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..5f96252 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) { + params.plot_sig_interactions_cmap_lb = params.nchg_log_ratio_cutoff + } + PLOT_SIGNIFICANT( plotting_tasks, params.plot_sig_interactions_cmap_lb,