Crates.io | bustools_core |
lib.rs | bustools_core |
version | 0.14.1 |
created_at | 2025-09-22 19:34:29.433652+00 |
updated_at | 2025-09-22 19:34:29.433652+00 |
description | Interacting with the kallisto/bus format of scRNAseq data |
homepage | https://codeberg.org/redst4r/bustools_rs |
repository | https://codeberg.org/redst4r/bustools_rs |
max_upload_size | |
id | 1850550 |
size | 281,716 |
Rust library to interact with the kallisto/bus format of scRNAseq data (see bustools). At this point, the package is pretty mature, but there might be some minor features missing compared to the original bustools.
There's also a CLI mimicking bustools, see the bustools_cli
crate.
For more examples, see the rust-docs.
use bustools::io::{BusReader};
let bus = BusReader::new("/tmp/some.bus");
for record in bus {
// record.CB, record.UMI ...
}
use bustools::io::BusReader;
use bustools::iterators::CellGroupIterator; //need to bring that trait into scope
let breader = BusReader::new("/path/to/some.bus");
for (cb, vector_of_records) in breader.groupby_cb() {
// Example: the number of records in that cell
let n_molecules: usize = vector_of_records.len();
}