diff --git a/src/visu/figure_maker.py b/src/visu/figure_maker.py index 2da518f21c5df40d4cc753f60b48f14485bbb1f6..75676b2715400ceeb2e43a4dfb3b2eb3d2582237 100644 --- a/src/visu/figure_maker.py +++ b/src/visu/figure_maker.py @@ -459,14 +459,10 @@ def create_figure(design: Path, bw_folder: Path, region_beds: List[Path], outfile += f'_file_norm' outfile += '.txt.gz' cov_file = output / outfile - if cov_file.is_file(): - df_cov = pd.read_csv(cov_file, sep="\t", compression='gzip') - else: - df_cov = create_full_table(df_exp, regions, nb_bin, environment, - bw_folder) - if norm is not None: - df_cov = bin_normalisation(df_cov, norm, cov_file) - df_cov.to_csv(cov_file, sep="\t", index=False, compression='gzip') + df_cov = create_full_table(df_exp, regions, nb_bin, environment, + bw_folder) + if norm is not None: + df_cov = bin_normalisation(df_cov, norm, cov_file) ordered_condition = [] for condition in df_exp['condition'].to_list(): if condition not in ordered_condition: