File size: 1,878 Bytes
42f26af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b1aa639
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""Global variables used across the package."""
import pathlib

# Dirs
ROOT_DIR = pathlib.Path(__file__).parent.absolute()
REPO_DIR = ROOT_DIR.parent
DATA_DIR = REPO_DIR / 'data'
TEST_RESULTS_DIR = REPO_DIR / 'experiments'
ASSETS_DIR = REPO_DIR / 'assets'

# C
# CHEM_ELEMS_SMALL =  ['H', 'C',  'O', 'N', 'P', 'S', 'Cl', 'F', 'Br', 'I']
CHEM_ELEMS_SMALL = ['H', 'C',  'O', 'N', 'P', 'S', 'Cl', 'F', 'Br', 'I', 'B', 'As', 'Si', 'Se']

MSGYM_FORMULA_VECTOR_NORM = [102.0, 59.0, 25.0, 13.0, 3.0, 6.0, 6.0, 17.0, 4.0, 4.0, 1.0, 1.0, 5.0, 2.0]
# MSGYM_FORMULA_VECTOR_NORM = [102.0, 59.0, 25.0, 13.0, 3.0, 6.0, 6.0, 17.0, 4.0, 4.0]
MSGYM_FORMULA_STANDARD = {
    'formula_norm':[6.53758314e+00, 6.26973237e+00,
       8.90610447e-01, 4.73889402e-01, 2.31793513e-02, 3.56956333e-02,
       2.78056172e-02, 3.28356898e-02, 2.19480328e-03, 1.58458297e-03,
       2.34802165e-05, 1.71127001e-05, 1.71127001e-04, 1.69800435e-05],
    'formula_norm': [9.68749281e+00, 7.46795232e+00,
       1.75427539e+00, 9.81685190e-01, 1.52363430e-01, 2.01197446e-01,
       1.93046421e-01, 2.65309185e-01, 4.82433244e-02, 5.23009413e-02,
       4.84558202e-03, 4.13671455e-03, 1.51218609e-02, 5.02040474e-03],
    'formula_max':[102.        ,  59.        ,
        25.        ,  13.        ,   3.        ,   6.        ,
         6.        ,  17.        ,   4.        ,   4.        ,
         1.        ,   1.        ,   5.        ,   2.        ],
    'formula_min' :[0.        , 0.        , 0.        , 0.        ,
       0.        , 0.        , 0.        , 0.        , 0.        ,
       0.        , 0.        , 0.        , 0.        , 0.        ,
       0.        ]
}

#MSGYM standardization
MSGYM_STANDARD_MH = {
    'mz_mean': 195.155185,
    'mz_std':127.591549
}
MSGYM_STANDARD_all = { # got these from Yinkai
"mz_mean": 80.88304948022557,
"mz_std" : 197.4588028571758}

PRECURSOR_INTENSITY = 1.1