line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::Peak; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
73
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
85
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use Finnigan; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
33
|
|
8
|
2
|
|
|
2
|
|
9
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
224
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
10
|
use overload ('""' => 'stringify'); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
11
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $fields = [ |
13
|
|
|
|
|
|
|
"mz" => ['f<', 'Float32'], |
14
|
|
|
|
|
|
|
"abundance" => ['f<', 'Float32'], |
15
|
|
|
|
|
|
|
]; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub decode { |
18
|
580
|
|
|
580
|
1
|
3395
|
return bless Finnigan::Decoder->read($_[1], $fields), $_[0]; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub mz { |
22
|
2
|
|
|
2
|
1
|
15
|
$_[0]->{data}->{"mz"}->{value}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub abundance { |
26
|
2
|
|
|
2
|
1
|
10
|
$_[0]->{data}->{"abundance"}->{value}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub stringify { |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
|
|
|
|
|
my $mz = $self->{data}->{mz}->{value}; |
32
|
0
|
|
|
|
|
|
my $abundance = $self->{data}->{abundance}->{value}; |
33
|
0
|
|
|
|
|
|
return "$mz\t$abundance"; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |