Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add FMA ontology #1371

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion indra/databases/owl_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def entry_from_term(
term_ns = term_ns.lower()
return {
"namespace": term_ns,
"id": term_id,
"id": term_id if remove_prefix else term.id,
"name": term.name,
"synonyms": [s.description for s in term.synonyms],
"xrefs": xrefs,
Expand Down
5 changes: 3 additions & 2 deletions indra/ontology/bio/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class BioOntology(IndraOntology):
# should be incremented to "force" rebuilding the ontology to be consistent
# with the underlying resource files.
name = 'bio'
version = '1.22'
version = '1.23'
ontology_namespaces = [
'go', 'efo', 'hp', 'doid', 'chebi', 'ido',
'mondo',
'mondo', 'fma'
]

def __init__(self):
Expand Down Expand Up @@ -222,6 +222,7 @@ def add_obo_nodes(self):
'chebi': lambda x: 'small_molecule',
'ido': lambda x: 'infectious_disease_concept',
'mondo': lambda x: 'disease',
'fma': lambda x: 'anatomical_concept'
}
for ns in self.ontology_namespaces:
oc = obo_client.OntologyClient(prefix=ns)
Expand Down
Loading