updated normalization for combined data
Browse files- affinity-data-combined.parquet +2 -2
- combine_data.py +9 -0
affinity-data-combined.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
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 |
|