function tripal_get_analysis

2.x tripal_analysis.api.inc tripal_get_analysis($identifier, $options)
3.x tripal_chado.module.DEPRECATED.api.inc tripal_get_analysis($identifier, $options)

Retrieves a chado analysis variable.

Parameters

$itentifier: an array with the key stating what the identifier is. Supported keys (only on of the following unique keys is required):

  • analysis_id: the chado analysis.analysis_id primary key.
  • nid: the drupal node.nid primary key.

There are also some specially handled keys. They are:

  • property: An array/object describing the property to select records for. It should at least have either a type_name (if unique across cvs) or type_id. Other supported keys include: cv_id/cv_name (of the type), value and rank.

$options: An array of options. Supported keys include:

  • Any keys supported by chado_generate_var(). See that function definition for additional details.

NOTE: the $identifier parameter can really be any array similar to $values passed into chado_select_record(). It should fully specify the stock record to be returned.

Return value

the analysis node matching the passed in identifier

1 call to tripal_get_analysis()
1 string reference to 'tripal_get_analysis'

File

tripal_chado/api/modules/tripal_chado.module.DEPRECATED.api.inc, line 47
These api functions are deprecated, if your site is currently using them please update your code with the newer tripal_chado functions.

Code

function tripal_get_analysis($identifier, $options) {
  chado_get_analysis($identifier, $options);
}