Finnigan::ScanParameters -- a decoder for ScanParameters, a GenericRecord containing various scan meta-data.
use Finnigan; my $p = Finnigan::ScanParameters->decode(\*INPUT, $generic_header_ref); say $p->charge_state;
This decoder augments the GenericRecord decoder with the charge_state method. Copies of all other elements in this structure can be found in other streams, so there is no need in making accessors for them. The purpose of this stream is to provide pre-formatted human-readable messages describing the scan data; The charge_state element seems to be unique in that it either does not exist anywhere else, or has not been discovered so far.
The entire set can be printed in the following manner:
foreach my $key (@{$header->labels}) { say $key . "\t" . $p->{data}->{$key}->{value}; }
The constructor method. It needs a previously decoded header to work.
Get the charge state of the base ion
Get ion injection time in milliseconds
Get the monoisotopic mass of precursor ion
Get the current ScanSegment number (1 .. )
Get the cunnent ScanEvent number (1 .. )
Finnigan::GenericRecord
Finnigan::GenericDataHeader
uf-params
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.