trrt8 commited on
Commit
a3665d3
1 Parent(s): 4d1a63f

updated normalization for combined data

Browse files
affinity-data-combined.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a564ab56f845c9c4849d2c55e173e0ad53e873bdffc5c438eea064941663ea89
3
- size 1787700177
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23fc7754161e313ca4f702a5730fd1265dae9f877f2a2047a02039a3d385b036
3
+ size 1786935004
combine_data.py CHANGED
@@ -9,6 +9,15 @@ def combine_csv_files(csv_file_list):
9
 
10
  # Sort by neg_log10_affinity_M
11
  combined_df = combined_df.sort_values('neg_log10_affinity_M', ascending=False)
 
 
 
 
 
 
 
 
 
12
 
13
  return combined_df
14
 
 
9
 
10
  # Sort by neg_log10_affinity_M
11
  combined_df = combined_df.sort_values('neg_log10_affinity_M', ascending=False)
12
+
13
+ # Calculate mean and standard deviation of affinities
14
+ affinity_mean = combined_df['neg_log10_affinity_M'].mean()
15
+ affinity_std = combined_df['neg_log10_affinity_M'].std()
16
+
17
+ # Add columns for mean, std and normalized values
18
+ combined_df['affinity_mean'] = affinity_mean
19
+ combined_df['affinity_std'] = affinity_std
20
+ combined_df['affinity_norm'] = (combined_df['neg_log10_affinity_M'] - affinity_mean) / affinity_std
21
 
22
  return combined_df
23