-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructures.py
30 lines (27 loc) · 1.05 KB
/
structures.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
from typing import TypedDict, List, Optional
from typing_extensions import NotRequired
class GwasCatalogCategories(TypedDict):
"""Typed dict structure to store EFO data by parent id"""
EFO_0000405: NotRequired[List]
EFO_0004324: NotRequired[List]
EFO_0004529: NotRequired[List]
EFO_0004503: NotRequired[List]
EFO_0000540: NotRequired[List]
EFO_0000589: NotRequired[List]
EFO_0000001: NotRequired[List]
EFO_0000408: NotRequired[List]
GO_0008150: NotRequired[List]
EFO_0004298: NotRequired[List]
EFO_0000319: NotRequired[List]
EFO_0000618: NotRequired[List]
EFO_0001444: NotRequired[List]
EFO_0000616: NotRequired[List]
EFO_0004872: NotRequired[List]
EFO_0004582: NotRequired[List]
EFO_0004732: NotRequired[List]
# Current parent efo_ids
"""
['EFO_0000405', 'EFO_0004324', 'EFO_0004529', 'EFO_0004503', 'EFO_0000540', 'EFO_0000589',
'EFO_0000001', 'EFO_0000408', 'GO_0008150', 'EFO_0004298', 'EFO_0000319', 'EFO_0000618',
'EFO_0001444', 'EFO_0000616', 'EFO_0004872', 'EFO_0004582', 'EFO_0004732']
"""