Skip to content

Commit

Permalink
Merge pull request #13 from builab/builab-patch-2
Browse files Browse the repository at this point in the history
Create generate_fit_log_revised.py
  • Loading branch information
builab authored Jul 4, 2024
2 parents a72e05c + 1bb0451 commit 3e13c0e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions legacy/generate_fit_log_revised.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
output_dir = 'solutions_tipcp_spike1'
log_file = 'solutions_tipcp_spike1/fit_logs.txt'

import pandas as pd
df = pd.read_csv(log_file, sep='\s*,\s*')
df.info()
df.dropna()
print(df)
#for col in df.columns:
#print(col)
df.sort_values(['BH_adjusted_Pvalue', 'Corr_about_mean'], ascending=[True, False], inplace=True)
# df.sort_values(by = "Diff", inplace=True, ascending=False)

#print(df)
df.to_csv(output_dir + '/fit_logs_revised.csv', index=False)

0 comments on commit 3e13c0e

Please sign in to comment.