Spaces:
Sleeping
Sleeping
Commit
·
ac213c9
1
Parent(s):
d5fefc1
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ st.set_option('deprecation.showPyplotGlobalUse', False)
|
|
9 |
seed=42
|
10 |
|
11 |
annotations = pd.read_csv("annotations_dataset.csv")
|
12 |
-
annotations = annotations.set_index("Gene")
|
13 |
|
14 |
training_data = pd.read_csv("./selected_features_training_data.csv", header=0)
|
15 |
training_data.columns = [
|
@@ -39,9 +39,7 @@ predictions = [round(prediction, 2) for prediction in prediction_list]
|
|
39 |
|
40 |
output = pd.Series(data=predictions, index=annotations.index, name="XGB_Score")
|
41 |
df_total = pd.concat([annotations, output], axis=1)
|
42 |
-
|
43 |
-
#df_total.reset_index()
|
44 |
-
df_total.rename_axis('Gene')
|
45 |
|
46 |
df_total = df_total[['XGB_Score', 'mousescore_Exomiser',
|
47 |
'SDI', 'Liver_GTExTPM', 'pLI_ExAC',
|
|
|
9 |
seed=42
|
10 |
|
11 |
annotations = pd.read_csv("annotations_dataset.csv")
|
12 |
+
annotations = annotations.set_index("Gene").rename_axis('Gene', axis=1)
|
13 |
|
14 |
training_data = pd.read_csv("./selected_features_training_data.csv", header=0)
|
15 |
training_data.columns = [
|
|
|
39 |
|
40 |
output = pd.Series(data=predictions, index=annotations.index, name="XGB_Score")
|
41 |
df_total = pd.concat([annotations, output], axis=1)
|
42 |
+
|
|
|
|
|
43 |
|
44 |
df_total = df_total[['XGB_Score', 'mousescore_Exomiser',
|
45 |
'SDI', 'Liver_GTExTPM', 'pLI_ExAC',
|