-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
35 lines (27 loc) · 1.17 KB
/
constants.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
"""Constants"""
# misc/general
UP_DOWN = ["up", "down"]
CTRL = "ctrl"
HORMONES = ["dht", "e2", "p4"]
HORMONES_CTRL = HORMONES + [CTRL]
TUMORS = ["t111", "t110", "pl015"]
LABELS = dict(zip(HORMONES, list(range(3))))
LABELS_CTRL = dict(zip(HORMONES_CTRL, list(range(4))))
LABELS_INVERTED = dict(map(reversed, LABELS.items()))
LABELS_CTRL_INVERTED = dict(map(reversed, LABELS_CTRL.items()))
CORR_THRESHOLD = .6
# clustering
NUM_CLUSTERS = range(2, 7)
CLUSTERING_METHODS = ["agglomerative", "kmeans", "spectral"]
CLUSTERING_METRICS = ["ari", "silhouette", "db"]
AFFINITIES = ["euclidean", "l1", "l2", "manhattan", "cosine"]
LINKAGES = ["ward", "average", "complete", "single"]
# paths
DATA_DIR = "../data"
PLOT_DIR = "../results/plots"
PKL_DIR = DATA_DIR + "/pickle"
GENES_PATH = f"{DATA_DIR}/pdx/List of Genes Differentially Expressed upon Different Treatments.xlsx"
PDX_PATH = f"{DATA_DIR}/pdx/Human_matrix_DESEQ2normalized_removedlowlyexpressedgenes.xlsx"
PATIENTS_PATH = f"{DATA_DIR}/patients/TCGA_ALL_Samples_log_Normalized GS.xlsx"
PATIENTS_PATH_2 = (f"{DATA_DIR}/patients/BRCA.rnaseqv2__illuminahiseq_rnaseqv2__"
"unc_edu__Level_3__RSEM_genes_normalized__data.data.txt")