2.1. wc_onto package

2.1.2. Submodules

2.1.3. 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', 'url': 'http://purl.obolibrary.org/obo/bro.owl'}, 'COMODI': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/comodi.owl'}, 'FOAF': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/foaf.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': 'owl', 'url': 'http://purl.obolibrary.org/obo/matr.owl'}, 'SBO': {'format': 'obo', 'url': 'http://purl.obolibrary.org/obo/sbo.obo'}, 'SEPIO': {'format': 'owl', 'url': 'http://purl.obolibrary.org/obo/sepio.owl'}}, dir='/root/project/wc_onto/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/project/wc_onto/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.4. Module contents