Bug fix: inbreeding coeff shouldn't be computed in ref-only sites
This commit is contained in:
parent
b57df6cac8
commit
3db38c5a93
|
|
@ -48,7 +48,7 @@ public class InbreedingCoeff extends InfoFieldAnnotation implements StandardAnno
|
||||||
|
|
||||||
private Map<String, Object> calculateIC(final VariantContext vc) {
|
private Map<String, Object> calculateIC(final VariantContext vc) {
|
||||||
final GenotypesContext genotypes = (founderIds == null || founderIds.isEmpty()) ? vc.getGenotypes() : vc.getGenotypes(founderIds);
|
final GenotypesContext genotypes = (founderIds == null || founderIds.isEmpty()) ? vc.getGenotypes() : vc.getGenotypes(founderIds);
|
||||||
if ( genotypes == null || genotypes.size() < MIN_SAMPLES )
|
if ( genotypes == null || genotypes.size() < MIN_SAMPLES || !vc.isVariant())
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
int idxAA = 0, idxAB = 1, idxBB = 2;
|
int idxAA = 0, idxAB = 1, idxBB = 2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue