1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! # bedpull
//!
//! CIGAR-aware sequence extraction from BAM and PAF alignment files using BED coordinates.
//!
//! Standard coordinate-lifting tools (liftOver, `samtools faidx`) work purely in reference
//! space: an inserted sequence has no reference coordinate, so it is silently dropped when
//! you lift a BED interval. `bedpull` avoids this by walking the CIGAR string of each
//! alignment, tracking both the reference position and the read position simultaneously.
//! Insertions that fall inside — or immediately adjacent to — a BED region are captured
//! automatically.
//!
//! ## Extraction modes
//!
//! | Mode | Required flags | Description |
//! |------|----------------|-------------|
//! | BAM | `--bam` | Query an indexed BAM for reads overlapping each BED region. |
//! | PAF | `--paf --query_ref` | Build/load a byte-offset index of a PAF file, find overlapping alignments, extract from the query FASTA. |
//!
//! ## Library usage
//!
//! ```no_run
//! use bedpull::{BamConfig, PafIndex, get_read_cuts};
//! ```
//!
//! See the individual module docs for full API details.
pub use ;
pub use ;
pub use ;
pub use ;