Package org.broadinstitute.gatk.utils.sam

Examples of org.broadinstitute.gatk.utils.sam.ArtificialSingleSampleReadStreamAnalyzer


            while ( downsamplingIter.hasNext() ) {
                SAMRecord read = downsamplingIter.next();
                String sampleName = read.getReadGroup() != null ? read.getReadGroup().getSample() : null;

                ArtificialSingleSampleReadStreamAnalyzer analyzer = perSampleStreamAnalyzers.get(sampleName);
                if ( analyzer != null ) {
                    analyzer.update(read);
                }
                else {
                    throw new ReviewedGATKException("bug: stream analyzer for sample " + sampleName + " not found");
                }
            }

            for ( Map.Entry<String, ArtificialSingleSampleReadStreamAnalyzer> analyzerEntry : perSampleStreamAnalyzers.entrySet() ) {
                ArtificialSingleSampleReadStreamAnalyzer analyzer = analyzerEntry.getValue();
                analyzer.finalizeStats();

                // Validate the downsampled read stream for each sample individually
                analyzer.validate();
            }

            // Allow memory used by this test to be reclaimed:
            mergedReadStream = null;
            perSampleArtificialReadStreams = null;
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.utils.sam.ArtificialSingleSampleReadStreamAnalyzer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.