Package htsjdk.samtools
Class BAMSBIIndexer
- java.lang.Object
-
- htsjdk.samtools.BAMSBIIndexer
-
-
Constructor Summary
Constructors Constructor Description BAMSBIIndexer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createIndex(SeekableStream in, OutputStream out, long granularity)
Perform indexing on the given BAM file, at the granularity level specified.static void
createIndex(Path bamFile, long granularity)
Perform indexing on the given BAM file, at the granularity level specified.
-
-
-
Method Detail
-
createIndex
public static void createIndex(Path bamFile, long granularity) throws IOException
Perform indexing on the given BAM file, at the granularity level specified.- Parameters:
bamFile
- the path to the BAM filegranularity
- write the offset of every n-th alignment to the index- Throws:
IOException
- as per java IO contract
-
createIndex
public static void createIndex(SeekableStream in, OutputStream out, long granularity) throws IOException
Perform indexing on the given BAM file, at the granularity level specified.- Parameters:
in
- a seekable stream for reading the BAM file fromout
- the stream to write the index togranularity
- write the offset of every n-th alignment to the index- Throws:
IOException
- as per java IO contract
-
-