File hg18Ref = new File(BaseTest.hg18Reference);
try {
ReferenceDataSource referenceDataSource = new ReferenceDataSource(hg18Ref);
hg18Header = new SAMFileHeader();
hg18Header.setSequenceDictionary(referenceDataSource.getReference().getSequenceDictionary());
ReferenceSequenceFile seq = new CachingIndexedFastaSequenceFile(hg18Ref);
hg18GenomeLocParser = new GenomeLocParser(seq);
hg18ReferenceLocs = Collections.unmodifiableList(GenomeLocSortedSet.createSetFromSequenceDictionary(referenceDataSource.getReference().getSequenceDictionary()).toList()) ;
}
catch(FileNotFoundException ex) {
throw new UserException.CouldNotReadInputFile(hg18Ref,ex);
}
File hg19Ref = new File(BaseTest.hg19Reference);
try {
ReferenceDataSource referenceDataSource = new ReferenceDataSource(hg19Ref);
hg19Header = new SAMFileHeader();
hg19Header.setSequenceDictionary(referenceDataSource.getReference().getSequenceDictionary());
ReferenceSequenceFile seq = new CachingIndexedFastaSequenceFile(hg19Ref);
hg19GenomeLocParser = new GenomeLocParser(seq);
hg19ReferenceLocs = Collections.unmodifiableList(GenomeLocSortedSet.createSetFromSequenceDictionary(referenceDataSource.getReference().getSequenceDictionary()).toList()) ;
hg19exomeIntervals = Collections.unmodifiableList(IntervalUtils.parseIntervalArguments(hg19GenomeLocParser, Arrays.asList(hg19Intervals)));
}