Chado v1.3 Schema

Provides an application programming interface (API) for describing Chado tables. This API consists of a set of functions, one for each table in Chado. Each function simply returns a Drupal style array that defines the table.

Because Drupal does not handle foreign key (FK) relationships, which are needed to for Tripal Views, they have been added to the schema defintitions below.

The functions provided in this documentation should not be called as is, but if you need the Drupal-style array definition for any table, use the following function call:

$table_desc = chado_get_schema($table)

where the variable $table contains the name of the table you want to retireve. The chado_get_schema function determines the appropriate version of Chado and uses the Drupal hook infrastructure to call the appropriate hook function to retrieve the table schema.

If you need to augment these schema definitions within your own module, you need to implement the hook_chado_schema_v1_3_[table name]() hook where [table name] is the name of the chado table whose schema definition you want to augment.

Parent topics

File

tripal_chado/api/tripal_chado.schema_v1.3.api.inc, line 7
Describes the chado tables in version 1.3