MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / GridFeature

Method GridFeature

src/openms/source/DATASTRUCTURES/GridFeature.cpp:18–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16{
17
18 GridFeature::GridFeature(const BaseFeature& feature, Size map_index,
19 Size feature_index) :
20 feature_(feature),
21 map_index_(map_index),
22 feature_index_(feature_index),
23 annotations_()
24 {
25 const vector<PeptideIdentification>& peptides =
26 feature.getPeptideIdentifications();
27 for (vector<PeptideIdentification>::const_iterator pep_it =
28 peptides.begin(); pep_it != peptides.end(); ++pep_it)
29 {
30 if (pep_it->getHits().empty())
31 {
32 continue; // shouldn't be the case
33 }
34 annotations_.insert(pep_it->getHits()[0].getSequence());
35 }
36 }
37
38 GridFeature::~GridFeature() = default;
39

Callers

nothing calls this directly

Calls 5

getSequenceMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected