function tripal_analysis_add_cvterms

2.x tripal_analysis.install tripal_analysis_add_cvterms()
3.x tripal_analysis.install tripal_analysis_add_cvterms()
1.x tripal_analysis.install tripal_analysis_add_cvterms()
1 call to tripal_analysis_add_cvterms()
tripal_analysis_install in tripal_analysis/tripal_analysis.install
Implementation of hook_install().

File

tripal_analysis/tripal_analysis.install, line 51
Implements hooks from the Schema API

Code

function tripal_analysis_add_cvterms() {

  tripal_cv_add_cv('tripal_analysis', 'Terms used for managing analyses in Tripal');

  // add analysis_type. This goes in the 'tripal_analysis' CV so that site admins
  // change change this property
  $term = array(
    'name' => 'analysis_type',
    'def' => 'The type of analysis that was performed. This value is automatically set by ' .
      'each Tripal Analysis module and should be equal to the module name ' .
      '(e.g. tripal_analysis_blast, tripal_analysis_go).'
  );
  tripal_cv_add_cvterm($term, 'tripal_analysis', 0, 1, 'tripal');

  // add analysis_date.  This is no longer used (as far as we can tell) but we don't
  // get rid of it in case it is used, so just keep it in the Tripal CV
  $term = array(
    'name' => 'analysis_date',
    'def' => 'The date that an analysis was performed.'
  );
  tripal_cv_add_cvterm($term, 'tripal', 0, 1, 'tripal');

  // add analysis_short_name.  This is no longer used (as far as we can tell) but we don't
  // get rid of it in case it is used, so just keep it in the Tripal CV
  $term = array(
    'name' => 'analysis_short_name',
    'def' => 'A computer legible (no spaces or special characters) abbreviation for the analysis.'
  );
  tripal_cv_add_cvterm($term, 'tripal', 0, 1, 'tripal');


  // the 'analysis_property' vocabulary is for user definable properties.  Even though we already have
  // an analysis_type term in the 'tripal_analysis' vocabular we duplicate it here because the 
  // tripal_analysis vocabulary is intended for use by the extension modules.  user's should not be able
  // to directly modify properties set by extension modules for an analysis.
  tripal_cv_add_cvterm(array('name' => 'Analysis Type', 'def' => 'The type of analysis that was performed.'), 
  'analysis_property', 0, 1, 'tripal');
}