GenOO
view release on metacpan or search on metacpan
lib/GenOO/Data/DB/DBIC/Species/Schema/SampleResultBase/v1.pm view on Meta::CPAN
# POD documentation - main docs before the code
=head1 NAME
GenOO::Data::DB::DBIC::Species::Schema::SampleResultBase::v1 - DBIC Result class for sequenced reads
=head1 SYNOPSIS
# This class is not designed to be directly used in a DBIC schema because a
# table name is not defined. Rather it serves as a base class to be inherited
# by an actual result class to provide a common column structure.
=head1 DESCRIPTION
In High Troughput Sequencing analysis we usually have many db tables with similar
structure and columns. DBIx::Class requires each Result class to specify the table name
explicitly. This means that we would have to explicitly create a Result class for
every db table. For this we created this class (does not specify a table name) which can
be inherited by other Result classes and provide a common table structure.
The class contains the basic common functionality for database tables that contain
sequenced reads. It offers accessor methods for table columns compatible with the
rest of the GenOO framework.
It consumes the GenOO::Region role.
As mentioned above this class should be used through inheritance. The reason for this
is that it does not have a specific database table on which it maps. The table used
within this class is defined as "Unknown" and should be specified by derived classes.
=cut
# Let the code begin...
package GenOO::Data::DB::DBIC::Species::Schema::SampleResultBase::v1;
$GenOO::Data::DB::DBIC::Species::Schema::SampleResultBase::v1::VERSION = '1.5.2';
#######################################################################
####################### Load External modules #####################
#######################################################################
use Modern::Perl;
use Moose;
use namespace::autoclean;
use MooseX::MarkAsMethods autoclean => 1;
#######################################################################
############################ Inheritance ##########################
#######################################################################
extends 'DBIx::Class::Core';
#######################################################################
####################### Interface attributes ######################
#######################################################################
# The interface attributes section provides Moose like accessors for
# the table columns. These methods basically overide those created by
# DBIx::Class. The column types are defined at the end of the class in
# the "Package Methods" section
has 'strand' => (
is => 'rw',
);
has 'rname' => (
is => 'rw',
);
has 'start' => (
is => 'rw',
);
has 'stop' => (
is => 'rw',
);
has 'copy_number' => (
is => 'rw',
);
has 'sequence' => (
is => 'rw',
);
has 'cigar' => (
is => 'rw',
);
has 'mdz' => (
is => 'rw',
);
has 'extra' => (
is => 'rw'
);
#######################################################################
########################## Consumed roles #########################
#######################################################################
with
'GenOO::Region' => {
( run in 1.062 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )