Bio::Chado::Schema::Cv::Cvterm



NAME

Bio::Chado::Schema::Cv::Cvterm


DESCRIPTION

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.


NAME

Bio::Chado::Schema::Cv::Cvterm


ACCESSORS

cvterm_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0
  sequence: 'cvterm_cvterm_id_seq'

cv_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

The cv or ontology or namespace to which this cvterm belongs.

name

  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.

definition

  data_type: 'text'
  is_nullable: 1

A human-readable text definition.

dbxref_id

  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.

is_obsolete

  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.

is_relationshiptype

  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.


RELATIONS

acquisitionprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Acquisitionprop manpage

acquisition_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Mage::AcquisitionRelationship manpage

analysisfeatureprops

Type: has_many

Related object: the Bio::Chado::Schema::Companalysis::Analysisfeatureprop manpage

analysisprops

Type: has_many

Related object: the Bio::Chado::Schema::Companalysis::Analysisprop manpage

arraydesign_platformtypes

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Arraydesign manpage

arraydesign_substratetypes

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Arraydesign manpage

arraydesignprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Arraydesignprop manpage

assayprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Assayprop manpage

biomaterialprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Biomaterialprop manpage

biomaterial_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Mage::BiomaterialRelationship manpage

biomaterial_treatments

Type: has_many

Related object: the Bio::Chado::Schema::Mage::BiomaterialTreatment manpage

cell_line_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::CellLine::CellLineCvterm manpage

cell_line_cvtermprops

Type: has_many

Related object: the Bio::Chado::Schema::CellLine::CellLineCvtermprop manpage

cell_lineprops

Type: has_many

Related object: the Bio::Chado::Schema::CellLine::CellLineprop manpage

cell_line_relationships

Type: has_many

Related object: the Bio::Chado::Schema::CellLine::CellLineRelationship manpage

contacts

Type: has_many

Related object: the Bio::Chado::Schema::Contact::Contact manpage

contact_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Contact::ContactRelationship manpage

controls

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Control manpage

cv

Type: belongs_to

Related object: the Bio::Chado::Schema::Cv::Cv manpage

dbxref

Type: belongs_to

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

cvterm_dbxrefs

Type: has_many

Related object: the Bio::Chado::Schema::Cv::CvtermDbxref manpage

cvtermpath_types

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermpath manpage

cvtermpath_objects

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermpath manpage

cvtermpath_subjects

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermpath manpage

cvtermprop_types

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermprop manpage

cvtermprop_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermprop manpage

cvterm_relationship_types

Type: has_many

Related object: the Bio::Chado::Schema::Cv::CvtermRelationship manpage

cvterm_relationship_objects

Type: has_many

Related object: the Bio::Chado::Schema::Cv::CvtermRelationship manpage

cvterm_relationship_subjects

Type: has_many

Related object: the Bio::Chado::Schema::Cv::CvtermRelationship manpage

cvtermsynonym_types

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermsynonym manpage

cvtermsynonym_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermsynonym manpage

dbxrefprops

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Dbxrefprop manpage

elements

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Element manpage

element_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Mage::ElementRelationship manpage

elementresult_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Mage::ElementresultRelationship manpage

environment_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Genetic::EnvironmentCvterm manpage

expression_cvterm_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Expression::ExpressionCvterm manpage

expression_cvterm_cvterm_types

Type: has_many

Related object: the Bio::Chado::Schema::Expression::ExpressionCvterm manpage

expression_cvtermprops

Type: has_many

Related object: the Bio::Chado::Schema::Expression::ExpressionCvtermprop manpage

expressionprops

Type: has_many

Related object: the Bio::Chado::Schema::Expression::Expressionprop manpage

features

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::Feature manpage

feature_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::FeatureCvterm manpage

feature_cvtermprops

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::FeatureCvtermprop manpage

feature_expressionprops

Type: has_many

Related object: the Bio::Chado::Schema::Expression::FeatureExpressionprop manpage

feature_genotypes

Type: has_many

Related object: the Bio::Chado::Schema::Genetic::FeatureGenotype manpage

featuremaps

Type: has_many

Related object: the Bio::Chado::Schema::Map::Featuremap manpage

featureprops

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::Featureprop manpage

feature_pubprops

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::FeaturePubprop manpage

feature_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::FeatureRelationship manpage

feature_relationshipprops

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::FeatureRelationshipprop manpage

