line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*-CPerl-*- |
2
|
|
|
|
|
|
|
# Last changed Time-stamp: <2014-12-20 00:32:26 mtw> |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Bio::ViennaNGS::Feature; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
1516
|
use 5.12.0; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
32
|
|
7
|
1
|
|
|
1
|
|
4
|
use version; our $VERSION = qv('0.12_07'); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#use namespace::autoclean; |
10
|
1
|
|
|
1
|
|
308
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with 'MooseX::Clone'; |
12
|
|
|
|
|
|
|
use MooseX::InstanceTracking; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
extends 'Bio::ViennaNGS::MinimalFeature'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has 'name' => ( |
17
|
|
|
|
|
|
|
is => 'rw', |
18
|
|
|
|
|
|
|
isa => 'Str', |
19
|
|
|
|
|
|
|
required => '1', |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has 'score' => ( |
23
|
|
|
|
|
|
|
is => 'rw', |
24
|
|
|
|
|
|
|
isa => 'Value', |
25
|
|
|
|
|
|
|
default => '0', |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
has 'extension' => ( |
29
|
|
|
|
|
|
|
is => 'rw', |
30
|
|
|
|
|
|
|
isa => 'Str', |
31
|
|
|
|
|
|
|
default => '', |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub set_Feature{ |
35
|
|
|
|
|
|
|
my ($self,$chromosome,$start,$end,$name,$score,$strand,$extension) = @_; |
36
|
|
|
|
|
|
|
$self->chromosome($chromosome); |
37
|
|
|
|
|
|
|
$self->start($start); |
38
|
|
|
|
|
|
|
$self->end($end); |
39
|
|
|
|
|
|
|
$self->name($name); |
40
|
|
|
|
|
|
|
$self->score($score); |
41
|
|
|
|
|
|
|
$self->strand($strand); |
42
|
|
|
|
|
|
|
$self->extension($extension); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
no Moose; |
46
|
|
|
|
|
|
|
#__PACKAGE__=>meta->make_immutable; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |