BINSEQ is a binary file format family designed for efficient storage and processing of DNA sequences. They make use of two-bit encoding for nucleotides and are optimized for high-performance parallel processing.
BINSEQ has three variants:
- BQ: (
*.bq) files are for fixed-length records without quality scores. - VBQ: (
*.vbq) files are for variable-length records with optional quality scores and headers. - CBQ: (
*.cbq) files are for columnar variable-length records with optional quality scores and headers.
All variants support both single and paired sequences.
Note: For most use cases, the newest variant CBQ is recommended due to its flexibility, storage efficiency, and decoding speed. It supersedes VBQ in terms of performance and storage efficiency, at a small cost in encoding speed. VBQ will still be supported but newer projects should consider using CBQ instead. For information on the structure of CBQ files, see the documentation.
This is a library for reading and writing BINSEQ files, for a command-line interface see bqtools.
To get started please refer to our documentation. For example programs which make use of the library check out our examples directory.
For more information about the BINSEQ file family, please refer to our preprint.