12 May 2012 00:17:37 UTC
- Distribution: Finnigan
- Module version: 0.0206
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (0 / 0 / 0)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (472.42KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSELKOVJR Gene Selkov, Jr.and 1 contributors
- Gene Selkov
Finnigan::Peak -- a full-featured decoder for a single (M/z, abundance) pair, an element of the PeakList structure
use Finnigan; my $peak = Finnigan::Peak->decode(\*INPUT); say $peak->mz; say $peak->abundance; say "$peak";
This decoder is useless in normal life. It is a full-featured decoder for the pair of floating-point numbers representing the centroid _M/z_ and intensity of a peak. The data it generates contain the seek addresses, sizes and types of both attributes. These features may be useful in the exploration of the file format and in writing new code, but not in production work.
In performance-sensitive applications, the more lightweight Finnigan::Scan module should be used, which includes Finnigan::Scan::CentroidList and other related submodules. It does not store the seek addresses and object types, greatly reducing the overhead.
There is no equivalent object in Finnigan::Scan::CentroidList; it simply uses a pair of scalars for the data, since the location data and decoding templates are jettisoned, eliminating the need for an object.
The constructor method
Get the M/z value, the first in the pair
Get the abundance value, the second in the pair
Get both attributes concatenated with a tab character. Used in the list method of the containing object, Finnigan::Peaks
Gene Selkov, <firstname.lastname@example.org>
Copyright (C) 2010 by Gene Selkov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.