Barcode Count¶
Self-configuring barcode counter. Discovers read structure from a sample of reads, then counts exact barcode matches across the full dataset. Supports single-end and paired-end reads.
barcode_count
¶
Forwarding stub — implementation moved to _draft/.
BarcodeCount
dataclass
¶
Count barcodes in sequencing reads.
Two-phase approach from heuristicount:
- Discover: sample reads to learn structure (offset, orientation, flanks)
- Count: exact-match counting using learned structure
The discover function is injected via __init__ for testability.
Defaults to heuristic_discover.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
library_path
|
str
|
Path to barcode FASTA file. |
required |
discover_fn
|
Callable[..., ReadStructure] | None
|
Discovery callable. Must accept
|
None
|
Examples:
run
¶
Run full discover -> count pipeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reads1
|
str
|
Path to primary reads file. |
required |
reads2
|
str | None
|
Optional path to paired-end reads file. |
None
|
Returns:
| Type | Description |
|---|---|
TableTrack
|
|
Examples: