77 template<
class MapType>
85 for (
typename std::vector<MapType>::const_iterator map_it = maps.begin();
86 map_it != maps.end(); ++map_it)
91 map_it->getProteinIdentifications().begin(),
92 map_it->getProteinIdentifications().end());
98 auto newPepID = pepID;
105 newPepID.setMetaValue(
"map_index", map_idx);
106 newIDs.push_back(newPepID);
A container for consensus elements.
Definition: ConsensusMap.h:90
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:93
Base class for all feature grouping algorithms.
Definition: FeatureGroupingAlgorithm.h:51
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:78
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:65
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47