Skip to main content

Chromatograms

Chromatographic channels (TIC, BPI, UV, analog signals) are described by _CHROMS.INF and stored in _CHROnnnn.DAT. Each channel has an index, a name, and engineering units.

use openwraw::RawReader;

let r = RawReader::open("sample.raw")?;
for ch in r.channels() {
let pts = r.read_chrom(ch.index)?;
println!("{}\t{}\t{} points", ch.name, ch.units, pts.len());
}

Each point is (retention_time_min, value). The encoding is fixed and does not require calibration.

See the format specification for the _CHROMS.INF byte layout and chro-dat for the data file.