wenjun99 commited on
Commit
8e18767
·
verified ·
1 Parent(s): 87ee564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -15
app.py CHANGED
@@ -4,26 +4,45 @@ import numpy as np
4
  import pandas as pd
5
  from streamlit_cropper import st_cropper
6
 
7
- # Mutation site headers removed 3614,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  mutation_site_headers = [
9
- 3244, 3297, 3350, 3399, 3455, 3509, 3562,
10
- 3665, 3720, 3773, 3824, 3879, 3933, 3985, 4039,
11
- 4089, 4145, 4190, 4245, 4298, 4349, 4402, 4455,
12
- 4510, 4561, 4615, 4668, 4720, 4773, 4828, 4882
13
  ]
14
 
15
- # Thresholds for each mutation site removed 3614: 0.091557752,
16
  thresholds = pd.Series({
17
- 3244: 1.094293328, 3297: 0.924916122, 3350: 0.664586629, 3399: 0.91573613,
18
- 3455: 1.300869714, 3509: 1.821975901, 3562: 1.178862418,
19
- 3665: 0.298697327, 3720: 0.58379781, 3773: 0.891088481, 3824: 1.145509641,
20
- 3879: 0.81833191, 3933: 2.93084335, 3985: 1.593758847, 4039: 0.966055013,
21
- 4089: 1.465671338, 4145: 0.30309335, 4190: 1.321615138, 4245: 1.709752495,
22
- 4298: 0.868534701, 4349: 1.222907645, 4402: 0.58873557, 4455: 1.185522985,
23
- 4510: 1.266797682, 4561: 1.109913024, 4615: 1.181106084, 4668: 1.408533949,
24
- 4720: 0.714151142, 4773: 1.471959437, 4828: 0.95879943, 4882: 1.464503885
25
  })
26
-
27
  # === Utility functions ===
28
 
29
  # Voyager ASCII 6-bit conversion table
 
4
  import pandas as pd
5
  from streamlit_cropper import st_cropper
6
 
7
+ # # Mutation site headers removed 3614,
8
+ # mutation_site_headers = [
9
+ # 3244, 3297, 3350, 3399, 3455, 3509, 3562,
10
+ # 3665, 3720, 3773, 3824, 3879, 3933, 3985, 4039,
11
+ # 4089, 4145, 4190, 4245, 4298, 4349, 4402, 4455,
12
+ # 4510, 4561, 4615, 4668, 4720, 4773, 4828, 4882
13
+ # ]
14
+
15
+ # # Thresholds for each mutation site removed 3614: 0.091557752,
16
+ # thresholds = pd.Series({
17
+ # 3244: 1.094293328, 3297: 0.924916122, 3350: 0.664586629, 3399: 0.91573613,
18
+ # 3455: 1.300869714, 3509: 1.821975901, 3562: 1.178862418,
19
+ # 3665: 0.298697327, 3720: 0.58379781, 3773: 0.891088481, 3824: 1.145509641,
20
+ # 3879: 0.81833191, 3933: 2.93084335, 3985: 1.593758847, 4039: 0.966055013,
21
+ # 4089: 1.465671338, 4145: 0.30309335, 4190: 1.321615138, 4245: 1.709752495,
22
+ # 4298: 0.868534701, 4349: 1.222907645, 4402: 0.58873557, 4455: 1.185522985,
23
+ # 4510: 1.266797682, 4561: 1.109913024, 4615: 1.181106084, 4668: 1.408533949,
24
+ # 4720: 0.714151142, 4773: 1.471959437, 4828: 0.95879943, 4882: 1.464503885
25
+ # })
26
+
27
+ # Mutation site headers reordered: 4402 to 3244, 4882 to 4455
28
  mutation_site_headers = [
29
+ 4402, 4349, 4298, 4245, 4190, 4145, 4089, 4039,
30
+ 3985, 3933, 3879, 3824, 3773, 3720, 3665,
31
+ 3562, 3509, 3455, 3399, 3350, 3297, 3244, # 1–23
32
+ 4882, 4828, 4773, 4720, 4668, 4615, 4561, 4510 # 24–32
33
  ]
34
 
35
+ # Thresholds reordered accordingly
36
  thresholds = pd.Series({
37
+ 4402: 0.58873557, 4349: 1.222907645, 4298: 0.868534701, 4245: 1.709752495,
38
+ 4190: 1.321615138, 4145: 0.30309335, 4089: 1.465671338, 4039: 0.966055013,
39
+ 3985: 1.593758847, 3933: 2.93084335, 3879: 0.81833191, 3824: 1.145509641,
40
+ 3773: 0.891088481, 3720: 0.58379781, 3665: 0.298697327,
41
+ 3562: 1.178862418, 3509: 1.821975901, 3455: 1.300869714, 3399: 0.91573613,
42
+ 3350: 0.664586629, 3297: 0.924916122, 3244: 1.094293328,
43
+ 4882: 1.464503885, 4828: 0.95879943, 4773: 1.471959437, 4720: 0.714151142,
44
+ 4668: 1.408533949, 4615: 1.181106084, 4561: 1.109913024, 4510: 1.266797682
45
  })
 
46
  # === Utility functions ===
47
 
48
  # Voyager ASCII 6-bit conversion table