function tripal_library_add_cvterms

2.x tripal_library.install tripal_library_add_cvterms()
3.x tripal_library.install tripal_library_add_cvterms()
1.x tripal_library.install tripal_library_add_cvterms()

Adds cvterms needed for the library module

Related topics

1 call to tripal_library_add_cvterms()
tripal_library_install in tripal_library/tripal_library.install
Implementation of hook_install().

File

tripal_library/tripal_library.install, line 184
Installation of the library module

Code

function tripal_library_add_cvterms() {

  // Insert cvterm 'library_description' into cvterm table of chado
  // database. This CV term is used to keep track of the library
  // description in the libraryprop table.
  tripal_insert_cvterm(
  array(
    'name' => 'Library Description',
    'definition' => 'Description of a library',
    'cv_name' => 'library_property',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );

  // add cvterms for the map unit types
  tripal_insert_cvterm(
  array(
    'name' => 'cdna_library',
    'definition' => 'cDNA library',
    'cv_name' => 'library_type',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );
  tripal_insert_cvterm(
  array(
    'name' => 'bac_library',
    'definition' => 'Bacterial Artifical Chromsome (BAC) library',
    'cv_name' => 'library_type',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );
  tripal_insert_cvterm(
  array(
    'name' => 'fosmid_library',
    'definition' => 'Fosmid library',
    'cv_name' => 'library_type',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );
  tripal_insert_cvterm(
  array(
    'name' => 'cosmid_library',
    'definition' => 'Cosmid library',
    'cv_name' => 'library_type',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );
  tripal_insert_cvterm(
  array(
    'name' => 'yac_library',
    'definition' => 'Yeast Artificial Chromosome (YAC) library',
    'cv_name' => 'library_type',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );
  tripal_insert_cvterm(
  array(
    'name' => 'genomic_library',
    'definition' => 'Genomic Library',
    'cv_name' => 'library_type',
    'is_relationship' => 0,
    'db_name' => 'tripal'
  ), 
  array('update_existing' => TRUE)
  );
}