| Bio::Chado::Schema::Cv::Cvterm |
Bio::Chado::Schema::Cv::Cvterm
A term, class, universal or type within an ontology or controlled vocabulary. This table is also used for relations and properties. cvterms constitute nodes in the graph defined by the collection of cvterms and cvterm_relationships.
Bio::Chado::Schema::Cv::Cvterm
data_type: 'integer' is_auto_increment: 1 is_nullable: 0 sequence: 'cvterm_cvterm_id_seq'
data_type: 'integer' is_foreign_key: 1 is_nullable: 0
The cv or ontology or namespace to which this cvterm belongs.
data_type: 'varchar' is_nullable: 0 size: 1024
A concise human-readable name or label for the cvterm. Uniquely identifies a cvterm within a cv.
data_type: 'text' is_nullable: 1
A human-readable text definition.
data_type: 'integer' is_foreign_key: 1 is_nullable: 0
Primary identifier dbxref - The unique global OBO identifier for this cvterm. Note that a cvterm may have multiple secondary dbxrefs - see also table: cvterm_dbxref.
data_type: 'integer' default_value: 0 is_nullable: 0
Boolean 0=false,1=true; see GO documentation for details of obsoletion. Note that two terms with different primary dbxrefs may exist if one is obsolete.
data_type: 'integer' default_value: 0 is_nullable: 0
Boolean 0=false,1=true relations or relationship types (also known as Typedefs in OBO format, or as properties or slots) form a cv/ontology in themselves. We use this flag to indicate whether this cvterm is an actual term/class/universal or a relation. Relations may be drawn from the OBO Relations ontology, but are not exclusively drawn from there.
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Acquisitionprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::AcquisitionRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Companalysis::Analysisfeatureprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Companalysis::Analysisprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Arraydesign manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Arraydesign manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Arraydesignprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Assayprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Biomaterialprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::BiomaterialRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::BiomaterialTreatment manpage
Type: has_many
Related object: the Bio::Chado::Schema::CellLine::CellLineCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::CellLine::CellLineCvtermprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::CellLine::CellLineprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::CellLine::CellLineRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Contact::Contact manpage
Type: has_many
Related object: the Bio::Chado::Schema::Contact::ContactRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Control manpage
Type: belongs_to
Related object: the Bio::Chado::Schema::Cv::Cv manpage
Type: belongs_to
Related object: the Bio::Chado::Schema::General::Dbxref manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::CvtermDbxref manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermpath manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermpath manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermpath manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::CvtermRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::CvtermRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::CvtermRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermsynonym manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermsynonym manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Dbxrefprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Element manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::ElementRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::ElementresultRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Genetic::EnvironmentCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Expression::ExpressionCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Expression::ExpressionCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Expression::ExpressionCvtermprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Expression::Expressionprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::Feature manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::FeatureCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::FeatureCvtermprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Expression::FeatureExpressionprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Genetic::FeatureGenotype manpage
Type: has_many
Related object: the Bio::Chado::Schema::Map::Featuremap manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::Featureprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::FeaturePubprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::FeatureRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::FeatureRelationshipprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Library::Library manpage
Type: has_many
Related object: the Bio::Chado::Schema::Library::LibraryCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Library::Libraryprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperiment manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperimentprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperimentStock manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperimentStockprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdGeolocationprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdProtocolprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdProtocolReagent manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdReagent manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdReagentprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::NaturalDiversity::NdReagentRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Organism::Organismprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Genetic::Phendesc manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage
Type: has_many
Related object: the Bio::Chado::Schema::Genetic::PhenotypeComparisonCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phenotype::PhenotypeCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Genetic::Phenstatement manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phylogeny::Phylonode manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phylogeny::Phylonodeprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phylogeny::PhylonodeRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Phylogeny::Phylotree manpage
Type: has_many
Related object: the Bio::Chado::Schema::Project::Projectprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Project::ProjectRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Protocol manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Protocolparam manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Protocolparam manpage
Type: has_many
Related object: the Bio::Chado::Schema::Pub::Pub manpage
Type: has_many
Related object: the Bio::Chado::Schema::Pub::Pubprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Pub::PubRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Quantificationprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::QuantificationRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::Stock manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::Stockcollection manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::Stockcollectionprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::StockCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::Stockprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::StockRelationship manpage
Type: has_many
Related object: the Bio::Chado::Schema::Stock::StockRelationshipCvterm manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Studydesignprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Studyfactor manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Studyprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::StudypropFeature manpage
Type: has_many
Related object: the Bio::Chado::Schema::Sequence::Synonym manpage
Type: has_many
Related object: the Bio::Chado::Schema::Mage::Treatment manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermprop manpage
Type: has_many
Related object: the Bio::Chado::Schema::Cv::Cvtermsynonym manpage
Usage: $self->add_synonym($synonym , { type => 'exact' , autocreate => 1} ); Desc: adds the synonym $new_synonym to this cvterm If the synonym $new_synonym already exists, nothing is added. Args: a synonym name and options hashref as: { synonym_type => [e.g. exact, narrow, broad, related], autocreate => 0, (optional) boolean, if passed, automatically create cv, cvterm, and dbxref rows if one cannot be found for the given synonym name. Default false.
cv_name => cv.name to use for the given synonym type.
Defaults to 'synonym_type',
db_name => db.name to use for autocreated dbxrefs,
default 'null',
definitions => optional hashref of:
{ cvterm_name => definition,
}
to load into the cvterm table when autocreating cvterms
}
Ret: a Cvtermsynonym object
Example:
Usage: $self->delete_synonym($synonym) Desc: delete synonym $synonym from cvterm object Ret: nothing Args: $synonym Side Effects: Will delete all cvtermsynonyms with synonym=$synonym. Case insensitive Example:
Usage: $self->get_secondary_dbxrefs()
Desc: find all secondary accessions associated with the cvterm
These are stored in cvterm_dbxref table as dbxref_ids
Ret: a list of accessions (e.g. GO:0000123)
Args: none
Side Effects: none
Example:
Usage: $self->add_secondary_dbxref(accession, 1) Desc: add an alternative id to cvterm. Stores in cvterm_dbxref Ret: a CvtermDbxref object Args: an alternative id (i.e. "GO:0001234"). A second arg will store a is_for_definition=1 (default = 0) Side Effects: stores a new dbxref if accession is not found in dbxref table Example:
Usage: $self->delete_secondary_dbxref($accession) Desc: delete a cvterm_dbxref from the database Ret: nothing Args: full accession (db_name:dbxref_accession e.g. PO:0001234) Side Effects: Example:
Usage: $set->create_cvtermprops({ baz => 2, foo => 'bar' }); Desc : convenience method to create cvterm properties using cvterms from the ontology with the given name Args : hashref of { propname => value, ...}, options hashref as: { autocreate => 0, (optional) boolean, if passed, automatically create cv, cvterm, and dbxref rows if one cannot be found for the given cvtermprop name. Default false.
cv_name => cv.name to use for the given cvtermprops.
Defaults to 'cvterm_property',
db_name => db.name to use for autocreated dbxrefs,
default 'null',
dbxref_accession_prefix => optional, default
'autocreated:',
definitions => optional hashref of:
{ cvterm_name => definition,
}
to load into the cvterm table when autocreating cvterms
rank => force numeric rank. Be careful not to pass ranks that already exist
for the property type. The function will die in such case.
allow_duplicate_values => default false.
If true, allow duplicate instances of the same cvterm
and value in the properties of the cvterm. Duplicate
values will have different ranks.
}
Ret : hashref of { propname => new cvtermprop object }
Usage: $schema->resultset('Cv::Cvterm')->create_with( { name => 'cvterm name', cv => $cv || 'cv name', db => $db || 'db name', dbxref => $dbx || 'accession', });
Desc: convenience method to create a cvterm, linking it to the CV and DB that you name or provide. For any cv, db, or dbxref that you call only by name, does a find_or_create() using that name. Ret : a new Cvterm row Args: hashref of: { name => 'cvterm name', cv => 'cv name' or L<Bio::Chado::Schema::Cv::Cvterm> row, db => 'db name' or L<Bio::Chado::Schema::General::Db> row, dbxref => 'accession' or L<Bio::Chado::Schema::General::Dbxref> row, }
Robert Buels <rbuels@cpan.org>
This software is copyright (c) 2009 by Robert Buels.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Bio::Chado::Schema::Cv::Cvterm |