function tripal_cv_load_update_cvtermpath

2.x tripal_cv.obo_loader.inc tripal_cv_load_update_cvtermpath($newcvs, $jobid)
1.x obo_loader.inc tripal_cv_load_update_cvtermpath($newcvs, $jobid)

A function for executing the cvtermpath function of Chado. This function populates the cvtermpath table of Chado for quick lookup of term relationships

Parameters

$newcvs: An associative array of controlled vocabularies to update. The key must be the name of the vocabulary and the value the cv_id from the cv table of chado.

$jobid: The job_id of the job from the Tripal jobs management system.

Related topics

2 calls to tripal_cv_load_update_cvtermpath()
tripal_cv_load_obo_v1_2_file in tripal_cv/includes/tripal_cv.obo_loader.inc
A wrapper function for importing the user specified OBO file into Chado by specifying the filename and path of the OBO. It requires that the file be in OBO v1.2 compatible format. This function is typically executed via the Tripal jobs management…
tripal_cv_load_obo_v1_2_url in tripal_cv/includes/tripal_cv.obo_loader.inc
A wrapper function for importing the user specified OBO file into Chado by specifying the remote URL of the OBO. It requires that the file be in OBO v1.2 compatible format. This function is typically executed via the Tripal jobs management after a…

File

tripal_cv/includes/tripal_cv.obo_loader.inc, line 487
Functions to aid in loading ontologies into the chado cv module

Code

function tripal_cv_load_update_cvtermpath($newcvs, $jobid) {

  print "\nUpdating cvtermpath table.  This may take a while...\n";
  foreach ($newcvs as $namespace => $cvid) {
    tripal_update_cvtermpath($cvid, $jobid);
  }
}