src/c++/include/common/BCFHelpers.hh
/** check if a variant is a SNP */
check if a variant is a SNP
check if a variant is a SNP
inline bool isSNP(bcf_hdr_t* hdr, bcf1_t* rec)
{
    bcf_unpack(rec, BCF_UN_SHR);
    return (rec->n_allele == 2 && strlen(rec->d.allele[0]) == 1 && strlen(rec->d.allele[1]) == 1);
}
inline bool isSNP ( bcf_hdr_t * hdr , bcf1_t * rec ) { bcf_unpack ( rec , BCF_UN_SHR ) ; return ( rec -> n_allele == 2 && strlen ( rec -> d . allele [ 0 ] ) == 1 && strlen ( rec -> d . allele [ 1 ] ) == 1 ) ; }
check if a variant is a SNP
check if a variant is a SNP