
InSilicoSpectro::Spectra::PhenyxPeakDescriptor

my $t=XML::Twig->new->parsefile($file);
my @el=$t->get_xpath("ple:ItemOrder");
my @pd;
foreach(@el){
my $pd=InSilicoSpectro::Spectra::PhenyxPeakDescriptor->new();
$pd->readTwigEl($_);
$pd->writeXml();
push @pd, $pd;
}
print "comparing to first node\n";
foreach(1..$#pd){
print "$_ -> ".(($pd[$_]->equalsTo($pd[0]))?"OK":"!=")."\n";
}

List of fields name related to peak Merely contains a list of names (ex ['mass', 'intensity', 'prob'])


Read info from an Xml::Twig node tagged <ple:ItemOrder>



Copyright (C) 2004-2005 Geneva Bioinformatics www.genebio.com
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Alexandre Masselot, www.genebio.com