Crates.io | flowfairy_api |
lib.rs | flowfairy_api |
version | 0.2.2 |
source | src |
created_at | 2023-01-18 22:10:36.735823 |
updated_at | 2023-06-08 23:06:44.66623 |
description | Library for processing flow cytometry data. |
homepage | https://github.com/nsbuitrago/flowfairy-api |
repository | https://github.com/nsbuitrago/flowfairy-api |
max_upload_size | |
id | 762126 |
size | 532,224 |
This crate provides methods for manipulating flow cytometry files. Please refer to the API documentation for more information.
This crate is available on crates.io. To use it, add the following to your Cargo.toml
:
[dependencies]
flowfairy_api = "0.2.2"
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));
}