Difference between revisions of "Template:ChadoTable phenotype comparison"
From GMOD
(Table definition, first upload on 2010/11/22.) |
(Table definition for Chado on 2010/11/24) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{ChadoTableTemplateHeader}}</noinclude> | + | <protect><noinclude>{{ChadoTableTemplateHeader}}</noinclude> |
+ | {{ChadoTableDesc|Genetic|phenotype_comparison|Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.}} | ||
{{ChadoColumnsHeader|Genetic|phenotype_comparison}} | {{ChadoColumnsHeader|Genetic|phenotype_comparison}} | ||
− | {{ChadoColumnDesc||phenotype_comparison_id|serial|''PRIMARY KEY'' | + | {{ChadoColumnDesc||phenotype_comparison_id|serial|''PRIMARY KEY''<br /> |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|genotype}}|genotype1_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|genotype}}|genotype1_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|environment}}|environment1_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|environment}}|environment1_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|genotype}}|genotype2_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|genotype}}|genotype2_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|environment}}|environment2_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Genetic|environment}}|environment2_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Phenotype|phenotype}}|phenotype1_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Phenotype|phenotype}}|phenotype1_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
{{ChadoColumnDesc|{{ChadoModuleTableLink|Phenotype|phenotype}}|phenotype2_id|integer|}} | {{ChadoColumnDesc|{{ChadoModuleTableLink|Phenotype|phenotype}}|phenotype2_id|integer|}} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Publication|pub}}|pub_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Publication|pub}}|pub_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Organism|organism}}|organism_id|integer|''NOT NULL'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Organism|organism}}|organism_id|integer|''NOT NULL''<br /> |
− | + | ||
}} | }} | ||
{{ChadoColumnsFooter}} | {{ChadoColumnsFooter}} | ||
{{ChadoTablesReferencingHeader|phenotype_comparison}} | {{ChadoTablesReferencingHeader|phenotype_comparison}} | ||
− | + | * {{ChadoReferencingTable|Genetic|phenotype_comparison_cvterm}} | |
− | * | + | |
</protect> | </protect> |
Revision as of 19:22, 24 November 2010
This template is a Chado Table Template. It defines a single table from the Chado schema, and every Chado table has a template like this one. This template is automatically included in two places:
- The module page for the module the table is a part of. This is where updates and comments should be posted.
- The Chado Tables page, which lists all tables.
You can include this template anywhere you want to show the table description.
Table: | phenotype_comparison |
Module: | Genetic |
Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.
FK | Name | Type | Description |
---|---|---|---|
phenotype_comparison_id | serial | PRIMARY KEY | |
genotype | genotype1_id | integer | UNIQUE#1 NOT NULL |
environment | environment1_id | integer | UNIQUE#1 NOT NULL |
genotype | genotype2_id | integer | UNIQUE#1 NOT NULL |
environment | environment2_id | integer | UNIQUE#1 NOT NULL |
phenotype | phenotype1_id | integer | UNIQUE#1 NOT NULL |
phenotype | phenotype2_id | integer | |
pub | pub_id | integer | UNIQUE#1 NOT NULL |
organism | organism_id | integer | NOT NULL
|
Tables referencing phenotype_comparison via foreign key constraints: