Skip to content

Commit

Permalink
ExtendedFuncotator bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jun 21, 2023
1 parent 0d5613c commit 7f69944
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ public void write(final VariantContext variant, final FuncotationMap txToFuncota
if (toAdd.size() > 1) {
throw new GATKException("Expected a one set of values per site for annotation: " + vd.sourceField + ". Problem at site: " + variant.toStringWithoutGenotypes());
}
if (!toAdd.get(0).isEmpty()) {

if (!toAdd.isEmpty() && !toAdd.get(0).isEmpty()) {
String val = toAdd.get(0).stream().filter(x -> !x.isEmpty()).collect(Collectors.joining(","));
if (!val.isEmpty()) {
variantContextOutputBuilder.attribute(vd.id, val);
Expand Down

0 comments on commit 7f69944

Please sign in to comment.