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
Finnigan::Peaks
uf-scan
Gene Selkov, <selkovjr@gmail.com>
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.
To install Finnigan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finnigan
CPAN shell
perl -MCPAN -e shell install Finnigan
For more information on module installation, please visit the detailed CPAN module installation guide.