2.1. wc_onto package

2.1.2. Submodules

2.1.3. wc_onto._version module

2.1.4. wc_onto.core module

wc_onto

Author

Jonathan Karr <karr@mssm.edu>

Date

2019-03-26

Copyright

2019, Karr Lab

License

MIT

wc_onto.core.get_dependent_ontologies(ontologies={'BFO': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/bfo.owl'}, 'BRO': {'format': 'owl', 'params': {'headers': {'Authorization': 'apikey token=d68d7174-a550-4845-b51b-8959c9bef365'}}, 'url': 'http://data.bioontology.org/ontologies/BRO/submissions/14/download'}, 'COMODI': {'format': 'owl', 'url': 'https://comodi.bio.informatik.uni-rostock.de/latest/comodi.owl'}, 'FOAF': {'format': 'rdf', 'params': {'headers': {'Authorization': 'apikey token=d68d7174-a550-4845-b51b-8959c9bef365'}}, 'url': 'http://data.bioontology.org/ontologies/FOAF/download?download_format=rdf'}, 'IAO': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/iao.owl'}, 'KISAO': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/kisao.owl'}, 'MATR': {'format': 'rdf', 'params': {'headers': {'Authorization': 'apikey token=d68d7174-a550-4845-b51b-8959c9bef365'}}, 'url': 'http://data.bioontology.org/ontologies/MATR/submissions/1/download?download_format=rdf'}, 'SBO': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/sbo.owl'}, 'SEPIO': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/sepio.owl'}}, dir='/root/.wc/ontologies')[source]

Download dependent ontologies

Parameters
  • ontologies (dict, optional) – dictionary that maps ids of ontologies to information about where to obtain them

  • dir (str, optional) – directory to save ontology

wc_onto.core.get_ontology(id, source, dir='/root/.wc/ontologies')[source]

Download ontology to disk

Parameters
  • id (str) – id of ontology

  • source (dict) – information about source (URL, format) of ontology

  • dir (str, optional) – directory to save ontology

2.1.5. Module contents