Examples of SeekableBufferedStream


Examples of htsjdk.samtools.seekablestream.SeekableBufferedStream

    private void testReadsLength(int length) throws IOException {
        final int READ_SIZE=100000; //file is 10^6, so make this smaller to be safe.

        SeekableFileStream fileStream = new SeekableFileStream(InputFile);
        SeekableBufferedStream bufferedStream = new SeekableBufferedStream(fileStream, BUFFERED_STREAM_BUFFER_SIZE);

        for (int i = 0; i < READ_SIZE / length; ++i) {
            Assert.assertEquals(bufferedStream.read(buffer, 0, length), length);
        }

    }
View Full Code Here

Examples of htsjdk.samtools.seekablestream.SeekableBufferedStream


    private void openIndexFile() {
        try {
            fileStream = new SeekableFileStream(mFile);
            bufferedStream = new SeekableBufferedStream(fileStream,BUFFERED_STREAM_BUFFER_SIZE);
            fileLength=bufferedStream.length();
        }
        catch (IOException exc) {
            throw new ReviewedGATKException("Unable to open index file (" + exc.getMessage() +")" + mFile, exc);
        }
View Full Code Here

Examples of net.sf.samtools.util.SeekableBufferedStream

     * @param url         BAM.
     * @param indexFile   Location of index file, or null if indexed access not required.
     * @param eagerDecode eagerDecode if true, decode SAM record entirely when reading it.
     */
    public SAMFileReader(final URL url, final File indexFile, final boolean eagerDecode) {
        init(new SeekableBufferedStream(new SeekableHTTPStream(url)),
                indexFile, eagerDecode, defaultValidationStringency);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.