Skip to main content

bioio-vsi

A small, JVM-free reader for Olympus/Evident cellSens VSI microscopy images (a .vsi metadata file plus sibling .ets pixel files).

The format has no public specification (the vendor's exists but is not distributed). This reader is reverse engineered from sample files, with the tree layout taken from slideio's BSD-3 VSI driver (src/slideio/drivers/vsi) and checked against those files, and with Bio-Formats and slideio output as test oracles. It reads what it has seen and refuses the rest; docs/format.md records what is known and how each fact was established.

Install

pip install bioio-vsi
pip install "bioio-vsi[codecs]"   # JPEG 2000 tiles (imagecodecs)

# bioio plugin (registers on ``bioio.readers``)
pip install bioio bioio-vsi
pip install "bioio-vsi[codecs]"   # if your files use JPEG 2000

Developers use uv; see AGENTS.md.

Supported and refused

Reads single-image cellSens files: uint8/uint16, raw or JPEG 2000 tiles, optional pyramids, any declared order of time, z, and channel. Also reads main scans and overviews from the legacy VS-ASW FL 2.6 layout (VSI format 3.7, tested with OpenSlide's OS-1), with RGB JPEG 2000 tiles.

Refuses (with a named error): missing pixel file, other multi-image layouts, legacy ETS files without their companion VSI, unsupported compression or pixel type, size mismatches, incomplete tile grids, lambda/phase dimensions, truncated metadata fields, and unknown metadata units.

Why each of these is refused, and how values such as z spacing and channel names are reported, is in docs/design.md.

Usage

Standalone API:

from bioio_vsi import open_vsi, open_ets, describe

img = open_vsi("path/to/file.vsi")
plane = img.read_plane(t=0, c=0, z=0)

orphan = open_ets("path/to/frame_t_0.ets")  # geometry only, no axis names
print(describe("path/to/file.vsi"))

Through bioio:

from bioio import BioImage

image = BioImage("path/to/file.vsi")
stack = image.get_image_dask_data("TCZYX")  # dimension order TCZYX
plane = stack[0, 0, 0].compute()
print(image.physical_pixel_sizes, image.channel_names)

For supported scanner files, the first main scan is the default. In bioio, select a scene by its stack name, for example image.set_scene("stack10001") for the OS-1 main scan. The RGB samples are the trailing axis in TCZYXS. For the standalone API, use open_vsi("OS-1.vsi", stack_id=10001) and read_region(y=500, x=500, height=30, width=30) on the returned image to read a small (Y, X, 3) array.

Z planes are in acquisition order, and in many cellSens stacks z decreases with plane index. bioio reports the z spacing as a positive distance; the signed step and each plane's position are in open_vsi(...).z_step_um and plane_z_positions_um. Channel names are the per-channel names cellSens stores (usually the dye), which can differ from the names Bio-Formats and slideio report.

python -m bioio_vsi describe path/to/file.vsi   # what the reader sees in a file

Reporting a file that fails to open

Open an issue with the output of

python -m bioio_vsi describe --redact path/to/file.vsi

which leaves out paths, file names and image or channel names (also in error lines).

If that is not enough and the acquisition cannot be shared, you can send a structure fixture instead. It keeps the .ets headers, tile table and the layout of the metadata, and removes pixels, text, dates and previews; measured values such as pixel size, positions and times are replaced by synthetic ones:

python -m bioio_vsi anonymize path/to/your.vsi /tmp/fixture-out

Upload the resulting anon.vsi and _anon_/stack*/ .skel files (not your original .vsi tree). Maintainers can turn the fixture back into a viewable file locally with python -m bioio_vsi materialize FIXTURE OUTDIR. See docs/design.md for what is kept and stripped.

Sample files wanted

The reader only knows the files it has seen. Files under a licence that allows redistribution help most, especially older cellSens versions, slide scanners (VS120, VS200), stitched scans and long time series; see the issue tracker.

Metadata

Release files for bioio-vsi 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bioio-vsi 0.2.0
File Size Uploaded Provenance Actions
bioio_vsi-0.2.0.tar.gz 718.6 kB With provenance Details for bioio_vsi-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bioio-vsi 0.2.0
File Interpreter ABI Platform Actions
bioio_vsi-0.2.0-py3-none-any.whl Python 3 none any Details for bioio_vsi-0.2.0-py3-none-any.whl

Total release size: 779.9 kB

Release files / bioio_vsi-0.2.0.tar.gz

Download URL bioio_vsi-0.2.0.tar.gz
Size 718.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ec78e272edfb13750699822e68e653a373c34d6d6068a573df37ee6856a52de6
BLAKE2b-256 checksum
How to use checksums
677b1556f0362c88652673af272b64f9c95dc0f43ceb8d9f6e950150d07a583c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / bioio_vsi-0.2.0-py3-none-any.whl

Download URL bioio_vsi-0.2.0-py3-none-any.whl
Size 61.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0467deee28600b5bb8f861530de48542231df6b7939dd543dd52e5f206e30b31
BLAKE2b-256 checksum
How to use checksums
e9f4a8c5d23bbbac948f86509f472cfcfcab40ba13acda9d84f844ab8c7e0397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for bioio-vsi 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bioio_vsi-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page