NVBIO
|
Go to the source code of this file.
Functions | |
cram_record * | cram_get_seq (cram_fd *fd) |
int | cram_get_bam_seq (cram_fd *fd, bam_seq_t **bam) |
cram_block_compression_hdr * | cram_decode_compression_header (cram_fd *fd, cram_block *b) |
cram_block_slice_hdr * | cram_decode_slice_header (cram_fd *fd, cram_block *b) |
int | cram_decode_slice (cram_fd *fd, cram_container *c, cram_slice *s, SAM_hdr *hdr) |
Include cram.h instead.
This is an internal part of the CRAM system and is automatically included when you #include cram.h.
Implements the decoding portion of CRAM I/O. Also see cram_codecs.[ch] for the actual encoding functions themselves.
Definition in file cram_decode.h.
cram_block_compression_hdr* cram_decode_compression_header | ( | cram_fd * | fd, |
cram_block * | b | ||
) |
INTERNAL: Decodes a CRAM block compression header.
Definition at line 125 of file cram_decode.c.
int cram_decode_slice | ( | cram_fd * | fd, |
cram_container * | c, | ||
cram_slice * | s, | ||
SAM_hdr * | hdr | ||
) |
INTERNAL: Decode an entire slice from container blocks. Fills out s->crecs[] array.
Definition at line 1335 of file cram_decode.c.
cram_block_slice_hdr* cram_decode_slice_header | ( | cram_fd * | fd, |
cram_block * | b | ||
) |
INTERNAL: Decodes a CRAM (un)mapped slice header block.
Definition at line 613 of file cram_decode.c.
Read the next cram record and convert it to a bam_seq_t struct.
Definition at line 2126 of file cram_decode.c.
cram_record* cram_get_seq | ( | cram_fd * | fd) |
Read the next cram record and return it as a cram_record.
Note that to decode cram_record the caller will need to look up some data in the current slice, pointed to by fd->ctr->slice. This is valid until the next call to cram_get_seq (which may invalidate it).
Definition at line 2073 of file cram_decode.c.