Skip to content

Commit

Permalink
Update logic for VcfToLuceneIndexer and fractionHet to include just s…
Browse files Browse the repository at this point in the history
…amples with the allele
  • Loading branch information
bbimber committed Dec 14, 2023
1 parent d749224 commit dbd365e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ else if (line.getCountType() == VCFHeaderLineCount.INTEGER || line.getCountType(
doc.add(new IntPoint("nCalled", (int)nCalled));
doc.add(new StoredField("nCalled", (int)nCalled));

float fractionHet = (float) nHet / (float) nCalled;
float fractionHet = (float) nHet / (float) (nHet + nHomVar);
doc.add(new FloatPoint("fractionHet", fractionHet));
doc.add(new StoredField("fractionHet", fractionHet));

Expand Down

0 comments on commit dbd365e

Please sign in to comment.