Package org.broadinstitute.gatk.engine.iterators

Examples of org.broadinstitute.gatk.engine.iterators.GATKSAMRecordIterator


    private final LocusIteratorByState libs;

    public WindowMaker(Shard shard, GenomeLocParser genomeLocParser, GATKSAMIterator iterator, List<GenomeLoc> intervals, Collection<String> sampleNames) {
        this.sourceInfo = shard.getReadProperties();
        this.readIterator = new GATKSAMRecordIterator(iterator);

        this.libs = new LocusIteratorByState(readIterator,sourceInfo,genomeLocParser,sampleNames);
        this.sourceIterator = new PeekableIterator<AlignmentContext>(libs);

        this.intervalIterator = intervals.size()>0 ? new PeekableIterator<GenomeLoc>(intervals.iterator()) : null;
View Full Code Here


        else {
            final GenomeLoc loc = genomeLocParser.parseGenomeLoc(location);
            rawIterator = reader.query(loc.getContig(), loc.getStart(), loc.getStop(), false);
        }

        final GATKSAMRecordIterator iterator = new GATKSAMRecordIterator(rawIterator);

        final Set<String> samples = new HashSet<String>();
        for ( final SAMReadGroupRecord rg : reader.getFileHeader().getReadGroups() )
            samples.add(rg.getSample());
View Full Code Here

     *
     * @param reader a non-null reader
     * @param it an iterator from reader that has the reads we want to use to create ReadBackPileups
     */
    public LocusIteratorByState(final SAMFileReader reader, final CloseableIterator<SAMRecord> it) {
        this(new GATKSAMRecordIterator(it),
                new LIBSDownsamplingInfo(false, 0),
                true,
                new GenomeLocParser(reader.getFileHeader().getSequenceDictionary()),
                SampleUtils.getSAMFileSamples(reader.getFileHeader()),
                false);
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.engine.iterators.GATKSAMRecordIterator

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.