provide dictionary of ontology terms
jgbaum opened this issue · 3 comments
jgbaum commented
When Brendan's code builds the db from the git repo, he needs a way to map the ontology identifiers to labels. We can work with the TSV files in this repo, but it's probably cleaner if this package provides a function that returns a dictionary of ontology ids mapping to their fields & values (i.e. dictionary of dictionaries). For example:
{ OBI:0000001 => { label => 'experiment, URI => 'https://ontology.com/OBI_0000001, ...} ... }
What do you think, @jamesaoverton ?
jamesaoverton commented
config.py
holds this information, which it loads from config.json
. Does that cover this requirement?
bha008 commented
@jamesaoverton perfect, I can work with that