Packages

Read CRAM 3.0 and 3.1 alignment files from Elixir.

Current section

Files

Jump to
cram docs spec-coverage.md
Raw

docs/spec-coverage.md

# Specification coverage

Authoritative text controls when it disagrees with HTSlib or noodles. Status values: `implemented`, `partial`, `delegated`, `unsupported`, `not_applicable`.

| ID | Source | Feature | Status | Test |
| --- | --- | --- | --- | --- |
| INT-ITF8 | CRAMv3 §2.3, printing 07a4382 | ITF-8 signed int32, shortest encoding, truncation error | implemented | `test/cram/itf8_test.exs` |
| INT-LTF8 | CRAMv3 §2.3 | LTF-8 signed int64, prefixes through 0xFF | implemented | `test/cram/ltf8_test.exs` |
| INT-EOF-VEC | CRAMv3 §9 | EOF encodings of -1 (`ff ff ff ff 0f`) and 4542278 (`e0 45 4f 46`) | implemented | `CRAM.Itf8Test` |
| FILE-DEF | CRAMv3 §6 | 26-byte file definition | implemented | `CRAM.InspectorTest` |
| CONT | CRAMv3 §7 | Container header, landmarks, CRC of preceding header bytes | implemented | EOF vector and bad-CRC test |
| BLOCK | CRAMv3 §8 | Block header, content types, CRC, size caps | implemented | `CRAM.InspectorTest` |
| SAM-HDR | CRAMv3 §8.3 | SAM header block, raw or gzip, `@HD`/`@SQ`/`@RG`/`@PG` | implemented | golden fixture, gzip fixture, samtools 1.25 |
| EOF | CRAMv3 §9 | 38-byte EOF container | implemented | spec byte vector |
| CODEC | CRAMv3 §3 and §13; CRAMcodecs `563e8ab` | Data-series codecs and 3.1 external methods | delegated | noodles-cram 0.103.0, `CRAM.DecodeTest` |
| SLICE | CRAMv3 §8.5 | Raw slice header, embedded id, reference MD5 flag | partial | `CRAM.ReferenceTest` |
| CRAI | samtools CRAI convention | Six-column index, 1-based start, unmapped bin | partial | `CRAM.CraiTest`, samtools 1.25 membership |
| REF | CRAMv3 §8.3 M5; SAM MD5 rules | Offline FASTA fetch, checksum cache, opt-in Refget | partial | `CRAM.ReferenceTest` |
| TAGS | SAMtags `510c107` | Auxiliary tags preserved | unsupported | — |
| V21 | CRAMv2.1 `703ef9b` | Legacy container layout | partial | version is reported; containers are not walked |

This table is not a conformance claim. Slice headers are parsed only when the block method is raw. Region membership was compared with samtools 1.25 on one synthetic file.