Finnigan/SampleInfo.pm

filter: Statementstmt 87.8% 29 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 14 / 18 Podpod 100% 13 / 13 totaltotal 87.5% 56 / 64 CC 1 SCAR 2.0
CC
1
Cov
88%
scan_index_addr
2.0
data_addr
2.0
inst_log_addr
2.0
CRAP 1.2
« Finnigan/AuditTag.pm ↑ Summary Finnigan/SeqRow.pm »
1 package Finnigan::SampleInfo;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings FATAL => qw( all );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 our $VERSION = 0.0206;
6  
7 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Finnigan;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use base 'Finnigan::Decoder';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 1 ▶sub decode {
Subroutine decode: called CC=1 SCAR=0.0
Pod documented
13 1 my ($class, $stream) = @_;
14  
15 1 my $fields = [
16 "unknown long[1]" => ['V', 'UInt32'], # 0
17 "unknown long[2]" => ['V', 'UInt32'], # 2
18 "first scan number" => ['V', 'UInt32'], # 4
19 "last scan number" => ['V', 'UInt32'], # 6
20 "inst log length" => ['V', 'UInt32'], # 8
21 "unknown long[3]" => ['V', 'UInt32'], # 10
22 "unknown long[4]" => ['V', 'UInt32'], # 12
23 "scan index addr" => ['V', 'UInt32'], # 14 * unused in 64-bit versions
24 "data addr" => ['V', 'UInt32'], # 16 *
25 "inst log addr" => ['V', 'UInt32'], # 18 *
26 "error log addr" => ['V', 'UInt32'], # 20 *
27 "unknown long[5]" => ['V', 'UInt32'],
28 "max ion current" => ['d<', 'Float64'],
29 "low mz" => ['d<', 'Float64'],
30 "high mz" => ['d<', 'Float64'],
31 "start time" => ['d<', 'Float64'],
32 "end time" => ['d<', 'Float64'],
33 "unknown area" => ['C56', 'RawBytes'],
34 "tag[1]" => ['U0C88', 'UTF16LE'],
35 "tag[2]" => ['U0C40', 'UTF16LE'],
36 "tag[3]" => ['U0C320', 'UTF16LE'],
37 ];
38  
39 1 my $self = Finnigan::Decoder->read($stream, $fields);
40  
41 1 return bless $self, $class;
42 }
43  
44 1 ▶sub first_scan {
Subroutine first_scan: called CC=1 SCAR=0.0
Pod documented
45 1 shift->{data}->{"first scan number"}->{value};
46 }
47  
48 1 ▶sub last_scan {
Subroutine last_scan: called CC=1 SCAR=0.0
Pod documented
49 1 shift->{data}->{"last scan number"}->{value};
50 }
51  
52 1 ▶sub inst_log_length {
Subroutine inst_log_length: called CC=1 SCAR=0.0
Pod documented
53 1 shift->{data}->{"inst log length"}->{value};
54 }
55  
56 1 ▶sub max_ion_current {
Subroutine max_ion_current: called CC=1 SCAR=0.0
Pod documented
57 1 shift->{data}->{"max ion current"}->{value};
58 }
59  
60 1 ▶sub low_mz {
Subroutine low_mz: called CC=1 SCAR=0.0
Pod documented
61 1 shift->{data}->{"low mz"}->{value};
62 }
63  
64 1 ▶sub high_mz {
Subroutine high_mz: called CC=1 SCAR=0.0
Pod documented
65 1 shift->{data}->{"high mz"}->{value};
66 }
67  
68 1 ▶sub start_time {
Subroutine start_time: called CC=1 SCAR=0.0
Pod documented
69 1 shift->{data}->{"start time"}->{value};
70 }
71  
72 1 ▶sub end_time {
Subroutine end_time: called CC=1 SCAR=0.0
Pod documented
73 1 shift->{data}->{"end time"}->{value};
74 }
75  
76 0 ▶sub scan_index_addr {
Subroutine scan_index_addr: not called CC=1 SCAR=6.9
Pod documented
77 0 croak "direct access to SampleInfo->scan_index_addr breaks version compatbility. Use RunHeader->scan_index_addr instead."
78 }
79  
80 0 ▶sub data_addr {
Subroutine data_addr: not called CC=1 SCAR=6.9
Pod documented
81 0 croak "direct access to SampleInfo->data_addr breaks version compatbility. Use RunHeader->data_addr instead."
82 }
83  
84 0 ▶sub inst_log_addr {
Subroutine inst_log_addr: not called CC=1 SCAR=6.9
Pod documented
85 0 croak "direct access to SampleInfo->inst_log_addr breaks version compatbility. Use RunHeader->inst_log_addr instead."
86 }
87  
88 0 ▶sub error_log_addr {
Subroutine error_log_addr: not called CC=1 SCAR=6.9
Pod documented
89 0 croak "direct access to SampleInfo->error_log_addr breaks version compatbility. Use RunHeader->error_log_addr instead."
90 }
91  
92 2 1;
93 __END__
« Finnigan/AuditTag.pm ↑ Summary Finnigan/SeqRow.pm »