NAME

Bio::Chado::Schema::Stock::Stock - Any stock can be globally identified by the combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.

ACCESSORS

stock_id

data_type: integer
default_value: nextval('stock_stock_id_seq'::regclass)
is_auto_increment: 1
is_nullable: 0
size: 4

dbxref_id

data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 1
size: 4

The dbxref_id is an optional primary stable identifier for this stock. Secondary indentifiers and external dbxrefs go in table: stock_dbxref.

organism_id

data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: 4

The organism_id is the organism to which the stock belongs. This column is mandatory.

name

data_type: character varying
default_value: undef
is_nullable: 1
size: 255

The name is a human-readable local name for a stock.

uniquename

data_type: text
default_value: undef
is_nullable: 0
size: undef

description

data_type: text
default_value: undef
is_nullable: 1
size: undef

The description is the genetic description provided in the stock list.

type_id

data_type: integer
default_value: undef
is_foreign_key: 1
is_nullable: 0
size: 4

The type_id foreign key links to a controlled vocabulary of stock types. The would include living stock, genomic DNA, preserved specimen. Secondary cvterms for stocks would go in stock_cvterm.

is_obsolete

data_type: boolean
default_value: false
is_nullable: 0
size: 1

RELATIONS

dbxref

Type: belongs_to

Related object: Bio::Chado::Schema::General::Dbxref

type

Type: belongs_to

Related object: Bio::Chado::Schema::Cv::Cvterm

organism

Type: belongs_to

Related object: Bio::Chado::Schema::Organism::Organism

stockcollection_stocks

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockcollectionStock

stock_cvterms

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockCvterm

stock_dbxrefs

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockDbxref

stock_genotypes

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockGenotype

stockprops

Type: has_many

Related object: Bio::Chado::Schema::Stock::Stockprop

stock_pubs

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockPub

stock_relationship_subject_ids

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockRelationship

stock_relationship_object_ids

Type: has_many

Related object: Bio::Chado::Schema::Stock::StockRelationship