-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.py
More file actions
52 lines (42 loc) · 2.18 KB
/
Constants.py
File metadata and controls
52 lines (42 loc) · 2.18 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
TRACKS = 'tracks'
STUDIES = 'studies'
EXPERIMENTS = 'experiments'
SAMPLES = 'samples'
SCHEMA_URL_PART1 = 'https://raw.githubusercontent.com/fairtracks/fairtracks_standard/'
SCHEMA_URL_PART2 = '/current/json/schema/fairtracks.schema.json'
TOP_SCHEMA_FN = 'fairtracks.schema.json'
TERM_ID = 'term_id'
ONTOLOGY = 'ontology'
TERM_LABEL = 'term_label'
DOC_ONTOLOGY_VERSIONS_NAMES = {'doc_info': 'doc_ontology_versions',
'document': 'ontology_versions'}
HAS_AUGMENTED_METADATA = {'doc_info': 'has_augmented_metadata',
'document': 'has_augmented_metadata'}
FILE_NAME = 'file_name'
FILE_URL = 'file_url'
ITEMS = 'items'
PROPERTIES = 'properties'
VERSION_IRI = '<owl:versionIRI rdf:resource="'
DOAP_VERSION = '<doap:Version>'
EDAM_ONTOLOGY = 'http://edamontology.org/'
IDENTIFIERS_API_URL = 'http://resolver.api.identifiers.org/'
NCBI_TAXONOMY_RESOLVER_URL = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=taxonomy&retmode=json'
SAMPLE_TYPE_MAPPING = {'http://purl.obolibrary.org/obo/NCIT_C12508':['sample_type', 'cell_type'],
'http://purl.obolibrary.org/obo/NCIT_C12913':['sample_type', 'abnormal_cell_type'],
'http://purl.obolibrary.org/obo/NCIT_C16403':['sample_type', 'cell_line'],
'http://purl.obolibrary.org/obo/NCIT_C103199':['sample_type', 'organism_part']}
SAMPLE_ORGANISM_PART_PATH = ['sample_type', 'organism_part', 'term_label']
SAMPLE_DETAILS_PATH = ['sample_type', 'details']
BIOSPECIMEN_CLASS_PATH = ['biospecimen_class', 'term_id']
SAMPLE_TYPE_SUMMARY_PATH = ['sample_type', 'summary']
EXPERIMENT_TARGET_PATHS = [['target', 'sequence_feature', 'term_label'], ['target', 'gene_id'],
['target', 'gene_product_type', 'term_label'],
['target', 'macromolecular_structure', 'term_label'],
['target', 'phenotype', 'term_label']]
TARGET_DETAILS_PATH = ['target', 'details']
TARGET_SUMMARY_PATH = ['target', 'summary']
TRACK_FILE_URL_PATH = ['file_url']
SPECIES_ID_PATH = ['species_id']
SPECIES_NAME_PATH = ['species_name']
ONTOLOGY_FOLDER_PATH = 'ontologies'
RESOLVED_RESOURCES = 'resolvedResources'