InSilicoSpectro::Spectra::Filter::MSFilterAlgorithm - InSilicoSpectro::Spectra::Filter::MSFilterAlgorithm documentation


InSilicoSpectro documentation  | view source Contained in the InSilicoSpectro distribution.

Index


NAME

Top

InSilicoSpectro::Spectra::Filter::MSFilterAlgorithm

SYNOPSIS

Top

my $file= "a.mgf"; my $format="mgf"; my $sp=InSilicoSpectro::Spectra::MSSpectra->new(source=>$file, format=>$format); $sp->open();

my $sf = new InSilicoSpectro::Spectra::Filter::MSFilter(); $sf->readXml('a.xml'); $sf->filterSpectra($sp);

$sp->write('mgf', "another.mgf");

DESCRIPTION

Top

This class allows for quality assasement and filtering of spectra or peaks using algorithms mainly presented in the following paper:

M. Bern et al. Vol. 20 Suppl. 1 2004, pages i49-i54 Bioinformatics

FUNCTIONS

Top

This function is used to corretctly compare two floating-point values using a certain precision and the comparator (<, >, <=, ..). Makes it slower but it's still faster than using Math::FixedPrecision.

METHODS

Top

my $sf=InSilicoSpectro::Spectra::Filter::MSFilterAlogrithm->new()

create a new object.

$sf->readXml($filename)

opens the provided XML-file containing the information which filter to use and its parameters.

$sf->readTwigEl($el)

reads the TwigEl passed by $el and executes twig_addSpectrumFilter() with this values.

$sf->filterSpectra($Spectra)

apply the XML-file previously loaded on the Spectra (can be MSRun, MS, MSMS, or MSCmpd-Spectra).

$sf->applyAction();

applies the action on the currentSpectra under the threshold conditions.

$sf->computeFilterValue($sp);

only prepared for further classes inheriting from this one.

$sf->checkValidity();

checks if the different values provided by the xml are valid.

$sf->smartPeaks();

puts a score for each peak into filterValue. The score is higher for peaks with high intensities but gets lower if they're in a region with high-intensity peaks and or a lot of peaks. A high weightIntensity-value puts more weight into regions of high peaks. A high weightDensity-value puts more weight into regions of high peak density.

$sf->selectPeakWindow();

divides the whole a moz-adefined number of bands and makes a normalization of the intensities in each of those bands.

$sf->fragment([$val]);

gets the values (moz, intensity) from the fragments of the currentSpectra (has to be an MSCmpd). The results are stored into filterValue. Which values should be extracted can be selected by $val, otherwise the next name in the filterName is used.

$sf->precursor([$val]);

gets the values (moz, intensity) from the precursors of the currentSpectra (has to be an MSMSSpectra). The The results are stored into filterValue. Which values should be extracted can be selected by $val, otherwise the next name in the filterName is used.

$sf->intensity();

calls fragment("intensity"). Allows you just to write intensity as a filter-name instead.

$sf->moz();

calls fragment("moz"). Allows you just to write moz as a filter-name instead.

$sf->normRank();

calculates the rank from the intensity of the fragments from the smallest first and biggest last (1, 3, 3, 4, 5, ..) and divides it by the total number of peaks.

$sf->normRankBern();

makes the normalisation of the int-peaks as described in the paper from M. Bern et al. Because we can make a selection of peaks to be tested before, it doesnt make a lot of sense in this context.

$sf->banishNeighbors();

takes off the neighbouring peaks close to the selected ones (change number to select by selectStrongest). The region where the peaks should be taken off can be adjusted by banishRange

$sf->currentSpectra([$sp]);

set or get a current spectra.

$sf->thresholdValue([$val]);

set or get the threshold value.

$sf->filterValue([$val]);

set or get the filter value.

EXAMPLES

Top

see the MSFilterAlgorithm.t for an example.

SEE ALSO

Top

search.cpan.org

COPYRIGHT

Top

AUTHORS

Top

Roman Mylonas, www.genebio.com


InSilicoSpectro documentation  | view source Contained in the InSilicoSpectro distribution.