| 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__ | ||