Codota Logo
BAMIndexMetaData.getLastOffset
Code IndexAdd Codota to your IDE (free)

How to use
getLastOffset
method
in
htsjdk.samtools.BAMIndexMetaData

Best Java code snippets using htsjdk.samtools.BAMIndexMetaData.getLastOffset (Showing top 8 results out of 315)

  • Common ways to obtain BAMIndexMetaData
private void myMethod () {
BAMIndexMetaData b =
  • Codota Iconnew BAMIndexMetaData()
  • Codota IconBAMIndexContent bAMIndexContent;bAMIndexContent.getMetaData()
  • Codota IconList chunkList;new BAMIndexMetaData(chunkList)
  • Smart code suggestions by Codota
}
origin: com.github.samtools/htsjdk

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final int reference, final BAMIndexMetaData metaData) {
  final int nChunks = metaData == null ? 0 : 2;
  pw.print("  Ref " + reference + " bin 37450 has n_chunk= " + nChunks);
  if (nChunks == 0) {
    pw.println();
  } else {
    pw.println("     Chunk: " + //  c.toString() +
        " start: " + Long.toString(metaData.getFirstOffset(), 16) +
        " end: " + Long.toString(metaData.getLastOffset(), 16));
    pw.println("     Chunk: " + //  c.toString() +
        " start: " + Long.toString(metaData.getAlignedRecordCount(), 16) +
        " end: " + Long.toString(metaData.getUnalignedRecordCount(), 16));
  }
}
  
origin: samtools/htsjdk

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final int reference, final BAMIndexMetaData metaData) {
  final int nChunks = metaData == null ? 0 : 2;
  pw.print("  Ref " + reference + " bin 37450 has n_chunk= " + nChunks);
  if (nChunks == 0) {
    pw.println();
  } else {
    pw.println("     Chunk: " + //  c.toString() +
        " start: " + Long.toString(metaData.getFirstOffset(), 16) +
        " end: " + Long.toString(metaData.getLastOffset(), 16));
    pw.println("     Chunk: " + //  c.toString() +
        " start: " + Long.toString(metaData.getAlignedRecordCount(), 16) +
        " end: " + Long.toString(metaData.getUnalignedRecordCount(), 16));
  }
}
  
origin: org.seqdoop/htsjdk

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final int reference, final BAMIndexMetaData metaData) {
  final int nChunks = metaData == null ? 0 : 2;
  pw.print("  Ref " + reference + " bin 37450 has n_chunk= " + nChunks);
  if (nChunks == 0) {
    pw.println();
  } else {
    pw.println("     Chunk: " + //  c.toString() +
        " start: " + Long.toString(metaData.getFirstOffset(), 16) +
        " end: " + Long.toString(metaData.getLastOffset(), 16));
    pw.println("     Chunk: " + //  c.toString() +
        " start: " + Long.toString(metaData.getAlignedRecordCount(), 16) +
        " end: " + Long.toString(metaData.getUnalignedRecordCount(), 16));
  }
}
  
origin: com.github.samtools/htsjdk

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final BAMIndexMetaData metaData) {
  codec.writeInt(GenomicIndexUtil.MAX_BINS);
  final int nChunk = 2;
  codec.writeInt(nChunk);
  codec.writeLong(metaData.getFirstOffset());
  codec.writeLong(metaData.getLastOffset());
  codec.writeLong(metaData.getAlignedRecordCount());
  codec.writeLong(metaData.getUnalignedRecordCount());
}
origin: samtools/htsjdk

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final BAMIndexMetaData metaData) {
  codec.writeInt(GenomicIndexUtil.MAX_BINS);
  final int nChunk = 2;
  codec.writeInt(nChunk);
  codec.writeLong(metaData.getFirstOffset());
  codec.writeLong(metaData.getLastOffset());
  codec.writeLong(metaData.getAlignedRecordCount());
  codec.writeLong(metaData.getUnalignedRecordCount());
}
origin: com.google.cloud.genomics/google-genomics-dataflow

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final BAMIndexMetaData metaData) {
  codec.writeInt(GenomicIndexUtil.MAX_BINS);
  final int nChunk = 2;
  codec.writeInt(nChunk);
  codec.writeLong(metaData.getFirstOffset());
  codec.writeLong(metaData.getLastOffset());
  codec.writeLong(metaData.getAlignedRecordCount());
  codec.writeLong(metaData.getUnalignedRecordCount());
}
origin: googlegenomics/dataflow-java

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final BAMIndexMetaData metaData) {
  codec.writeInt(GenomicIndexUtil.MAX_BINS);
  final int nChunk = 2;
  codec.writeInt(nChunk);
  codec.writeLong(metaData.getFirstOffset());
  codec.writeLong(metaData.getLastOffset());
  codec.writeLong(metaData.getAlignedRecordCount());
  codec.writeLong(metaData.getUnalignedRecordCount());
}
origin: org.seqdoop/htsjdk

/**
 * Write the meta data represented by the chunkLists associated with bin MAX_BINS 37450
 *
 * @param metaData information describing numAligned records, numUnAligned, etc
 */
private void writeChunkMetaData(final BAMIndexMetaData metaData) {
  codec.writeInt(GenomicIndexUtil.MAX_BINS);
  final int nChunk = 2;
  codec.writeInt(nChunk);
  codec.writeLong(metaData.getFirstOffset());
  codec.writeLong(metaData.getLastOffset());
  codec.writeLong(metaData.getAlignedRecordCount());
  codec.writeLong(metaData.getUnalignedRecordCount());
}
htsjdk.samtoolsBAMIndexMetaDatagetLastOffset

Popular methods of BAMIndexMetaData

  • getAlignedRecordCount
  • getUnalignedRecordCount
  • getFirstOffset
  • getNoCoordinateRecordCount
  • newReference
    Call for each new reference sequence encountered
  • recordMetaData
  • <init>
    Constructor used when reading an index construct one instance for each index generated
  • getIndexStats
    Prints meta-data statistics from BAM index (.bai) file Statistics include count of aligned and unali
  • incrementNoCoordinateRecordCount
    Call whenever a reference with no coordinate information is encountered in the bam file
  • printIndexStats
    Prints meta-data statistics from BAM index (.bai) file Statistics include count of aligned and unali
  • setNoCoordinateRecordCount
    Set local variable. Normally noCoordinateRecord count accessed from AbstractBAMFileIndex when readin
  • setNoCoordinateRecordCount

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now