function tripal_feature_install

2.x tripal_feature.install tripal_feature_install()
3.x tripal_feature.install tripal_feature_install()
1.x tripal_feature.install tripal_feature_install()

Implements hook_install().

Related topics

File

tripal_feature/tripal_feature.install, line 50
Installation of the feature module

Code

function tripal_feature_install() {

  // Add the feature properties vocabulary provided by Chado.
  $obo_path = '{tripal_feature}/files/feature_property.obo';
  $obo_id = tripal_insert_obo('Chado Feature Properties', $obo_path);
  tripal_submit_obo_job(array('obo_id' => $obo_id));

  // Add the materialized view.
  tripal_feature_add_organism_count_mview();

  // Add the custom tables.
  tripal_feature_add_tripal_gff_temp_table();
  tripal_feature_add_tripal_gffcds_temp_table();
  tripal_feature_add_tripal_gffprotein_temp_table();

  // Add the vocabularies used by the feature module.
  tripal_feature_add_cvs();

  // Set the default vocabularies.
  tripal_set_default_cv('feature', 'type_id', 'sequence');
  tripal_set_default_cv('featureprop', 'type_id', 'feature_property');
  tripal_set_default_cv('feature_relationship', 'type_id', 'sequence');
}