Closed stripathy closed 8 years ago
http://matrix.neuinfo.org:9000/scigraph/graph/UBERON:0002711
check if the json that comes back has xrefs = j['nodes'][0]['http://www.geneontology.org/formats/oboInOwl#hasDbXref']
which should be a list and if you check any([r for r in xrefs if r.startswith('MBA:')])
you will know it has an xref to mba.
Let me know if this works, otherwise I can put the xrefs back in (I stripped them out).
Thanks @tgbugs! works great!
@tgbugs is there a convenient service to get the appropriate DB crossrefs for an Uberon term?
For example, given this term:
I want to know if it has a xref to MBA and what if so, what its MBA ID is.