Finnigan::SampleInfo -- a decoder for SampleInfo, the primary file index structure
use Finnigan; my $rh = Finnigan::RunHeader->decode(\*INPUT, $version); my $si = $rh->sample_info; # calls Finnigan::SampleInfo->decode say $si->first_scan; say $si->last_scan; say $si->tot_ion_current; my $scan_index_addr = $si->scan_index_addr; . . .
SampleInfo is a static (fixed-size) binary preamble to RunHeader containing data stream lengths and addresses, as well as some unidentified data. All data streams in the file, except for the list of ScanHeader records and TrailerScanEvent stream have their addresses stored in SampleInfo.
The addresses of the ScanHeader and TrailerScanEvent streams are stored in the parent structure, RunHeader.
It appears as though RunHeader is a recently introduced wrapper around the older SampleInfo structure.
The constructor method
Get the first scan number
Get the last scan number
Get the number of instrument log records
Get the pointer to the stream of ScanPrarameters? structures
Get the low end of the M/z range
Get the high end of the M/z range
Get the start time (retention time in seconds)
Get the end time (retention time in seconds)
Deprecated. See RunHeader->scan_index_addr
Deprecated. See RunHeader->data_addr
Deprecated. See RunHeader->inst_log_addr
Deprecated. See RunHeader->error_log_addr
Finnigan::RunHeader
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.