The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Bio::Chado::Schema::Result::Stock::StockDbxref

DESCRIPTION

stock_dbxref links a stock to dbxrefs. This is for secondary identifiers; primary identifiers should use stock.dbxref_id.

NAME

Bio::Chado::Schema::Result::Stock::StockDbxref

ACCESSORS

stock_dbxref_id

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

stock_id

data_type: 'integer'
is_foreign_key: 1
is_nullable: 0

dbxref_id

data_type: 'integer'
is_foreign_key: 1
is_nullable: 0

is_current

data_type: 'boolean'
default_value: true
is_nullable: 0

The is_current boolean indicates whether the linked dbxref is the current -official- dbxref for the linked stock.

RELATIONS

dbxref

Type: belongs_to

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

stock

Type: belongs_to

Related object: Bio::Chado::Schema::Result::Stock::Stock

stock_dbxrefprops

Type: has_many

Related object: Bio::Chado::Schema::Result::Stock::StockDbxrefprop

create_stock_dbxrefprops

Usage: $set->create_stock_dbxrefprops({ baz => 2, foo => 'bar' });
Desc : convenience method to create stock_dbxref 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 stock_dbxrefprop name.  Default false.

          cv_name => cv.name to use for the given stock_dbxrefprops.
                     Defaults to 'stock_dbxref_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 stock_dbxref
              and value in the properties of the stock_dbxref.  Duplicate
              values will have different ranks.
        }
Ret  : hashref of { propname => new stock_dbxrefprop object }

AUTHOR

Robert Buels <rbuels@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 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.