Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #119 passed
...@@ -459,14 +459,10 @@ def create_figure(design: Path, bw_folder: Path, region_beds: List[Path], ...@@ -459,14 +459,10 @@ def create_figure(design: Path, bw_folder: Path, region_beds: List[Path],
outfile += f'_file_norm' outfile += f'_file_norm'
outfile += '.txt.gz' outfile += '.txt.gz'
cov_file = output / outfile cov_file = output / outfile
if cov_file.is_file(): df_cov = create_full_table(df_exp, regions, nb_bin, environment,
df_cov = pd.read_csv(cov_file, sep="\t", compression='gzip') bw_folder)
else: if norm is not None:
df_cov = create_full_table(df_exp, regions, nb_bin, environment, df_cov = bin_normalisation(df_cov, norm, cov_file)
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')
ordered_condition = [] ordered_condition = []
for condition in df_exp['condition'].to_list(): for condition in df_exp['condition'].to_list():
if condition not in ordered_condition: if condition not in ordered_condition:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment