Skip to content

Commit 09c8b20

Browse files
committed
docs: give overview of org
1 parent 6a7fbc7 commit 09c8b20

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

src/lib.rs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
#![doc = include_str!("../README.md")]
22
//!
3-
//! # Overview
3+
//! # BINSEQ
44
//!
5-
//! The `binseq` library provides efficient tools for working with binary-encoded
6-
//! nucleotide sequences. It offers:
5+
//! The `binseq` library provides efficient tools for working with the [BINSEQ](https://www.biorxiv.org/content/10.1101/2025.04.08.647863v1) file format family.
76
//!
8-
//! - Compact 2-bit encoding of nucleotide sequences
7+
//! It offers tools to read and write BINSEQ files, providing:
8+
//!
9+
//! - Compact 2-bit encoding and decoding of nucleotide sequences through [`bitnuc`](https://docs.rs/bitnuc/latest/bitnuc/)
910
//! - Memory-mapped file access for efficient reading
10-
//! - Parallel processing capabilities
11-
//! - Configurable policies for handling invalid nucleotides
11+
//! - Parallel processing capabilities for arbitrary tasks through the [`ParallelProcessor`] trait.
12+
//! - Configurable [`Policy`] for handling invalid nucleotides
1213
//! - Support for both single and paired-end sequences
14+
//! - Abstract [`BinseqRecord`] trait for representing records from both `.bq` and `.vbq` files.
15+
//!
16+
//! ## Crate Organization
1317
//!
14-
//! # Core Components
18+
//! This library is split into 3 major parts.
1519
//!
16-
//! - [`BinseqWriter`]: Writes sequences to binary format
17-
//! - [`MmapReader`]: Reads sequences using memory mapping
18-
//! - [`BinseqHeader`]: Defines file format and sequence lengths
19-
//! - [`Policy`]: Configures invalid nucleotide handling
20-
//! - [`ParallelProcessor`]: Enables parallel sequence processing
20+
//! There are the [`bq`] and [`vbq`] modules, which provide tools for reading and writing `BQ` and `VBQ` files respectively.
21+
//! Then there are traits and utilities that are ubiquitous across the library which are available at the top-level of the crate.
2122
//!
2223
//! # Example
2324
//!

0 commit comments

Comments
 (0)