| 1 | # POD documentation - main docs before the code | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | GenOO::Exon - Exon object | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | # This object represents an exon of a transcript | ||
| 10 | # It extends the L<GenOO::GenomicRegion> object | ||
| 11 | |||
| 12 | # To initialize | ||
| 13 | GenOO::Exon->new( | ||
| 14 | species => undef, | ||
| 15 | strand => undef, #required | ||
| 16 | chromosome => undef, #required | ||
| 17 | start => undef, #required | ||
| 18 | stop => undef, #required | ||
| 19 | part_of => reference to a transcript object | ||
| 20 | ); | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | The exon class describes an exon of a transcript. | ||
| 25 | It requires a strand (1,-1), a chromosome name, a genomic start and stop position (start is always the | ||
| 26 | smallest coordinate in the genome and NOT the 5p of the exon - i.e. if the exon is in the -1 strand | ||
| 27 | the start coordinate will be the 3p of the exon) | ||
| 28 | See L<GenOO::Region> and for more available methods | ||
| 29 | |||
| 30 | =head1 EXAMPLES | ||
| 31 | |||
| 32 | my $exon = GenOO::Exon->new( | ||
| 33 | strand => 1, #required | ||
| 34 | chromosome => 'chr11', #required | ||
| 35 | start => 8893144, #required | ||
| 36 | stop => 8911139, #required | ||
| 37 | ); | ||
| 38 | my $exon_start = $exon->start; #8893144 | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | # Let the code begin... | ||
| 43 | |||
| 44 | package GenOO::Exon; | ||
| 45 | 1 | $GenOO::Exon::VERSION = '1.5.0'; | |
| 46 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 48 | |||
| 49 | 1 | extends 'GenOO::GenomicRegion'; | |
| 50 | |||
| 51 | 1 | has 'part_of' => (is => 'rw', weak_ref => 1); | |
| 52 | |||
| 53 | |||
| 54 | 1 | __PACKAGE__->meta->make_immutable; | |
| 55 | |||
| 56 | 1 | 1; | |