libraries

Type: has_many

Related object: the Bio::Chado::Schema::Library::Library manpage

library_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Library::LibraryCvterm manpage

libraryprops

Type: has_many

Related object: the Bio::Chado::Schema::Library::Libraryprop manpage

nd_experiments

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperiment manpage

nd_experimentprops

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperimentprop manpage

nd_experiment_stocks

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperimentStock manpage

nd_experiment_stockprops

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdExperimentStockprop manpage

nd_geolocationprops

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdGeolocationprop manpage

nd_protocolprops

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdProtocolprop manpage

nd_protocol_reagents

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdProtocolReagent manpage

nd_reagents

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdReagent manpage

nd_reagentprops

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdReagentprop manpage

nd_reagent_relationships

Type: has_many

Related object: the Bio::Chado::Schema::NaturalDiversity::NdReagentRelationship manpage

organismprops

Type: has_many

Related object: the Bio::Chado::Schema::Organism::Organismprop manpage

phendescs

Type: has_many

Related object: the Bio::Chado::Schema::Genetic::Phendesc manpage

phenotype_assays

Type: has_many

Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage

phenotype_attrs

Type: has_many

Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage

phenotype_observables

Type: has_many

Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage

phenotype_cvalues

Type: has_many

Related object: the Bio::Chado::Schema::Phenotype::Phenotype manpage

phenotype_comparison_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Genetic::PhenotypeComparisonCvterm manpage

phenotype_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Phenotype::PhenotypeCvterm manpage

phenstatements

Type: has_many

Related object: the Bio::Chado::Schema::Genetic::Phenstatement manpage

phylonodes

Type: has_many

Related object: the Bio::Chado::Schema::Phylogeny::Phylonode manpage

phylonodeprops

Type: has_many

Related object: the Bio::Chado::Schema::Phylogeny::Phylonodeprop manpage

phylonode_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Phylogeny::PhylonodeRelationship manpage

phylotrees

Type: has_many

Related object: the Bio::Chado::Schema::Phylogeny::Phylotree manpage

projectprops

Type: has_many

Related object: the Bio::Chado::Schema::Project::Projectprop manpage

project_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Project::ProjectRelationship manpage

protocols

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Protocol manpage

protocolparam_unittypes

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Protocolparam manpage

protocolparam_datatypes

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Protocolparam manpage

pubs

Type: has_many

Related object: the Bio::Chado::Schema::Pub::Pub manpage

pubprops

Type: has_many

Related object: the Bio::Chado::Schema::Pub::Pubprop manpage

pub_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Pub::PubRelationship manpage

quantificationprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Quantificationprop manpage

quantification_relationships

Type: has_many

Related object: the Bio::Chado::Schema::Mage::QuantificationRelationship manpage

stocks

Type: has_many

Related object: the Bio::Chado::Schema::Stock::Stock manpage

stockcollections

Type: has_many

Related object: the Bio::Chado::Schema::Stock::Stockcollection manpage

stockcollectionprops

Type: has_many

Related object: the Bio::Chado::Schema::Stock::Stockcollectionprop manpage

stock_cvterms

Type: has_many

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

stockprops

Type: has_many

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

stock_relationships

Type: has_many

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

stock_relationship_cvterms

Type: has_many

Related object: the Bio::Chado::Schema::Stock::StockRelationshipCvterm manpage

studydesignprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Studydesignprop manpage

studyfactors

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Studyfactor manpage

studyprops

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Studyprop manpage

studyprop_features

Type: has_many

Related object: the Bio::Chado::Schema::Mage::StudypropFeature manpage

synonyms

Type: has_many

Related object: the Bio::Chado::Schema::Sequence::Synonym manpage

treatments

Type: has_many

Related object: the Bio::Chado::Schema::Mage::Treatment manpage


ADDITIONAL RELATIONS

cvtermprops

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermprop manpage

cvtermsynonyms

Type: has_many

Related object: the Bio::Chado::Schema::Cv::Cvtermsynonym manpage


ADDITIONAL METHODS

add_synonym

 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:

delete_synonym

 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:

get_secondary_dbxrefs

 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:

add_secondary_dbxref

 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:

delete_secondary_dbxref

 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:

create_cvtermprops

  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 }

create_with

 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,
         }


AUTHOR

Robert Buels <rbuels@cpan.org>


COPYRIGHT AND LICENSE

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