InSilicoSpectro::Spectra::Filter::MSFilterCollection - InSilicoSpectro::Spectra::Filter::MSFilterCollection documentation


InSilicoSpectro documentation  | view source Contained in the InSilicoSpectro distribution.

Index


NAME

Top

InSilicoSpectro::Spectra::Filter::MSFilterCollection

SYNOPSIS

Top

my $file= "a.idj.xml"; my $sr=InSilicoSpectro::Spectra::MSRun->new(); $sr->readIDJ($file);

my $fc = new InSilicoSpectro::Spectra::Filter::MSFilterCollection(); $fc->readXml('a_filter_list.xml'); $fc->filterSpectra($sr);

my $file_out; open ($file_out, ">another.idj.xml"); $sr->write('idj', $file_out); close $file_out;

DESCRIPTION

Top

This class allows you to filter your spectra with a list of filters in a xml-entry. The spectra is succesively filtered one after each other.

METHODS

Top

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

create a new object.

$sf->readXml($filename)

opens the provided XML-file containing the information the filters and its parameters.

$sf->filterSpectra($Spectra, [$filter_nr])

apply all or only a selected XML-filter previously loaded on the Spectra (can be MS, MSMS, MSCmpd-Spectra or MSRun).

$sf->checkValidity();

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

$sf->xmlFilter([$filter_nr]);

returns the filter chosen or a list containing all the filters.

$sf->addXmlFilter($filter_twig_el);

adds a xml-filter-twig-el to the actual filter-list.

EXAMPLES

Top

see the the MSFilterCollection.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.