-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
135 lines (103 loc) · 4.3 KB
/
Copy pathconstants.py
File metadata and controls
135 lines (103 loc) · 4.3 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import os
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
STARTING_DATA_PATH = f"{BASE_PATH}/starting_data"
DEMOGRAPHICS_CSV = f"{STARTING_DATA_PATH}/Pangenomes Populations - VCF.csv"
DEFAULT_SUBJECTS_FILE = f"{STARTING_DATA_PATH}/subjects_files/subjects_4.txt"
DEFAULT_CAPACITY_FILE = f"{STARTING_DATA_PATH}/capacity_files/capacities_test.txt"
DEAD_WEIGHT = 10000000000
VERBOSE = True
PANGENOME_NPY = "pangenome.npy"
PANGENOME_POSITIONS_NPY = "pangenome_positions.npy"
PANGENOME_SUBJECTS_NPY = "pangenome_subjects.npy"
AFS_FREQ_NPY = "allele_frequencies.npy"
ONEK_NPY = "1000g_phased.npy"
ONEK_MASKED_NPY = "1000g_phased_masked.npy"
ONEK_PHASED_SUBJECTS_NPY = "1000g_phased_subjects.npy"
ONEK_SUBJECTS_NPY = "1000g_subjects.npy"
ONEK_POSITIONS_NPY = "1000g_positions.npy"
EXPERIMENT_PATH = f"{BASE_PATH}/experiments"
PLOT_OUT_PATH = f"{BASE_PATH}/plots"
AF_PATH = f"{BASE_PATH}/starting_data/chr21/population_af_freqs.pickle"
PANGENOME_HAPLOTYPES = f"{BASE_PATH}/starting_data/chr21/pangenome.npy"
PANGENOME_SUBJECTS = f"{BASE_PATH}/starting_data/chr21/pangenome_subjects.npy"
PANGENOME_SUPPORT = f"{BASE_PATH}/starting_data/chr21/pangenome_support.pickle"
POPULATION_AF_FREQS = f"{BASE_PATH}/starting_data/chr21/population_af_freqs.pickle"
NUM_1000G_SUBJECTS = 3202
ALL_POPULATIONS = ["East Asian Ancestry", "American Ancestry", "South Asian Ancestry", "African Ancestry"]
READ_SUBJECTS = ["HG00138", "HG00635", "HG01112", "HG01600", "HG02698"]
TYPES_OF_RECONSTRUCTION = ["new_haplotypes"]
READ_POPULATIONS_FILE = f"{BASE_PATH}/starting_data/read_populations.csv"
READ_SUBJECTS_FILE = f"{BASE_PATH}/starting_data/all_samples.txt"
STATS_FILE_SCHEMA = [
("total_alignments", 0),
("total_primary", 0),
("total_secondary", 0),
("total_aligned", 0),
("total_perfect", 0),
("total_gapless", 0),
("total_paired", 0),
("total_properly_paired", 0),
("alignment_score", 1),
("mapping_quality", 1),
("junk", 2),
("junk", 2),
("junk", 2),
("junk", 2),
("junk", 2),
("junk", 2),
]
PANGENIE_COLUMNS = ["quality","allele_frequency","unique_kmers","missing_alleles","total_baseline","total_baseline_biallelic","total_baseline_nonref","total_intersection","correct_all",
"wrong_all","not_typed_all","correct_biallelic","wrong_biallelic","not_typed_biallelic","correct_non-ref","wrong_non-ref","not_typed_non-ref",
"nr_correct_all","nr_wrong_all","nr_not_typed_all","nr_not_in_callset_all","nr_correct_biallelic","nr_wrong_biallelic","nr_not_typed_biallelic",
"nr_not_in_callset_biallelic","nr_correct_non-ref","nr_wrong_non-ref","nr_not_typed_non-ref","nr_not_in_callset_non-ref"]
INTERESTED_FILES_GAPSCORE = [
"no_obfuscation",
"left_inference",
"center_inference",
"right_inference"
]
TYPES_OF_SVS = ["complex", "insertion", "deletion", "snp"]
SIZE_OF_SVS = ["large", "midsize", "small"]
AGGREGATION_DICTIONARY = {
"subject": "index",
"capacity": "index",
"region": "index",
"population": "index",
"population_code": "index",
"max_utility_loss": "sum",
"max_pmi_gain": "sum",
"utility_loss": "sum",
"pmi_gain": "sum",
"utility_loss_normalized": "mean",
"pmi_gain_normalized": "mean",
"number_of_moves": "sum",
"percent_shared_snps": "mean",
"ld_sums": "sum",
"ld_counts": "sum",
"af_loss": "mean",
"af_loss_snp_only": "mean",
"af_complex": "mean",
"af_loss_snps_0_01": "mean",
"af_loss_snps_0_05": "mean",
"af_loss_snps_0_1": "mean",
"af_loss_snps_0_5": "mean",
"wd_af": "mean",
"wd_af_snp_only": "mean",
"wd_af_complex": "mean",
"wd_af_snps_0_01": "mean",
"wd_af_snps_0_05": "mean",
"wd_af_snps_0_1": "mean",
"wd_af_snps_0_5": "mean",
"changed_alleles_percentage": "mean",
"mean_difference": "mean",
"number_of_changed_alleles": "mean",
"number_of_alleles_touched": "mean",
"number_of_alleles_touched_percentage": "mean",
"ld": "mean",
}
TOTAL_UTILITY_JSON = f"{BASE_PATH}/starting_data/utility_loss.json"
SUBPOPS = ["All", "East Asian Ancestry", "American Ancestry", "African Ancestry", "South Asian Ancestry"]
SUBPOPS_SMALL = ["All", "EAS", "AMR", "AFR", "SAS"]
SUBPOPS_TEST = ["All", "East Asian Ancestry", "American Ancestry"]
MAX_LD_DISTANCE_KBP=1000
READS_DIR=f"{BASE_PATH}/read_fastqs"