/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final File bamFile) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(bamFile); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final SeekableStream seekableStream) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(seekableStream); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final File bamFile) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(bamFile); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final File bamFile) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(bamFile); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final SeekableStream seekableStream) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(seekableStream); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final SeekableStream seekableStream) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(seekableStream); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
/** * Returns the virtual file offset of the first record in a BAM file - i.e. the virtual file * offset after skipping over the text header and the sequence records. */ public static long findVirtualOffsetOfFirstRecordInBam(final File bamFile) { try { return BAMFileReader.findVirtualOffsetOfFirstRecord(bamFile); } catch (final IOException ioe) { throw new RuntimeEOFException(ioe); } }
@Test public static void testFindVirtualOffsetOfFirstRecord() throws IOException { Assert.assertEquals(BAMFileReader.findVirtualOffsetOfFirstRecord(bamFile), 8384); }