Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

FeatureFinder Class Reference
[FeatureFinder]

The main feature finder class. More...

#include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/FeatureFinder.h>

Inheritance diagram for FeatureFinder:
ProgressLogger FeatureFinderDefs

List of all members.

Public Member Functions

 FeatureFinder ()
 Default constructor.
virtual ~FeatureFinder ()
 Destructor.
template<class PeakType , class FeatureType >
void run (const String &algorithm_name, MSExperiment< PeakType > &input_map, FeatureMap< FeatureType > &features, const Param &param, const FeatureMap< FeatureType > &seeds)
 Executes the FeatureFinder using the given algorithm.
const FlaggetPeakFlag (const IndexPair &index) const
 Returns a non-mutable reference to a peak flag.
FlaggetPeakFlag (const IndexPair &index)
 Returns mutable reference to a peak flag.
Param getParameters (const String &algorithm_name) const
 Returns the default parameters for the algorithm with name algorithm_name.

Protected Attributes

std::vector< std::vector< Flag > > flags_
 Container for flags attached to input data.

Detailed Description

The main feature finder class.


Constructor & Destructor Documentation

FeatureFinder (  ) 

Default constructor.

virtual ~FeatureFinder (  )  [virtual]

Destructor.


Member Function Documentation

Param getParameters ( const String algorithm_name  )  const

Returns the default parameters for the algorithm with name algorithm_name.

Flag& getPeakFlag ( const IndexPair index  )  [inline]

Returns mutable reference to a peak flag.

void run ( const String algorithm_name,
MSExperiment< PeakType > &  input_map,
FeatureMap< FeatureType > &  features,
const Param param,
const FeatureMap< FeatureType > &  seeds 
)

Executes the FeatureFinder using the given algorithm.

There are several constraints for the input_map. They are tested before the algorithm starts. It must only contain MS 1 level scans and you have to call updateRanges() before passing it to this method. The input map is sorted by RT & m/z if thats not the case. Furthermore we throw an Exception if the data contains negative m/z values, as this will disturb most algorithms.

Parameters:
algorithm_name Name of the feature finding algorithm to use
input_map Input peak map
features Output feature map
param Algorithm parameters
seeds List of seeds to use

Implemented in FeatureFinder_impl.h

Todo:
that happens sometimes using IsotopeWaveletFeatureFinder (Rene, Marc, Andreas, Clemens)

References FeatureMap< FeatureT >::clear(), FeatureFinder::flags_, MSExperiment< PeakT, ChromatogramPeakT >::getChromatograms(), MSExperiment< PeakT, ChromatogramPeakT >::getMSLevels(), MSExperiment< PeakT, ChromatogramPeakT >::getSize(), MSExperiment< PeakT, ChromatogramPeakT >::isSorted(), LOG_WARN, MSExperiment< PeakT, ChromatogramPeakT >::RTBegin(), FeatureFinderAlgorithm< PeakType, FeatureType >::run(), FeatureFinderAlgorithm< PeakType, FeatureType >::setData(), DefaultParamHandler::setParameters(), FeatureFinderAlgorithm< PeakType, FeatureType >::setSeeds(), MSExperiment< PeakT, ChromatogramPeakT >::sortChromatograms(), MSExperiment< PeakT, ChromatogramPeakT >::sortSpectra(), and FeatureFinderDefs::UNUSED.


Member Data Documentation

std::vector<std::vector<Flag> > flags_ [protected]

Container for flags attached to input data.

Referenced by FeatureFinder::run().


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:56 using doxygen 1.7.1