ionFinder/src/peptide.cpp
std::string PeptideNamespace::FragmentIon::getFormatedLabel() const
{
	std::string str = std::string(1, _b_y) + (isM() ? "" : "[" + std::to_string(_num) + "]");
	
	if(!_mod.empty())
		str += " *\"" + _mod + "\"";
	
	if(charge > 1)
		str += "^\"" + makeChargeLable() + "\"";
	
	if(isNL())
		str += getNLStr();
	
	return str;
}
/**
 Format label with markup for ggplot ms2 spectrum.
 \return formatted ion label
 */
Format label with markup for ggplot ms2 spectrum.
\return formatted ion label
Format label with markup for ggplot ms2 spectrum . \ return formatted ion label
std::string PeptideNamespace::FragmentIon::getFormatedLabel() const
{
	std::string str = std::string(1, _b_y) + (isM() ? "" : "[" + std::to_string(_num) + "]");
	if(!_mod.empty())
		str += " *\"" + _mod + "\"";
	if(charge > 1)
		str += "^\"" + makeChargeLable() + "\"";
	if(isNL())
		str += getNLStr();
	return str;
}
std :: string PeptideNamespace :: FragmentIon :: getFormatedLabel ( ) const { std :: string str = std :: string ( 1 , _b_y ) + ( isM ( ) ? " " : " " + std :: to_string ( _num ) + " " ) ; if ( ! _mod . empty ( ) ) str += " \" " + _mod + " \" " ; if ( charge > 1 ) str += " \" " + makeChargeLable ( ) + " \" " ; if ( isNL ( ) ) str += getNLStr ( ) ; return str ; }
Format label with markup for ggplot ms2 spectrum.
Format label with markup for ggplot ms2 spectrum .