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

Method getIdentificationMZ_

src/openms_gui/source/VISUAL/PlotCanvas.cpp:828–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826 }
827
828 double PlotCanvas::getIdentificationMZ_(const Size layer_index, const PeptideIdentification& peptide) const
829 {
830 if (getLayerFlag(layer_index, LayerDataBase::I_PEPTIDEMZ))
831 {
832 const PeptideHit& hit = peptide.getHits().front();
833 Int charge = hit.getCharge();
834 return hit.getSequence().getMZ(charge);
835 }
836 else
837 {
838 return peptide.getMZ();
839 }
840 }
841
842 void LayerStack::addLayer(LayerDataBaseUPtr new_layer)
843 {

Callers 1

paintPeptideIDs_Method · 0.80

Calls 5

getLayerFlagFunction · 0.85
frontMethod · 0.80
getSequenceMethod · 0.80
getChargeMethod · 0.45
getMZMethod · 0.45

Tested by

no test coverage detected