src/data/reference.cpp
/*
 * Filter out all reference sequin regions
 */
Filter out all reference sequin regions
Filter out all reference sequin regions
static void filter(std::shared_ptr<BedData> x, const std::set<SequinID> &ids)
{
    for (const auto &i : ids)
    {
        for (auto &j : *x)
        {
            if (j.second.r2d.count(i))
            {
                j.second.r2d.erase(i);
            }
        }
    }
    for (auto i = x->cbegin(); i != x->cend();)
    {
        if (i->second.r2d.empty())
        {
            i = x->erase(i);
        }
        else
        {
            ++i;
        }
    }
}
static void filter ( std :: shared_ptr < BedData > x , const std :: set < SequinID > & ids ) { for ( const auto & i : ids ) { for ( auto & j : * x ) { if ( j . second . r2d . count ( i ) ) { j . second . r2d . erase ( i ) ; } } } for ( auto i = x -> cbegin ( ) ; i != x -> cend ( ) ; ) { if ( i -> second . r2d . empty ( ) ) { i = x -> erase ( i ) ; } else { ++ i ; } } }
Filter out all reference sequin regions
Filter out all reference sequin regions