25 #ifndef HTSLIB_VCFUTILS_H
26 #define HTSLIB_VCFUTILS_H
84 #define GT_HOM_RR 0 // note: the actual value of GT_* matters, used in dosage r2 calculation
93 static inline int bcf_acgt2int(
char c)
95 if ( (
int)c>96 ) c -= 32;
96 if ( c==
'A' )
return 0;
97 if ( c==
'C' )
return 1;
98 if ( c==
'G' )
return 2;
99 if ( c==
'T' )
return 3;
102 #define bcf_int2acgt(i) "ACGT"[i]
110 #define bcf_ij2G(i, j) ((j)*((j)+1)/2+(i))
int bcf_trim_alleles(const bcf_hdr_t *header, bcf1_t *line)
Definition: vcfutils.c:159
int bcf_gt_type(bcf_fmt_t *fmt_ptr, int isample, int *ial, int *jal)
Definition: vcfutils.c:108
void bcf_remove_alleles(const bcf_hdr_t *header, bcf1_t *line, int mask)
Definition: vcfutils.c:201
int bcf_calc_ac(const bcf_hdr_t *header, bcf1_t *line, int *ac, int which)
Definition: vcfutils.c:27