| 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 |
nothing calls this directly
no test coverage detected