function tripal_cv_obo_get_term
2.x tripal_cv.obo_loader.inc | tripal_cv_obo_get_term($id) |
1.x obo_loader.inc | tripal_cv_obo_get_term($id) |
Related topics
1 call to tripal_cv_obo_get_term()
- tripal_cv_obo_add_relationship in tripal_cv/
includes/ obo_loader.inc - Add a cvterm relationship
File
- tripal_cv/
includes/ obo_loader.inc, line 708 - Tripal Ontology Loader
Code
function tripal_cv_obo_get_term($id) {
$values = array('id' => $id);
$options = array('statement_name' => 'sel_tripalobotemp_id');
$result = tripal_core_chado_select('tripal_obo_temp', array('stanza'), $values, $options);
if (count($result) == 0) {
return FALSE;
}
return unserialize(base64_decode($result[0]->stanza));
}