Go to the documentation of this file.
64 #define GT_HOM_RR 0 // note: the actual value of GT_* matters, used in dosage r2 calculation
73 static inline int bcf_acgt2int(
char c)
75 if ( (
int)c>96 ) c -= 32;
76 if ( c==
'A' )
return 0;
77 if ( c==
'C' )
return 1;
78 if ( c==
'G' )
return 2;
79 if ( c==
'T' )
return 3;
82 #define bcf_int2acgt(i) "ACGT"[i]
90 #define bcf_ij2G(i, j) ((j)*((j)+1)/2+(i))