51 template<
class MapType>
59 for (
typename std::vector<MapType>::const_iterator map_it = maps.begin();
60 map_it != maps.end(); ++map_it)
65 map_it->getProteinIdentifications().begin(),
66 map_it->getProteinIdentifications().end());
72 auto newPepID = pepID;
79 newPepID.setMetaValue(
"map_index", map_idx);
80 newIDs.push_back(newPepID);
A container for consensus elements.
Definition: ConsensusMap.h:66
void sortByMaps()
Sorts with respect to the sets of maps covered by the consensus features (lexicographically).
void sortBySize()
Sorts with respect to the size (number of elements)
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
void sortByQuality(bool reverse=false)
Sorts the peaks according to ascending quality.
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Base class for all feature grouping algorithms.
Definition: FeatureGroupingAlgorithm.h:25
void transferSubelements(const std::vector< ConsensusMap > &maps, ConsensusMap &out) const
Transfers subelements (grouped features) from input consensus maps to the result consensus map.
FeatureGroupingAlgorithm()
Default constructor.
static void registerChildren()
Register all derived classes in this method.
virtual void group(const std::vector< ConsensusMap > &maps, ConsensusMap &out)
FeatureGroupingAlgorithm & operator=(const FeatureGroupingAlgorithm &)
Assignment operator is not implemented -> private.
~FeatureGroupingAlgorithm() override
Destructor.
void postprocess_(const std::vector< MapType > &maps, ConsensusMap &out)
Definition: FeatureGroupingAlgorithm.h:52
virtual void group(const std::vector< FeatureMap > &maps, ConsensusMap &out)=0
Applies the algorithm. The features in the input maps are grouped and the output is written to the co...
FeatureGroupingAlgorithm(const FeatureGroupingAlgorithm &)
Copy constructor is not implemented -> private.
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:39
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22