src/c++/include/common/BCFHelpers.hh
/** Check if variant is an indel or complex event */
Check if variant is an indel or complex event
Check if variant is an indel or complex event
inline bool isINDEL(bcf_hdr_t* hdr, bcf1_t* rec)
{
    bcf_unpack(rec, BCF_UN_SHR);
    if (rec->n_allele == 1)
    {
        return (false);
    }
    if (isSNP(hdr, rec))
    {
        return (false);
    }
    if (isMNP(hdr, rec))
    {
        return (false);
    }
    return (true);
}
inline bool isINDEL ( bcf_hdr_t * hdr , bcf1_t * rec ) { bcf_unpack ( rec , BCF_UN_SHR ) ; if ( rec -> n_allele == 1 ) { return ( false ) ; } if ( isSNP ( hdr , rec ) ) { return ( false ) ; } if ( isMNP ( hdr , rec ) ) { return ( false ) ; } return ( true ) ; }
Check if variant is an indel or complex event
Check if variant is an indel or complex event