final File outputVCFAnn = executeTest("testStrandBiasBySample re-annotation of FisherStrand", specAnn).getFirst().get(0);
// confirm that the FisherStrand values are identical for the two pipelines
final VCFCodec codec = new VCFCodec();
final FileInputStream s = new FileInputStream(outputVCF);
final LineIterator lineIterator = codec.makeSourceFromStream(new PositionalBufferedStream(s));
codec.readHeader(lineIterator);
final VCFCodec codecAnn = new VCFCodec();
final FileInputStream sAnn = new FileInputStream(outputVCFAnn);
final LineIterator lineIteratorAnn = codecAnn.makeSourceFromStream(new PositionalBufferedStream(sAnn));
codecAnn.readHeader(lineIteratorAnn);
while( lineIterator.hasNext() && lineIteratorAnn.hasNext() ) {
final String line = lineIterator.next();
Assert.assertFalse(line == null);
final VariantContext vc = codec.decode(line);
final String lineAnn = lineIteratorAnn.next();
Assert.assertFalse(lineAnn == null);
final VariantContext vcAnn = codecAnn.decode(lineAnn);
Assert.assertTrue(vc.hasAttribute("FS"));
Assert.assertTrue(vcAnn.hasAttribute("FS"));
Assert.assertEquals(vc.getAttributeAsDouble("FS", 0.0), vcAnn.getAttributeAsDouble("FS", -1.0));
}
Assert.assertFalse(lineIterator.hasNext());
Assert.assertFalse(lineIteratorAnn.hasNext());
}