lib/MS/Reader/MzIdentML/SpectrumIdentificationResult.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/MS/Reader/MzIdentML/SequenceItem.pm ↑ Summary lib/MS/Reader/MzML.pm »
1 package MS::Reader::MzIdentML::SpectrumIdentificationResult;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent qw/MS::Reader::XML::Record::CV/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub _pre_load {
9  
10 my ($self) = @_;
11 $self->{_toplevel} = 'SpectrumIdentificationResult';
12  
13 # Lookup tables to quickly check elements
14 $self->{_make_named_array} = {
15 cvParam => 'accession',
16 userParam => 'name',
17 };
18  
19 $self->{_make_anon_array} = { map {$_ => 1} qw/
20 SpectrumIdentificationItem
21 / };
22  
23 }
24  
25 sub id { return $_[0]->{id} }
26 sub name { return $_[0]->{name} }
27 sub hits { return $_[0]->{SpectrumIdentificationItem} }
28 sub spectrum_id { return $_[0]->{spectrumID} }
29 sub data_ref { return $_[0]->{spectraData_ref} }
30  
31 1;
32  
33 __END__
« lib/MS/Reader/MzIdentML/SequenceItem.pm ↑ Summary lib/MS/Reader/MzML.pm »