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);
87 std::stable_sort(out.
begin(), out.
end(),
90 if (ConsensusFeature::PositionLess()(a, b)) { return true; }
A consensus feature spanning multiple LC-MS/MS experiments.
Definition ConsensusFeature.h:45
A container for consensus elements.
Definition ConsensusMap.h:67
const PeptideIdentificationList & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
iterator begin() noexcept
Definition ExposedVector.h:104
iterator end() noexcept
Definition ExposedVector.h:108
Base class for all feature grouping algorithms.
Definition FeatureGroupingAlgorithm.h:27
void transferSubelements(const std::vector< ConsensusMap > &maps, ConsensusMap &out) const
Transfers subelements (grouped features) from input consensus maps to the result consensus map.
FeatureGroupingAlgorithm & operator=(const FeatureGroupingAlgorithm &)
Assignment operator is not implemented -> private.
FeatureGroupingAlgorithm()
Default constructor.
virtual void group(const std::vector< ConsensusMap > &maps, ConsensusMap &out)
~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 set of candidates (SpectrumMatches) identified for a single precursor spectrum.
Definition PeptideIdentification.h:66
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Compare by quality.
Definition BaseFeature.h:106
Compare by the sets of consensus elements (lexicographically)
Definition ConsensusFeature.h:83
Compare by size(), the number of consensus elements.
Definition ConsensusFeature.h:58
Comparator by position. Lexicographical comparison (first RT then m/z) is done.
Definition Peak2D.h:290