Tripal Plant PopGen Submit
|
Go to the source code of this file.
Functions | |
tpps_api_submission_info () | |
tpps_api_submission_query () | |
tpps_api_submission_std_query (array &$conditions) | |
Defines TPPS API functions for submission-related operations.
Definition in file tpps.submission.api.inc.
tpps_api_submission_info | ( | ) |
Returns information about submissions based on provided accessions.
This function will return data and possibly Tripal Entities for TPPS submissions based on provided accessions and data requests. Possible data that can be retrieved using this function includes: project publication author organism design stock phenotype genotype stats By default, the function will simply return the database ids of the associated data, but if the entities parameter is provided and set to true, the function will instead return Tripal Entites of associated data if possible. Data options that currently support Tripal Entities include: project publication organism stock genotype For example, to retrieve the database ids of the authors and species associated with a TPPS submission, you could call submission_info?accessions=TGDR001&data=author,organism If you instead want to return the Tripal Entities for the species, call submission_info?accessions=TGDR001&data=author,organism&entities=TRUE The returned information is sorted by data type, and if entities are both requested and valid, then the information for that data type will be indexed by Tripal Entity id.
Definition at line 171 of file tpps.submission.api.inc.
tpps_api_submission_query | ( | ) |
Returns information about TPPS submissions satisfying provided conditions.
This function first calls the tpps_api_submission_std_query function with the provided conditions, then filters the list of submissions using the various tpps_api_*_pid_query functions if there are remaining unused conditions. The supported standard query conditions include: accession number tpps_submission table record id submission uid submisison status submission dbxref_id submission state Supported additional query conditions include: author organism organization The default database comparison operator is '~*', but different operators can be specified using square brackets. For example, calling submission?organization=University would produce a condition like WHERE name ~* 'University' but calling submission?organization=University[LIKE] would produce a condition like WHERE name LIKE 'University'
Definition at line 38 of file tpps.submission.api.inc.
tpps_api_submission_std_query | ( | array & | $conditions | ) |
Performs the initial TPPS submission standard query.
This function filters submissions by conditions that match columns in the tpps_submission table. These columns include: tpps_submission_id accession uid status dbxref_id submission_state The function will also unset items in the conditions array that have already been used, so that the tpps_api_submission_query function knows whether to perform additional query filtering. If no conditions in the conditions array match the columns of the tpps_submission table, this function will simply return all TPPS submissions found in the table.
array | $conditions | The conditions to filter the submission query by. |
Definition at line 114 of file tpps.submission.api.inc.