Tripal
|
Public Member Functions | |
validateParameters () | |
performTask () | |
createCustomTable_tripal_gffcds_temp () | |
createCustomTable_tripal_gffprotein_temp () | |
createCustomTable_tripal_obo_temp () | |
getProgress () | |
getStatus () | |
![]() | |
getTripalDbxClass ($class) | |
![]() | |
__construct (?\Drupal\Core\Database\Connection $database=NULL, ?\Psr\Log\LoggerInterface $logger=NULL, ?\Drupal\tripal_biodb\Lock\SharedLockBackendInterface $locker=NULL, ?\Drupal\Core\State\StateInterface $state=NULL) | |
setParameters (array $parameters=[]) | |
getId () | |
getLogger () | |
Public Attributes | |
const | TASK_NAME = 'preparer' |
![]() | |
const | TASK_NAME = 'chado' |
![]() | |
const | TASK_NAME = 'task' |
const | STATE_KEY_DATA_PREFIX = 'tripal_biodb_' |
Protected Member Functions | |
createCustomTables () | |
createCustomTable_tripal_gff_temp () | |
createMviews () | |
setProgress (float $value) | |
importOntologies () | |
![]() | |
prepareSchemas (array $schema_list) | |
getSchemaLockName (\Drupal\tripal\TripalDBX\TripalDbxConnection $db) | |
initId () | |
acquireTaskLocks () | |
releaseTaskLocks () | |
Protected Attributes | |
$chado_schema_main | |
![]() | |
$id | |
$connection | |
$logger | |
$locker | |
$state | |
$parameters = ['input_schemas' => [], 'output_schemas' => [], ] | |
$inputSchemas = [] | |
$outputSchemas = [] | |
Chado preparer.
Usage:
|
protected |
Creates the tripal_gff_temp table.
This table is used by the GFF Importer.
Drupal\tripal_chado\Task\ChadoPreparer::createCustomTable_tripal_gffcds_temp | ( | ) |
Creates the tripal_gffcds_temp table.
This table is used by the GFF Importer.
Drupal\tripal_chado\Task\ChadoPreparer::createCustomTable_tripal_gffprotein_temp | ( | ) |
Create the tripal_gffproptein_temp table.
This table is used by the GFF Importer.
Drupal\tripal_chado\Task\ChadoPreparer::createCustomTable_tripal_obo_temp | ( | ) |
Create the tripal_obo_temp table.
This table is used by the OBO Importer.
|
protected |
Create the custom tables this module needs.
These are tables that Chado uses to manage the site (i.e. temporary loading tables) and not for primary data storage.
|
protected |
Creates the materialized views used by this module.
Drupal\tripal_chado\Task\ChadoPreparer::getProgress | ( | ) |
{Returns the percent of progress of current task.This method can also be used to check if a task is currently running if it has a > 0 value. A negative value means an error occured while running.
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
Drupal\tripal_chado\Task\ChadoPreparer::getStatus | ( | ) |
{{Returns a string describing current status of the performed task.This function returns the last known status, even if the task ended. In case of failure, this function may return the reason of the failure.
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
|
protected |
Imports ontologies into Chado.
Drupal\tripal_chado\Task\ChadoPreparer::performTask | ( | ) |
Prepare a given chado schema by inserting minimal data.
Task parameter array provided to the class constructor includes:
Example:
Drupal |
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
|
protected |
Set progress value.
float | $value | New progress value. |
Drupal\tripal_chado\Task\ChadoPreparer::validateParameters | ( | ) |
Validate task parameters.
Parameter array provided to the class constructor must include one output schema and no input schema as shown:
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
const Drupal\tripal_chado\Task\ChadoPreparer::TASK_NAME = 'preparer' |
Name of the task.