Crate flowfairy_api

Source
Expand description

A crate for manpulating flow cytometry data.

NOTE: This library is still under development and is not ready for any kind of production use.

§Installation

This crate is on crates.io and can be used by adding flowfairy_api to the dependencies in your project’s cargo.toml.

[dependencies]
flowfairy_api = "0.2.2"

§Examples

Opening and reading an FCS file:

use flowfairy_api::fcs::{FcsFile, FcsData, FcsError};
use std::io;

fn load_fcs_data() -> Result<FcsData, FcsError>{
    let fcs_file = FcsFile::open("./path/to/file.fcs")?;
    let data = fcs_file.read()?;

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

    Ok(data)
}

Modules§

fcs
Fcs File manipulation operations.