flowfairy_api

Crates.ioflowfairy_api
lib.rsflowfairy_api
version0.2.2
sourcesrc
created_at2023-01-18 22:10:36.735823
updated_at2023-06-08 23:06:44.66623
descriptionLibrary for processing flow cytometry data.
homepagehttps://github.com/nsbuitrago/flowfairy-api
repositoryhttps://github.com/nsbuitrago/flowfairy-api
max_upload_size
id762126
size532,224
Nicolas Buitrago (nsbuitrago)

documentation

https://docs.rs/flowfairy_api

README

FlowFairy API

This crate provides methods for manipulating flow cytometry files. Please refer to the API documentation for more information.

Installation

This crate is available on crates.io. To use it, add the following to your Cargo.toml:

[dependencies]
flowfairy_api = "0.2.2"

Usage

Reading an fcs file:

use flowfairy_api::fcs::FcsFile;

fn main() {
    let fcs_file = FcsFile::open("./path/to/file.fcs").unwrap();
    let data = fcs_file.read().unwrap();

    // use the metadata field to get the FCS version
    println!("FCS version: {}", data.metadata.version);

    // use the parameters field to get the parameters
    println!("Parameters:");
    data.parameters.keys().for_each(|name| println!("{}", name));
}
Commit count: 25

cargo fmt