-
Notifications
You must be signed in to change notification settings - Fork 13
/
hierarchy.py
102 lines (95 loc) · 2.08 KB
/
hierarchy.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
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
level_6 = [
'PublicationData',
'UcscBrowserComposite',
'ReferenceEpigenome',
'MatchedSet',
'TreatmentTimeSeries',
'ReplicationTimingSeries',
'OrganismDevelopmentSeries',
'TreatmentConcentrationSeries',
'Annotation',
'Project']
level_5 = [
'Experiment']
level_4 = [
'Replicate']
level_3 = [
'Library']
level_2 = [
'AntibodyLot',
'Biosample',
'Software',
'File',
'Treatment',
'TALEN',
'RNAi',
'Construct',
'Target',
'Document',
'Publication',
'Reference',
'GeneticModification',
'Crispr',
'Tale',
'SoftwareVersion',
'DonorCharacterization',
'ConstructCharacterization',
'RNAiCharacterization',
'BiosampleCharacterization',
'StarQualityMetric',
'MadQualityMetric',
'HotspotQualityMetric',
'GenericQualityMetric',
'FastqcQualityMetric',
'SamtoolsFlagstatsQualityMetric',
'DnasePeakQualityMetric',
'Encode2ChipSeqQualityMetric',
'SamtoolsStatsQualityMetric',
'EdwcomparepeaksQualityMetric',
'PbcQualityMetric',
'IDRQualityMetric',
'EdwbamstatsQualityMetric',
'ChipSeqFilterQualityMetric',
'BigwigcorrelateQualityMetric',
'CpgCorrelationQualityMetric',
'PhantompeaktoolsSppQualityMetric',
'IdrSummaryQualityMetric',
'BismarkQualityMetric',
'MouseDonor',
'WormDonor',
'FlyDonor',
'HumanDonor',
'Organism',
'Lab',
'Award',
'Platform',
'Source',
'Image']
levels_mapping = {}
for entry in level_2:
levels_mapping[entry] = 'level_2'
for entry in level_3:
levels_mapping[entry] = 'level_3'
for entry in level_4:
levels_mapping[entry] = 'level_4'
for entry in level_5:
levels_mapping[entry] = 'level_5'
for entry in level_6:
levels_mapping[entry] = 'level_6'
dictionary_of_lower_levels = {
'level_6':
set(level_2) |
set(level_3) |
set(level_4) |
set(level_5),
'level_5':
set(level_2) |
set(level_3) |
set(level_4),
'level_4':
set(level_2) |
set(level_3),
'level_3':
set(level_2),
'level_2':
set(level_2)}