Package org.broadinstitute.gatk.engine.refdata.tracks

Examples of org.broadinstitute.gatk.engine.refdata.tracks.RMDTrack


            featureReader = new TestFeatureReader(inputFile.getAbsolutePath(), codec);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        SAMSequenceDictionary sequenceDictionary = IndexDictionaryUtils.getSequenceDictionaryFromProperties(index);
        return new RMDTrack(descriptor.getCodecClass(), name, inputFile, featureReader, sequenceDictionary, genomeLocParser, codec);
    }
View Full Code Here


     * @return The newly created resource.
     */
    public LocationAwareSeekableRODIterator createNewResource() {
        if(numIterators() > 0)
            throw new ReviewedGATKException("BUG: Tried to create multiple iterators over streaming ROD interface");
        RMDTrack track = builder.createInstanceOfTrack(fileDescriptor);
        LocationAwareSeekableRODIterator iter = new SeekableRODIterator(track.getHeader(),track.getSequenceDictionary(),referenceSequenceDictionary,genomeLocParser,track.getIterator());
        return (flashbackData) ? new FlashBackIterator(iter) : iter;
    }
View Full Code Here

        RMDTrackBuilder builder = new RMDTrackBuilder(getToolkit().getReferenceDataSource().getReference().getSequenceDictionary(),
                                                      getToolkit().getGenomeLocParser(),
                                                      getToolkit().getArguments().unsafe,
                                                      getToolkit().getArguments().disableAutoIndexCreationAndLockingWhenReadingRods,
                                                      null);
        RMDTrack refseq = builder.createInstanceOfTrack(RefSeqCodec.class,refSeqGeneList);
        return new SeekableRODIterator(refseq.getHeader(),refseq.getSequenceDictionary(),getToolkit().getReferenceDataSource().getReference().getSequenceDictionary(),
                getToolkit().getGenomeLocParser(),refseq.getIterator());
    }
View Full Code Here

        super(referenceSequenceDictionary,genomeLocParser);
        this.fileDescriptor = fileDescriptor;
        this.builder = builder;

        // prepopulate one RMDTrack
        RMDTrack track = builder.createInstanceOfTrack(fileDescriptor);
        this.addNewResource(track);

        // Pull the proper header and sequence dictionary from the prepopulated track.
        this.header = track.getHeader();
        this.sequenceDictionary = track.getSequenceDictionary();
    }
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.engine.refdata.tracks.RMDTrack

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.