# cram v0.1.0 - API Reference

## Modules

- [CRAM](CRAM.md): Read CRAM 3.0 and 3.1 container structure from Elixir.
- [CRAM.Alignment](CRAM.Alignment.md): One alignment in SAM field order.
- [CRAM.Block](CRAM.Block.md): One CRAM block header and its compressed payload (CRAMv3 §8).
- [CRAM.Container](CRAM.Container.md): A parsed CRAM container header and its block boundaries (CRAMv3 §7).
- [CRAM.Crai](CRAM.Crai.md): A CRAM index (`.crai`) row.
- [CRAM.Cursor](CRAM.Cursor.md): Internal. Buffered reader over a byte source. Not part of the supported API.

- [CRAM.Decode](CRAM.Decode.md): Internal. Turns a handle into alignment batches. Not part of the supported API.

- [CRAM.FileDefinition](CRAM.FileDefinition.md): The 26-byte CRAM file definition (CRAMv3 §6).
- [CRAM.Gzip](CRAM.Gzip.md): Internal. Inflates gzip with a byte cap. Not part of the supported API.

- [CRAM.Handle](CRAM.Handle.md): An open CRAM source.
- [CRAM.Header](CRAM.Header.md): SAM header text stored in a CRAM file, plus the fields this library reads.
- [CRAM.Header.Sequence](CRAM.Header.Sequence.md): One `@SQ` line. `length` is the `LN` integer. `md5` is the `M5` hex string
when present, otherwise `nil`.

- [CRAM.Info](CRAM.Info.md): File-level description that does not include alignment records.
- [CRAM.Itf8](CRAM.Itf8.md): ITF-8 integer codec from CRAM v3 section 2.3.
- [CRAM.Ltf8](CRAM.Ltf8.md): LTF-8 integer codec from CRAM v3 section 2.3.
- [CRAM.Metadata](CRAM.Metadata.md): `CRAM.Info` plus the parsed SAM header.
- [CRAM.Native](CRAM.Native.md): Internal. Loads the noodles-cram NIF. Not part of the supported API.

- [CRAM.Options](CRAM.Options.md): Limits and mode for a CRAM reader.
- [CRAM.Reader](CRAM.Reader.md): Internal. Walks container and block bytes. Not part of the supported API.

- [CRAM.Reference](CRAM.Reference.md): Explicit reference lookup.
- [CRAM.Reference.Cache](CRAM.Reference.Cache.md): Checksum-addressed cache in a directory the caller created.
- [CRAM.Reference.Local](CRAM.Reference.Local.md): Reference sequences from a local FASTA file.
- [CRAM.Reference.MD5](CRAM.Reference.MD5.md): SAM reference checksum.
- [CRAM.Reference.Refget](CRAM.Reference.Refget.md): Optional GA4GH Refget sequence fetch.
- [CRAM.ReferenceProvider](CRAM.ReferenceProvider.md): Behaviour for resolving a reference sequence by name and expected MD5.
- [CRAM.SliceHeader](CRAM.SliceHeader.md): Fields from an uncompressed slice header block (CRAMv3 §8.5).
- [CRAM.Source](CRAM.Source.md): Bounded reader over a local file or an in-memory binary.

- Exceptions
  - [CRAM.Error](CRAM.Error.md): Structured CRAM error.

## Mix Tasks

- [mix cram.info](Mix.Tasks.Cram.Info.md): Print CRAM metadata without decoding alignment records.
- [mix cram.tutorials](Mix.Tasks.Cram.Tutorials.md): Check the nine tutorial drafts.

