bustools

Crates.iobustools
lib.rsbustools
version0.13.1
sourcesrc
created_at2023-06-18 20:33:47.294057
updated_at2024-02-19 00:42:54.507032
descriptionInteracting with the kallisto/bus format of scRNAseq data
homepagehttps://github.com/redst4r/rustbustools
repositoryhttps://github.com/redst4r/rustbustools
max_upload_size
id893626
size214,103
(redst4r)

documentation

README

Rustbustools

Rust library to interact with the kallisto/bus format of scRNAseq data (see bustools). At this point, it's far from complete and correct, but rather a project to learn rust.

There's also a CLI mimicking bustools, see bustools_cli

Examples

For more examples, see the rust-docs.

Iterating a bus file

use bustools::io::{BusReader};
let bus = BusReader::new("/tmp/some.bus");
for record in bus {
    // record.CB, record.UMI ...
}

Iterating a bus file by cell

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();
}

TODO

  • consolidate bus_multi and merger
Commit count: 116

cargo fmt