src/c++/include/common/BCFHelpers.hh
/**
 * Check if variant has any symbolic alleles
 */
Check if variant has any symbolic alleles
Check if variant has any symbolic alleles
inline bool hasSymbolicAllele(bcf_hdr_t* hdr, bcf1_t* rec)
{
    bcf_unpack(rec, BCF_UN_SHR);
    for (int i = 1; i < rec->n_allele; i++)
    {
        if (rec->d.allele[i][0] == '<')
        {
            return true;
        }
    }
    return false;
}
inline bool hasSymbolicAllele ( bcf_hdr_t * hdr , bcf1_t * rec ) { bcf_unpack ( rec , BCF_UN_SHR ) ; for ( int i = 1 ; i < rec -> n_allele ; i ++ ) { if ( rec -> d . allele [ i ] [ 0 ] == ' ' ) { return true ; } } return false ; }
Check if variant has any symbolic alleles
Check if variant has any symbolic alleles