ionFinder/src/peptide.cpp
void PeptideNamespace::Peptide::removeLabelIntensityBelow(double min_int, bool require_nl, bool remove)
{
    for(auto it = fragments.begin(); it != fragments.end();)
    {
        if(it->getFoundIntensity() <= min_int)
        {
            if(require_nl && !it->isNL()) {
                ++it;
                continue;
            }

            if(remove) {
                fragments.erase(it);
                continue;
            }
            else {
                it->setFound(false);
            }
        }
        ++it;
    }
}
/**
 * Remove FragmentIon (s) which are below a specified intensity threshold.
 * \param min_int Minimum ion intensity to allow.
 * \param require_nl Should only neutral loss fragment ions be removed?
 */
Remove FragmentIon (s) which are below a specified intensity threshold.
\param min_int Minimum ion intensity to allow.
Remove FragmentIon ( s ) which are below a specified intensity threshold . \ param min_int Minimum ion intensity to allow .
void PeptideNamespace::Peptide::removeLabelIntensityBelow(double min_int, bool require_nl, bool remove)
{
    for(auto it = fragments.begin(); it != fragments.end();)
    {
        if(it->getFoundIntensity() <= min_int)
        {
            if(require_nl && !it->isNL()) {
                ++it;
                continue;
            }
            if(remove) {
                fragments.erase(it);
                continue;
            }
            else {
                it->setFound(false);
            }
        }
        ++it;
    }
}
void PeptideNamespace :: Peptide :: removeLabelIntensityBelow ( double min_int , bool require_nl , bool remove ) { for ( auto it = fragments . begin ( ) ; it != fragments . end ( ) ; ) { if ( it -> getFoundIntensity ( ) <= min_int ) { if ( require_nl && ! it -> isNL ( ) ) { ++ it ; continue ; } if ( remove ) { fragments . erase ( it ) ; continue ; } else { it -> setFound ( false ) ; } } ++ it ; } }
Remove FragmentIon (s) which are below a specified intensity threshold.
Remove FragmentIon ( s ) which are below a specified intensity threshold .