Difference between revisions of "Chado Library Module"

From GMOD
Jump to: navigation, search
m
m
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
 +
 +
{{NeedsEditing}}
  
  

Revision as of 16:11, 5 March 2007

Introduction

This page or section needs to be edited. Please help by editing this page to add your revisions or additions.


Tables

Table: library

library Structure
F-Key Name Type Description
library_id serial PRIMARY KEY

organism

organism_id integer UNIQUE#1 NOT NULL
name character varying(255)
uniquename text UNIQUE#1 NOT NULL

cvterm

type_id integer UNIQUE#1 NOT NULL

The type_id foreign key links to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"

Tables referencing this one via Foreign Key Constraints:



Table: library_cvterm

The table library_cvterm links a library to controlled vocabularies which describe the library. For instance, there might be a link to the anatomy cv for "head" or "testes" for a head or testes library.

library_cvterm Structure
F-Key Name Type Description
library_cvterm_id serial PRIMARY KEY

library

library_id integer UNIQUE#1 NOT NULL

cvterm

cvterm_id integer UNIQUE#1 NOT NULL

pub

pub_id integer UNIQUE#1 NOT NULL


Table: library_feature

library_feature links a library to the clones which are contained in the library. Examples of such linked features might be "cDNA_clone" or "genomic_clone".

library_feature Structure
F-Key Name Type Description
library_feature_id serial PRIMARY KEY

library

library_id integer UNIQUE#1 NOT NULL

feature

feature_id integer UNIQUE#1 NOT NULL


Table: library_pub

library_pub Structure
F-Key Name Type Description
library_pub_id serial PRIMARY KEY

library

library_id integer UNIQUE#1 NOT NULL

pub

pub_id integer UNIQUE#1 NOT NULL


Table: library_synonym

library_synonym Structure
F-Key Name Type Description
library_synonym_id serial PRIMARY KEY

synonym

synonym_id integer UNIQUE#1 NOT NULL

library

library_id integer UNIQUE#1 NOT NULL

pub

pub_id integer UNIQUE#1 NOT NULL

The pub_id link is for relating the usage of a given synonym to the publication in which it was used.
is_current boolean NOT NULL DEFAULT true

The is_current bit indicates whether the linked synonym is the current -official- symbol for the linked library.
is_internal boolean NOT NULL DEFAULT false

Typically a synonym exists so that somebody querying the database with an obsolete name can find the object they are looking for under its current name. If the synonym has been used publicly and deliberately (e.g. in a paper), it my also be listed in reports as a synonym. If the synonym was not used deliberately (e.g., there was a typo which went public), then the is_internal bit may be set to "true" so that it is known that the synonym is "internal" and should be queryable but should not be listed in reports as a valid synonym.


Table: libraryprop

libraryprop Structure
F-Key Name Type Description
libraryprop_id serial PRIMARY KEY

library

library_id integer UNIQUE#1 NOT NULL

cvterm

type_id integer UNIQUE#1 NOT NULL
value text
rank integer UNIQUE#1 NOT NULL