Bugfix for set key in mergeInfoWithMaxAC.

-- Previous version was always setting set=source of info with highest AC.  Should actually have been set to the set annotation value itself.
This commit is contained in:
Mark DePristo 2012-07-08 11:41:07 -04:00
parent 91f0ed8059
commit 66aee613e2
1 changed files with 3 additions and 1 deletions

View File

@ -644,7 +644,9 @@ public class VariantContextUtils {
if ( setKey != null ) {
attributes.put(setKey, setValue);
if( mergeInfoWithMaxAC && vcWithMaxAC != null ) { attributesWithMaxAC.put(setKey, vcWithMaxAC.getSource()); }
if( mergeInfoWithMaxAC && vcWithMaxAC != null ) {
attributesWithMaxAC.put(setKey, setValue);
}
}
}