|
Tripal
|


Public Member Functions | |
| chadoCheckTermsAreAsExpected ($options=['chado_schema'=> NULL, 'auto-expand'=> FALSE, 'auto-fix'=> FALSE, 'no-fix'=> FALSE]) | |
Protected Member Functions | |
| chadoCheckTerms_findProblems (&$problems, &$solutions, &$summary_rows, $options) | |
| chadoCheckTerms_findCVProblems (&$problems, &$solutions, &$summary_rows, $options) | |
| chadoCheckTerms_reportProblems ($problems, $solutions, $summary_rows, $options) | |
| chadoCheckTerms_checkVocab (array $vocab_info, array &$problems, array &$solutions) | |
| chadoCheckTerms_checkIdSpaces (array $vocab_info, array &$problems, array &$solutions) | |
| chadoCheckTerms_checkTerm (array $term_info, array &$problems, array &$solutions) | |
| chadoCheckTerms_printSummaryTable (array $summary_rows) | |
| updateChadoTermRecords (string $table_name, string $pkey, array $records) | |
| migrateObsoleteVocabularies (array $cv_ids) | |
| chadoCheckTerms_reportProblem_yamlDuplication ($problems, $solutions, $options) | |
| chadoCheckTerms_reportProblem_missingDbYaml ($problems, $solutions, $options) | |
| chadoCheckTerms_reportProblem_obsoleteCv ($problems, $solutions, $options) | |
| chadoCheckTerms_reportProblem_terms ($problems, $solutions, $options) | |
| chadoCheckTerms_reportProblem_eccentricCv ($problems, $solutions, $options) | |
| chadoCheckTerms_reportProblem_eccentricDb ($problems, $solutions, $options) | |
| chadoCheckTerms_reportProblem_eccentricCVTerm ($problems, $solutions, $options) | |
Protected Attributes | |
| $chado_schema | |
| ChadoConnection | $chado |
| string | $red_format = "\033[31;40m\033[1m %s \033[0m" |
| string | $yellow_format = "\033[1;33;40m\033[1m %s \033[0m" |
Drush command specific to checking the cv/db/cvterm/dbxref records in a specific chado schema against the expected terms in the Tripal Content Terms YAML.
DO NOT ADD ADDITION DRUSH COMMANDS TO THIS CLASS.
|
protected |
Checks that the id space metadata in the YAML matches this chado instance.
| array | $vocab_info | |
| array | $problems | |
| array | $solutions |
|
protected |
Checks that the term metadata in the YAML matches this chado instance.
| array | $term_info | |
| array | $problems | |
| array | $solutions |
|
protected |
Checks that the vocabulary metadata in the YAML matches this chado instance.
| array | $vocab_info | |
| array | $problems | |
| array | $solutions |
|
protected |
Checks for obsolete vocabularies in the database.
| array | $problems | Array containing details for either errors or warnings |
| array | $solutions | Array containing possible solutions for either errors or warnings |
| array | $summary_rows | Infomation for the output table |
| array | $options | Options from drush command line |
|
protected |
Checks all YAML specifications and compares to current chado state.
| array | $problems | Array containing details for either errors or warnings |
| array | $solutions | Array containing possible solutions for either errors or warnings |
| array | $summary_rows | Infomation for the output table |
| array | $options | Options from drush command line |
|
protected |
Prints a beautiful summary table showing the status of all terms.
| array | $summary_rows |
|
protected |
Reports warnings and potential solutions for the "cv" warning type.
Trigger Example: Imagine there is a vocabulary defined whose
| array | $problems | An array describing instances with this type of warning with the following format:
|
| array | $solutions | An array describing possible solutions with the following format:
|
|
protected |
Reports warnings and potential solutions for the "cvterm" warning type.
Trigger Example: Imagine there is a cvterm defined whose
| array | $problems | An array describing instances with this type of warning with the following format:
|
| array | $solutions | An array describing possible solutions with the following format:
|
|
protected |
Reports warnings and potential solutions for the "db" warning type.
Trigger Example: Imagine there is a ID Space defined whose
| array | $problems | An array describing instances with this type of warning with the following format:
|
| array | $solutions | An array describing possible solutions with the following format:
|
|
protected |
Reports errors and potential solutions for the "missingDbYaml" error type.
Trigger Example: Imagine there is a term defined whose id is DATUM:12345 but the vocabulary this term is in either
| array | $problems | An array describing instances with this type of error with the following format:
|
| array | $solutions | There are currently no easy suggested solutions for this but the parameter is here in case we decide to be more helpful later ;-p |
|
protected |
Reports errors and potential solutions for the "obsolete_cv" error type.
Trigger Examples: Imagine a term defined with a vocabulary of 'organism_property'
| array | $problems | An array describing instances with this type of error with the following format:
|
| array | $solutions | Just a placeholder, will always contain 'Move to local CV' |
|
protected |
Reports errors and potential solutions for the "term" error type.
Trigger Examples: Imagine a term defined with a name of 'Location' and an id of 'NCIT:C25341'
| array | $problems | An array describing instances with this type of error with the following format:
|
| array | $solutions | There are currently no easy suggested solutions for this but the parameter is here in case we decide to be more helpful later ;-p |
|
protected |
Reports errors and potential solutions for the "yamlDuplication" error type.
Trigger Example: the term local:lineage is defined twice in tripal.tripal_content_terms.chado_content_terms.yml
| array | $problems | An array describing instances with this type of error with the following format:
|
| array | $solutions | There are currently no easy suggested solutions for this but the parameter is here in case we decide to be more helpful later ;-p |
|
protected |
Reports to user the status of chado as determined by chadoCheckTerms_findProblems.
| array | $problems | Array containing details for either errors or warnings |
| array | $solutions | Array containing possible solutions for either errors or warnings |
| array | $summary_rows | Infomation for the output table |
| array | $options | Options from drush command line |
| Drupal\tripal_chado\Commands\ChadoCheckTermsAgainstYaml::chadoCheckTermsAreAsExpected | ( | $options = ['chado_schema' => NULL, 'auto-expand' => FALSE, 'auto-fix' => FALSE, 'no-fix' => FALSE] | ) |
Checks a given chado install for any inconsistencies between its cvterms and what Tripal expects.
@command tripal-chado:trp-check-terms @aliases trp-check-terms @option chado_schema The name of the chado schema to check. @option auto-expand Indicates that you always want to show specifics of any errors or warnings. @option auto-fix Indicates that you always want us to attempt to fix any issues without the need for us to prompt. @option no-fix Indicates that you do not want us to offer to fix anything. @usage drush trp-check-terms –chado_schema=chado_prod Checks the terms stored in chado_prod.cvterm for consistency.
|
protected |
Migrates terms in obsolete vocabularies to "local" vocabulary, and then removes the obsolete vocabularies.
| array | $cv_ids | An associative array of the obsolete vocabularies, key is pkey_id, value is vocabulary name. |
|
protected |
Updates records in chado based on an array of records.
| string | $table_name | The name of the chado table to be updated. |
| string | $pkey | The name of the primary key of the table to be updated. |
| array | $records | An array of the following format:
|