Group SAM/BAM I/O
Tags for identifying SAM/BAM format.

Grouped Tags Overview

Grouped Function Overview

Grouped Tags Detail

Bam

Identify the BAM format.

Sam

Identify the SAM format.

Grouped Functions Detail

int readRecord(record, context, stream, tag);

Read a record from a SAM/BAM file.

Parameters

record The BamAlignmentRecord object to read the information into.
header The BamHeader object to read the header information into.
context The BamIOContext object to use.
stream The Stream to read from.
tag The format tag, one of Sam and Bam.

Returns

int A status code, 0 on success, != 0 on failure.

int writeRecord(stream, record, context, tag);

Write a record to a SAM/BAM file.

Parameters

stream The Stream to write to.
record The BamAlignmentRecord object to write out.
header The BamHeader object to write out.
context The BamIOContext object to use.
tag The format tag, one of Sam and Bam.

Returns

int A status code, 0 on success, != 0 on failure.