Skip to content

Commit

Permalink
rounded summary data columns to 7 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkithadani committed Apr 19, 2023
1 parent 004ab32 commit 370e0c1
Show file tree
Hide file tree
Showing 15 changed files with 86,970 additions and 86,969 deletions.
21,470 changes: 10,735 additions & 10,735 deletions results/summaries_with_scores/flu_h1_evescape.csv

Large diffs are not rendered by default.

1,130 changes: 565 additions & 565 deletions results/summaries_with_scores/flu_h1_evescape_sites.csv

Large diffs are not rendered by default.

48,374 changes: 24,187 additions & 24,187 deletions results/summaries_with_scores/full_spike_evescape.csv

Large diffs are not rendered by default.

2,546 changes: 1,273 additions & 1,273 deletions results/summaries_with_scores/full_spike_evescape_sites.csv

Large diffs are not rendered by default.

25,460 changes: 12,730 additions & 12,730 deletions results/summaries_with_scores/hiv_env_evescape.csv

Large diffs are not rendered by default.

1,340 changes: 670 additions & 670 deletions results/summaries_with_scores/hiv_env_evescape_sites.csv

Large diffs are not rendered by default.

18,658 changes: 9,329 additions & 9,329 deletions results/summaries_with_scores/lassa_glycoprotein_evescape.csv

Large diffs are not rendered by default.

982 changes: 491 additions & 491 deletions results/summaries_with_scores/lassa_glycoprotein_evescape_sites.csv

Large diffs are not rendered by default.

20,748 changes: 10,374 additions & 10,374 deletions results/summaries_with_scores/nipah_fusion_evescape.csv

Large diffs are not rendered by default.

1,092 changes: 546 additions & 546 deletions results/summaries_with_scores/nipah_fusion_evescape_sites.csv

Large diffs are not rendered by default.

22,876 changes: 11,438 additions & 11,438 deletions results/summaries_with_scores/nipah_glycoprotein_evescape.csv

Large diffs are not rendered by default.

1,204 changes: 602 additions & 602 deletions results/summaries_with_scores/nipah_glycoprotein_evescape_sites.csv

Large diffs are not rendered by default.

7,638 changes: 3,819 additions & 3,819 deletions results/summaries_with_scores/spike_rbd_evescape.csv

Large diffs are not rendered by default.

402 changes: 201 additions & 201 deletions results/summaries_with_scores/spike_rbd_evescape_sites.csv

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions scripts/evescape_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

nipahf = pd.read_csv('../results/summaries/nipah_fusion_scores.csv')


##############################################
#Functions to calculate EVEscape and aggregate/binarize experiments
##############################################
Expand Down Expand Up @@ -122,6 +121,8 @@ def make_predictors(summary_init, thresh, ablist, scores=True):
"charge_ew-hydro": "dissimilarity_charge_hydro"
})

summary = summary.round(decimals=7)

return (summary)


Expand All @@ -137,7 +138,6 @@ def make_predictors(summary_init, thresh, ablist, scores=True):
nipahg = make_predictors(nipahg, None, None, scores=False)
nipahf = make_predictors(nipahf, None, None, scores=False)


rbd_all = rbd_bloom.rename(
columns={
"max_escape_experiment": "max_escape_experiment_bloom",
Expand Down Expand Up @@ -174,12 +174,14 @@ def make_predictors(summary_init, thresh, ablist, scores=True):
index=False)
spike.to_csv("../results/summaries_with_scores/full_spike_evescape.csv",
index=False)
lassa.to_csv("../results/summaries_with_scores/lassa_glycoprotein_evescape.csv",
index=False)
nipahg.to_csv("../results/summaries_with_scores/nipah_glycoprotein_evescape.csv",
index=False)
lassa.to_csv(
"../results/summaries_with_scores/lassa_glycoprotein_evescape.csv",
index=False)
nipahg.to_csv(
"../results/summaries_with_scores/nipah_glycoprotein_evescape.csv",
index=False)
nipahf.to_csv("../results/summaries_with_scores/nipah_fusion_evescape.csv",
index=False)
index=False)


##############################################
Expand All @@ -188,7 +190,7 @@ def make_predictors(summary_init, thresh, ablist, scores=True):
def make_site(summary_init):

summary = summary_init.copy()
summary = summary.groupby(['i','wt']).agg('mean').reset_index()
summary = summary.groupby(['i', 'wt']).agg('mean').reset_index()

return (summary)

Expand All @@ -201,7 +203,6 @@ def make_site(summary_init):
nipahg_site = make_site(nipahg)
nipahf_site = make_site(nipahf)


flu_site.to_csv('../results/summaries_with_scores/flu_h1_evescape_sites.csv',
index=False)
hiv_site.to_csv('../results/summaries_with_scores/hiv_env_evescape_sites.csv',
Expand Down

0 comments on commit 370e0c1

Please sign in to comment.