line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::Peaks; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
73
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
103
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use Finnigan; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
42
|
|
8
|
2
|
|
|
2
|
|
12
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
821
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub decode { |
12
|
1
|
|
|
1
|
1
|
2297
|
my $self = bless Finnigan::Decoder->read($_[1], ["count" => ['V', 'UInt32']]), $_[0]; |
13
|
1
|
|
|
|
|
24
|
return $self->iterate_object( |
14
|
|
|
|
|
|
|
$_[1], |
15
|
|
|
|
|
|
|
$self->{data}->{count}->{value}, |
16
|
|
|
|
|
|
|
peaks => 'Finnigan::Peak' |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub count { |
21
|
1
|
|
|
1
|
1
|
17
|
shift->{data}->{count}->{value}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub peaks { |
25
|
0
|
|
|
0
|
1
|
0
|
shift->{data}->{peaks}->{value}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub peak { |
29
|
4
|
|
|
4
|
1
|
1240
|
shift->{data}->{peaks}->{value}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub all { |
33
|
0
|
|
|
0
|
1
|
|
my $d; |
34
|
|
|
|
|
|
|
return [ |
35
|
0
|
|
|
|
|
|
map {$d = $_->{data}; [$d->{mz}->{value}, $d->{abundance}->{value}]} |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
@{$_[0]->{data}->{peaks}->{value}} |
37
|
|
|
|
|
|
|
]; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub list { |
41
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
42
|
0
|
0
|
|
|
|
|
if ($self->peaks) { |
43
|
0
|
|
|
|
|
|
foreach my $peak ( @{$self->peaks} ) { |
|
0
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
print "$peak\n"; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
__END__ |