Skip to content
Snippets Groups Projects
Commit 77808908 authored by Andrey Aristov's avatar Andrey Aristov
Browse files

merge intensity

parent cb9f1111
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,8 @@ import matplotlib.pyplot as plt ...@@ -7,6 +7,8 @@ import matplotlib.pyplot as plt
def combine(table_day1_path, table_day2_path, table_output_path, swarmplot_output_path, prob_plot_path, threshold:int=20): def combine(table_day1_path, table_day2_path, table_output_path, swarmplot_output_path, prob_plot_path, threshold:int=20):
day1, day2 = [pd.read_csv(t) for t in [table_day1_path, table_day2_path]] day1, day2 = [pd.read_csv(t) for t in [table_day1_path, table_day2_path]]
day1.loc[:,'n_cells_final'] = day2.n_cells day1.loc[:,'n_cells_final'] = day2.n_cells
day1.loc[:,'intensity_final'] = day2.intensity
day1.loc[:,'final_state'] = day1.n_cells_final > threshold day1.loc[:,'final_state'] = day1.n_cells_final > threshold
day1.to_csv(table_output_path, index=None) day1.to_csv(table_output_path, index=None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment