public void run() { streamAnalyzer= new ArtificialSingleSampleReadStreamAnalyzer(stream); streamAnalyzer.analyze(stream); // Check whether the observed properties of the stream match its nominal properties streamAnalyzer.validate(); } }
public void run() { streamAnalyzer = new PositionallyDownsampledArtificialSingleSampleReadStreamAnalyzer(stream, targetCoverage); downsamplingIter = new DownsamplingReadsIterator(stream.getGATKSAMIterator(), new SimplePositionalDownsampler<SAMRecord>(targetCoverage)); streamAnalyzer.analyze(downsamplingIter); // Check whether the observed properties of the downsampled stream are what they should be streamAnalyzer.validate(); // Allow memory used by this test to be reclaimed stream = null; streamAnalyzer = null; downsamplingIter = null; } }