line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::FractionCollector; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
75
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
90
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use Finnigan; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
40
|
|
8
|
2
|
|
|
2
|
|
11
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
164
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
10
|
use overload ('""' => 'stringify'); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
122
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my @fields = ( |
14
|
|
|
|
|
|
|
"low mz" => ['d<', 'Float64'], |
15
|
|
|
|
|
|
|
"high mz" => ['d<', 'Float64'], |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub decode { |
19
|
37
|
|
|
37
|
1
|
198
|
return bless Finnigan::Decoder->read($_[1], \@fields), $_[0]; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub low { |
23
|
1
|
|
|
1
|
1
|
10
|
shift->{data}->{"low mz"}->{value}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub high { |
27
|
1
|
|
|
1
|
1
|
10
|
shift->{data}->{"high mz"}->{value}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub stringify { |
31
|
5
|
|
|
5
|
1
|
10
|
my $self = shift; |
32
|
5
|
|
|
|
|
55
|
my $low = sprintf("%.2f", $self->{data}->{"low mz"}->{value}); |
33
|
5
|
|
|
|
|
26
|
my $high = sprintf("%.2f", $self->{data}->{"high mz"}->{value}); |
34
|
5
|
|
|
|
|
32
|
return "[$low-$high]"; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
__END__ |