-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExonerateFeature.pir
45 lines (37 loc) · 1.28 KB
/
ExonerateFeature.pir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Feature from an Exonerate report.
#
- PerlClass PirObject::ExonerateFeature
- InheritsFrom PirObject
- FieldsTable
# Field name Struct Type Comments
#---------------------- --------------- --------------- -----------------------
seqname single string
source single string
feature single string
start single int4
end single int4
score single string
strand single string
frame single string
attributes single string
- EndFieldsTable
- Methods
our $RCS_VERSION='$Id: ExonerateFeature.pir,v 1.2 2008/08/19 20:32:05 riouxp Exp $';
our ($VERSION) = ($RCS_VERSION =~ m#,v ([\w\.]+)#);
sub FillFromLine {
my $self = shift;
my $line = shift;
$line =~ s/\s*$//;
my ($seqname,$source,$feature,$start,$end,$score,$strand,$frame,$attributes)
= split(/\s+/,$line,9);
$self->set_seqname($seqname);
$self->set_source($source);
$self->set_feature($feature);
$self->set_start($start);
$self->set_end($end);
$self->set_score($score);
$self->set_strand($strand);
$self->set_frame($frame);
$self->set_attributes($attributes);
}