-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathglobals.py
43 lines (31 loc) · 995 Bytes
/
globals.py
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
import pandas as pd
"""
Initial parameters set through the configuration file.
"""
filename_config = 'config.ini'
pathway_input = None
gene_input = None
deep_input = None
num_cores_input = None
mode_input = None
"""
Parameters set during execution.
"""
gene_input_hsa = None
gene_input_url = None
url_download_database = 'https://github.com/Pex2892/PETAL/releases/download/v1.2/only_database.zip'
"""
display.max_colwidth sets the maximum width of columns.
If the value is "None", the max length is disabled.
"""
pd.set_option('display.max_colwidth', None)
"""
At this point, the dataframe with the specified columns will be created."""
COLS_DF = ['deep', 'name_father', 'hsa_father', 'name_son', 'hsa_son', 'url_kegg_son', 'isoform', 'relation',
'type_rel', 'pathway_of_origin', 'fullpath', 'occurrences']
DF_TREE = pd.DataFrame(columns=COLS_DF)
CSV_GENE_HSA = None
"""
At this point, the dictionary will be created and used to generate the json file.
"""
json_dict = {}