Commit 53d79600 authored by nfontrod's avatar nfontrod
Browse files

figure_maker.py: fix create_df_summary for barplot

parent 3510e8c8
Pipeline #142 passed with stages
in 55 seconds
......@@ -237,7 +237,7 @@ def create_df_summary(df_cov: pd.DataFrame, figure_type: str, nb_bin: int,
df_sum, condition_col = merge_condition_region_col(df_sum)
return df_sum, condition_col
if environment[0] != 0:
df_sum['location'] = df_cov['bin'].apply(
df_sum['location'] = df_sum['bin'].apply(
lambda x: f"before_{region_name}" if x < 0 else
f"after_{region_name}" if x >= nb_bin else region_name)
df_sum.drop('bin', axis=1, inplace=True)
......
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