Skip to main content

Crate openreadout_gel

Crate openreadout_gel 

Source
Expand description

Clean-room readers for gel and blot documentation images.

  • Bio-Rad Image Lab (biorad-scn, .scn): the image files ChemiDoc, Gel Doc and other imagers save through Image Lab (also scans imported into Image Lab): one 16-bit image per scan with its pixel size, imager, application (chemiluminescence, IRDye, colorimetric, stains), exposure, filters, user, dates and the audit log. Notes: docs/formats/biorad-scn.md.
  • Syngene GeneSys (syngene-sgd, .sgd): the compound files G:Box and PXi imagers save through GeneSys: one 8- or 16-bit image per capture (every exposure of a series and the marker image) with the imager, camera, light, filter, application, exposure, time and user. Notes: docs/formats/syngene-sgd.md.

§Example

use openreadout_core::FormatReader;
use openreadout_gel::ImageLabReader;

let format = ImageLabReader.descriptor();
assert_eq!(format.id, openreadout_gel::IMAGE_LAB_FORMAT_ID);

Reading a file:

use std::path::Path;

use openreadout_core::{FormatReader, PlaneIndex};
use openreadout_gel::ImageLabReader;

let mut dataset = ImageLabReader.open(Path::new("blot.scn"))?;
let info = dataset.info()?;
let plane = dataset.read_plane(0, PlaneIndex::default())?; // 16-bit little-endian
println!("{} × {}", info.images[0].size_x, info.images[0].size_y);

§API stability

The supported API is what this page documents: the readers, their format ids and ScnDataset and SgdDataset (returned boxed by open).

Structs§

ImageLabReader
The Bio-Rad Image Lab .scn reader.
ScnDataset
An opened .scn file.
SgdDataset
An opened .sgd file.
SyngeneReader
The Syngene GeneSys .sgd reader.

Constants§

IMAGE_LAB_FORMAT_ID
Format id of Bio-Rad Image Lab .scn files.
SYNGENE_FORMAT_ID
Format id of Syngene GeneSys .sgd files.