void MapAlignmentTransformer::applyToBaseFeature_(BaseFeature & feature, const TransformationDescription & trafo) { // transform feature position: DoubleReal rt = feature.getRT(); feature.setRT(trafo.apply(rt)); // adapt RT values of annotated peptides: if (!feature.getPeptideIdentifications().empty()) { transformSinglePeptideIdentification(feature.getPeptideIdentifications(), trafo); } }
void MapAlignmentTransformer::applyToBaseFeature_( BaseFeature& feature, const TransformationDescription& trafo, bool store_original_rt) { // transform feature position: double rt = feature.getRT(); if (store_original_rt) storeOriginalRT_(feature, rt); feature.setRT(trafo.apply(rt)); // adapt RT values of annotated peptides: if (!feature.getPeptideIdentifications().empty()) { transformRetentionTimes(feature.getPeptideIdentifications(), trafo, store_original_rt); } }