ionFinder/src/peptide.cpp
std::string PeptideNamespace::FragmentIon::getLabel(bool includeMod, std::string chargeSep) const
{
	std::string str = std::string(1, _b_y);
	str += isM() ? "" : std::to_string(_num); //add ion number if not M ion
	str += includeMod ? _mod : ""; //add modification
	
	if(charge > 1)
		str += chargeSep + makeChargeLable();
	if(isNL())
		str += getNLStr();
	return str;
}
/**
 Get ion label.
 \return unformatted ion label
 */
Get ion label.
\return unformatted ion label
Get ion label . \ return unformatted ion label
std::string PeptideNamespace::FragmentIon::getLabel(bool includeMod, std::string chargeSep) const
{
	std::string str = std::string(1, _b_y);
	str += isM() ? "" : std::to_string(_num); 
	str += includeMod ? _mod : ""; 
	if(charge > 1)
		str += chargeSep + makeChargeLable();
	if(isNL())
		str += getNLStr();
	return str;
}
std :: string PeptideNamespace :: FragmentIon :: getLabel ( bool includeMod , std :: string chargeSep ) const { std :: string str = std :: string ( 1 , _b_y ) ; str += isM ( ) ? " " : std :: to_string ( _num ) ; str += includeMod ? _mod : " " ; if ( charge > 1 ) str += chargeSep + makeChargeLable ( ) ; if ( isNL ( ) ) str += getNLStr ( ) ; return str ; }
Get ion label.
Get ion label .
//add ion number if not M ion //add modification