Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,39 +43,10 @@ def dsm_fn(DSM_path_to_csv_left, DSM_path_to_csv_right, DSM_identifier_column, D
|
|
| 43 |
}
|
| 44 |
|
| 45 |
ptrn_left, ptrn_right, ptrn_both_left, ptrn_both_right, dsm_result = DSM(dsm_params)
|
| 46 |
-
dsm_result=dsm_result.reset_index()
|
| 47 |
-
dsm_result.rename(columns={'index': 'Pattern'}, inplace=True)
|
| 48 |
dsm_result.to_csv("dsm_result.csv")
|
| 49 |
return "dsm_result.csv",dsm_result
|
| 50 |
|
| 51 |
-
|
| 52 |
-
"SPM Upload CSV file": None,
|
| 53 |
-
"SPM_identifier_column": "Identifier",
|
| 54 |
-
"SPM_sequence_column": "Sequence",
|
| 55 |
-
"SPM_sortby": "S-Support",
|
| 56 |
-
"SPM_sliding_window_min": 1,
|
| 57 |
-
"SPM_sliding_window_max": 4,
|
| 58 |
-
"SPM_min_gap": 1,
|
| 59 |
-
"SPM_max_gap": 12,
|
| 60 |
-
"SPM_S_support_thresh": 0.4,
|
| 61 |
-
"SPM_I_support_thresh": 0,
|
| 62 |
-
"SPM_dataset_format": 0,
|
| 63 |
-
"DSM_path_to_csv_left": None,
|
| 64 |
-
"DSM_path_to_csv_right": None,
|
| 65 |
-
"DSM_identifier_column": "Identifier",
|
| 66 |
-
"DSM_sequence_column": "Sequence",
|
| 67 |
-
"DSM_sortby": "S-Support",
|
| 68 |
-
"DSM_sliding_window_min": 1,
|
| 69 |
-
"DSM_sliding_window_max": 1,
|
| 70 |
-
"DSM_min_gap": 1,
|
| 71 |
-
"DSM_max_gap": 12,
|
| 72 |
-
"DSM_S_support_thresh": 0.4,
|
| 73 |
-
"DSM_I_support_thresh": 0,
|
| 74 |
-
"DSM_threshold_pvalue": 0.1,
|
| 75 |
-
"DSM_dataset_format": 0,
|
| 76 |
-
"DSM_test_type": "ttest_ind",
|
| 77 |
-
"Select method for which you want to view result": "DSM"
|
| 78 |
-
}
|
| 79 |
|
| 80 |
|
| 81 |
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
ptrn_left, ptrn_right, ptrn_both_left, ptrn_both_right, dsm_result = DSM(dsm_params)
|
|
|
|
|
|
|
| 46 |
dsm_result.to_csv("dsm_result.csv")
|
| 47 |
return "dsm_result.csv",dsm_result
|
| 48 |
|
| 49 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
|
| 52 |
|