Package org.broadinstitute.gatk.utils.sam

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


                int thisSampleNumContigs = MathUtils.randomIntegerInRange(minContigs, maxContigs);
                int thisSampleStacksPerContig = MathUtils.randomIntegerInRange(streamStacksPerContig.minStacksPerContig, streamStacksPerContig.maxStacksPerContig);

                int thisSampleNumUnmappedReads = GenomeAnalysisEngine.getRandomGenerator().nextDouble() < unmappedReadsFraction ? unmappedReadsCount : 0;

                ArtificialSingleSampleReadStream thisSampleStream = new ArtificialSingleSampleReadStream(header,
                                                                                                         readGroupID,
                                                                                                         thisSampleNumContigs,
                                                                                                         thisSampleStacksPerContig,
                                                                                                         streamStackDepth.minReadsPerStack,
                                                                                                         streamStackDepth.maxReadsPerStack,
View Full Code Here


                for ( int minReadsPerStack : Arrays.asList(1, targetCoverage / 2, targetCoverage, targetCoverage - 1, targetCoverage + 1, targetCoverage * 2) ) {
                    for ( int maxReadsPerStack : Arrays.asList(1, targetCoverage / 2, targetCoverage, targetCoverage - 1, targetCoverage + 1, targetCoverage * 2) ) {
                        for ( int numUnmappedReads : Arrays.asList(0, 1, targetCoverage, targetCoverage * 2) ) {
                            // Only interested in sane read stream configurations here
                            if ( minReadsPerStack <= maxReadsPerStack ) {
                                new DownsamplingReadsIteratorTest(new ArtificialSingleSampleReadStream(header,
                                                                                                       readGroupID,
                                                                                                       numContigs,
                                                                                                       stacksPerContig,
                                                                                                       minReadsPerStack,
                                                                                                       maxReadsPerStack,
View Full Code Here

        private void createTestBAM() {
            header = ArtificialSAMUtils.createArtificialSamHeader(numContigs, 1, 100000);
            SAMReadGroupRecord readGroup = new SAMReadGroupRecord("foo");
            readGroup.setSample("testSample");
            header.addReadGroup(readGroup);
            ArtificialSingleSampleReadStream artificialReads = new ArtificialSingleSampleReadStream(header,
                                                                                                    "foo",
                                                                                                    numContigs,
                                                                                                    numStacksPerContig,
                                                                                                    stackSize,
                                                                                                    stackSize,
View Full Code Here

TOP

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

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.