Change HashMap to LinkedHashMap for predictable ordering

This commit is contained in:
Ron Levine 2016-06-23 10:48:22 -04:00
parent 679941c1b1
commit c6ef81b611
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ public class SelectVariants extends RodWalker<Integer, Integer> implements TreeR
private Map<String, VCFHeader> vcfRods; private Map<String, VCFHeader> vcfRods;
private final List<Allele> diploidNoCallAlleles = GATKVariantContextUtils.noCallAlleles(2); private final List<Allele> diploidNoCallAlleles = GATKVariantContextUtils.noCallAlleles(2);
private final Map<Integer, Integer> ploidyToNumberOfAlleles = new HashMap<Integer, Integer>(); private final Map<Integer, Integer> ploidyToNumberOfAlleles = new LinkedHashMap<Integer, Integer>();
/** /**
* Set up the VCF writer, the sample expressions and regexs, and the JEXL matcher * Set up the VCF writer, the sample expressions and regexs, and the JEXL matcher