Commit 4d17cd23 authored by nfontrod's avatar nfontrod
Browse files

src/visu/figure_maker.py: removing the creation of a tmp file to speed up the...

src/visu/figure_maker.py: removing the creation of a tmp file to speed up the creation of a figure made on the same input files
parent 4c0b11d0
Pipeline #119 passed with stage
in 36 seconds
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment