InSilicoSpectro::Spectra::MSMSSpectra - InSilicoSpectro::Spectra::MSMSSpectra documentation


InSilicoSpectro documentation  | view source Contained in the InSilicoSpectro distribution.

Index


NAME

Top

InSilicoSpectro::Spectra::MSMSSpectra

SYNOPSIS

Top

#set new spectra with source my $sp=InSilicoSpectro::Spectra::MSSpectra->new({source=>$file}); #if the format cannot (or may not) be deduced from the file name, we can set it $sp->format('dta'); $sp->open();

#convert into another format $sp->write('idj', "/tmp/a.idj.xml");

DESCRIPTION

Top

General framework for MS/MS spectra.

This mainly means:

converting file between several kinds of usual formats.

FUNCTIONS

Top

getReadFmtList()

returns the list of data format with available read handlers (known type for input).

getWriteFmtList()

returns the list of data format with available write handlers (known type for ouput).

METHODS

Top

$sp=InSilicoSpectro::Spectra::MSSpectra->new(\%h);

Arguments are through a hash (see $sp->set($name, $val) method.

$sp->read()

$sp->set($name, $val)

Set an instance paramter, name can be

src

the source file (or directory, for .dta)

format

input data format such as 'mgf', 'pkl', 'dta', 'idj.xml'.

sampleInfo

sampling info. $val is either a reference to a hash, or a string such as 'tag1=value1;tag2=value' (ex='intrument=LCQ;instrumentID=xyz'). Setting sampleInfo will erase the former value (consider $sp->addSampleInfoTag($name, $value) instead;

$sp->get($name)

Get an instance parameter.

$sp->size()

Returns the number of compounds

FORMAT NOTEs

Top

Sequest (dta):

header line format is [M+H]+ charge

rem: native dta contains only one ms/ms spectrum. dtas can be concatenated, separated by one blank line

Micromass (pkl)

header line format is m/z intensity charge

EXPORT

Top

$MERGE_MULTIPLE_PREC_CHARGES

if true, spectra with same framgementa data and coherent precursor info but diferent charges will be merged into one multiple-charge spectrum. [default=1];

EXAMPLES

Top

set lib/Phenyx/Spectra/test directory

SEE ALSO

Top

InSilicoSpectro::Spectra::MSSpectra InSilicoSpectro::Spectra::MSMSCmpd, Phenyx::Config::GlobalParam

COPYRIGHT

Top

AUTHORS

Top

Alexandre Masselot, Pierre-Alain Binz, www.genebio.com


InSilicoSpectro documentation  | view source Contained in the InSilicoSpectro distribution.