public function OBOImporter::run
3.x OBOImporter.inc | public OBOImporter::run() |
Parameters
$details: The following arguments are supported:
- obo_id: (required) The ID of the ontology to be imported.
Overrides TripalImporter::run
See also
File
- tripal_chado/
includes/ TripalImporter/ OBOImporter.inc, line 387
Class
Code
public function run() {
$arguments = $this->arguments['run_args'];
$obo_id = $arguments['obo_id'];
// Make sure the $obo_id is valid
$obo = db_select('tripal_cv_obo', 'tco')
->fields('tco')
->condition('obo_id', $obo_id)
->execute()
->fetchObject();
if (!$obo) {
throw new Exception("Invalid OBO ID provided: '$obo_id'.");
}
$this->loadOBO_v1_2_id($obo);
}