flow-gate-xml 0.1.0

Gating-ML 2.0 XML parsing and serialization for flow cytometry gate documents
Documentation
1
2
3
4
5
6
7
8
9
pub const NS_GATING: &str = "http://www.isac-net.org/std/Gating-ML/v2.0/gating";
pub const NS_TRANSFORMS: &str = "http://www.isac-net.org/std/Gating-ML/v2.0/transformations";
pub const NS_DATATYPE: &str = "http://www.isac-net.org/std/Gating-ML/v2.0/datatypes";

pub fn parse_bool_attr(value: Option<&str>, default: bool) -> bool {
    value
        .map(|v| matches!(v.to_ascii_lowercase().as_str(), "true" | "1"))
        .unwrap_or(default)
}