src/c++/include/variant/RefVar.hh
/**
 * A simple debugging function for printing a RefVar
 */
A simple debugging function for printing a RefVar
A simple debugging function for printing a RefVar
static inline void printRefVar(common::FastaFile const& f, const char* chr, std::vector<variant::RefVar> const& in)
{
    std::cerr << "[";
    for (size_t i = 0; i < in.size(); i++)
    {
        if (i > 0)
        {
            std::cerr << ",";
        }
        std::vector<variant::RefVar> v;
        v.push_back(in[i]);
        std::vector<std::string> tmp;
        variant::toAlleles(f, chr, v, tmp);
        std::cerr << in[i].start << ":" << tmp[0] << "/" << tmp[1];
    }
    std::cerr << "]" << std::endl;
}
static inline void printRefVar ( common :: FastaFile const & f , const char * chr , std :: vector < variant :: RefVar > const & in ) { std :: cerr << " " ; for ( size_t i = 0 ; i < in . size ( ) ; i ++ ) { if ( i > 0 ) { std :: cerr << " " ; } std :: vector < variant :: RefVar > v ; v . push_back ( in [ i ] ) ; std :: vector < std :: string > tmp ; variant :: toAlleles ( f , chr , v , tmp ) ; std :: cerr << in [ i ] . start << " " << tmp [ 0 ] << " " << tmp [ 1 ] ; } std :: cerr << " " << std :: endl ; }
A simple debugging function for printing a RefVar
A simple debugging function for printing a RefVar