line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
|
|
|
|
$GenOO::Exon::VERSION = '1.5.2'; |
46
|
1
|
|
|
1
|
|
8
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
47
|
1
|
|
|
1
|
|
7043
|
use namespace::autoclean; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
extends 'GenOO::GenomicRegion'; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
has 'part_of' => (is => 'rw', weak_ref => 1); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |