line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::PacketHeader; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
78
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
88
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use Finnigan; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
39
|
|
8
|
2
|
|
|
2
|
|
9
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
813
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub decode { |
12
|
2
|
|
|
2
|
1
|
1195
|
my ($class, $stream) = @_; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
34
|
my $fields = [ |
15
|
|
|
|
|
|
|
"unknown long[1]" => ['V', 'UInt32'], |
16
|
|
|
|
|
|
|
"profile size" => ['V', 'UInt32'], |
17
|
|
|
|
|
|
|
"peak list size" => ['V', 'UInt32'], |
18
|
|
|
|
|
|
|
"layout" => ['V', 'UInt32'], |
19
|
|
|
|
|
|
|
"descriptor list size" => ['V', 'UInt32'], |
20
|
|
|
|
|
|
|
"size of unknown stream" => ['V', 'UInt32'], |
21
|
|
|
|
|
|
|
"size of triplet stream" => ['V', 'UInt32'], |
22
|
|
|
|
|
|
|
"unknown long[2]" => ['V', 'UInt32'], |
23
|
|
|
|
|
|
|
"low mz" => ['f<', 'Float32'], |
24
|
|
|
|
|
|
|
"high mz" => ['f<', 'Float32'], |
25
|
|
|
|
|
|
|
]; |
26
|
|
|
|
|
|
|
|
27
|
2
|
|
|
|
|
14
|
my $self = Finnigan::Decoder->read($stream, $fields); |
28
|
|
|
|
|
|
|
|
29
|
2
|
|
|
|
|
17
|
return bless $self, $class; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub profile_size { |
33
|
2
|
|
|
2
|
1
|
425
|
shift->{data}->{"profile size"}->{value}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub peak_list_size { |
37
|
1
|
|
|
1
|
1
|
7
|
shift->{data}->{"peak list size"}->{value}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub layout { |
41
|
2
|
|
|
2
|
1
|
345
|
shift->{data}->{"layout"}->{value}; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub descriptor_list_size { |
45
|
1
|
|
|
1
|
1
|
5
|
shift->{data}->{"descriptor list size"}->{value}; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub size_of_unknown_stream { |
49
|
1
|
|
|
1
|
1
|
5
|
shift->{data}->{"size of unknown stream"}->{value}; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub size_of_triplet_stream { |
53
|
1
|
|
|
1
|
1
|
7
|
shift->{data}->{"size of triplet stream"}->{value}; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub low_mz { |
57
|
1
|
|
|
1
|
1
|
9
|
shift->{data}->{"low mz"}->{value}; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub high_mz { |
61
|
1
|
|
|
1
|
1
|
337
|
shift->{data}->{"high mz"}->{value}; |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
66
|
|
|
|
|
|
|
__END__ |