bioio-qptiff
A BioIO reader plugin for PerkinElmer / Akoya / Quanterix QPTIFF images (Vectra, Polaris, PhenoCycler-Fusion).
Reads QPTIFFs with tifffile with parsing and organisation of all QPI XML metadata fields into richly annotated xarray dims, coords and attrs: per-channel biomarker,
fluorophore, filter passbands, exposure, camera settings, etc.
Includes writers to convert qptiffs directly to ome.zarr (OME-NGFF 0.5 spec) and ome.tiff images, with preservation of the original QPTIFF pyramid (if any) and per-channel/axis metadata.
Documentation
Installation
Stable Release: pip install bioio-qptiff
Development Head: pip install git+https://github.com/rtubelleza/bioio-qptiff.git
Quickstart
Install bioio-qptiff alongside bioio:
pip install bioio bioio-qptiff
Below shows how to read a .qptiff file and access the lazy xarray with all aligned
metadata. Every scene the file carries is exposed (FullResolution plus any
Label / Macro / Overview / Thumbnail). By default the first scene, normally
FullResolution, is loaded.
from bioio import BioImage
import bioio_qptiff
img = BioImage("slide.qptiff", reader=bioio_qptiff.Reader)
img.xarray_dask_data
Which gives the array plus every QPI XML field aligned to the channel axis:
<xarray.DataArray (C: 50, Y: 12345, X: 12345)> Size: 1234MB
dask.array<transpose, shape=(50, 12345, 12345), dtype=uint8, chunksize=(1, 1234, 1234)>
Coordinates:
* C (C) <U4 'MARKER1' 'MARKER2' ...
fluorophore (C) <U4 'AF123' 'Cy123' ...
exposure_time_us (C) float64 1+04 2+05 ...
...
Dimensions without coordinates: Y, X
Attributes:
slide_info: {'slide_id': 'slide', ...}
image_info: {'image_type': 'FullResolution', ...}
pyramid_level_count: 5
unprocessed: {}
processed: {'slide': {...}, 'images': [...]}
To get all of the image scenes in the contained qptiff use the custom qptiff reader attribute:
img.reader.xarray_dask_scene_datatree
Each scene becomes a node. Pyramidal scenes hold their levels as children,
single-image scenes hold image directly:
<xarray.DataTree>
Group: /
│ Attributes:
│ slide_info: {'slide_id': 'SLIDE', ...}
├── Group: /FullResolution
│ │ Attributes:
│ │ image_info: {'image_type': 'FullResolution', ...}
│ │ pyramid_level_count: 5
│ ├── Group: /FullResolution/scale0
│ │ Dimensions: (c: 50, y: 12345, x: 12345)
│ │ Coordinates:
│ │ * c (c) <U4 'MARKER1' 'MARKER2'
│ │ fluorophore (c) <U4 'AF1234' 'Cy123'
│ │ ... (all channel coords, as above)
│ ├── Group: /FullResolution/scale1
│ │ Dimensions: (c: 50, y: 6172, x: 6172)
│ ├── Group: /FullResolution/scale2
│ │ Dimensions: (c: 50, y: 3086, x: 3086)
│ ├── Group: /FullResolution/scale3
│ │ Dimensions: (c: 50, y: 1543, x: 1543)
│ └── Group: /FullResolution/scale4
│ Dimensions: (c: 50, y: 771, x: 771)
├── Group: /Thumbnail
│ Dimensions: (c: 3, y: 321, x: 321)
├── Group: /Overview
│ Dimensions: (c: 3, y: 321, x: 321)
└── Group: /Label
Dimensions: (c: 3, y: 321, x: 321)
Or use the inbuilt writers to convert qptiffs directly to ome.zarr and ome.tiffs:
from bioio_qptiff.ome import qptiff_to_ome_zarr, qptiff_to_ome_tiff
# the current scene only
qptiff_to_ome_zarr("slide.qptiff", "slide.ome.zarr", overwrite=True)
qptiff_to_ome_tiff("slide.qptiff", "slide.ome.tiff")
# every scene in the file, or a named subset
qptiff_to_ome_zarr("slide.qptiff", "all.ome.zarr", scenes="all", overwrite=True)
qptiff_to_ome_tiff("slide.qptiff", "all.ome.tiff", scenes=["FullResolution", "Label"])
Both writers keep the source pyramid and the per-channel metadata. Written with more than one scene, OME-TIFF emits consecutive series and OME-Zarr emits the bioformats2raw layout.
all.ome.zarr/
zarr.json ome: {version: "0.5", bioformats2raw.layout: 3}
OME/
zarr.json ome: {version: "0.5", series: ["0", "1", "2", "3"]}
METADATA.ome.xml
0/ FullResolution (scale0 .. scale4)
1/ Thumbnail
2/ Overview
3/ Label
Development
See CONTRIBUTING.md for information related to developing the code.
Metadata
Release files for bioio-qptiff 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bioio_qptiff-0.1.0.tar.gz | 69.1 kB | With provenance | Details for bioio_qptiff-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bioio_qptiff-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bioio_qptiff-0.1.0-py3-none-any.whl |
Total release size: 134.3 kB
Release files / bioio_qptiff-0.1.0.tar.gz
| Download URL | bioio_qptiff-0.1.0.tar.gz |
|---|---|
| Size | 69.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35cd7949bcd5975af9cfe1f503d37f8c01803be3ba94849a6b0515df452448c2
|
|
BLAKE2b-256 checksum How to use checksums |
a026dc3eb2559ef17e2016f0e3975f5875f9523eb95352ea8a9b7eebc8e879ef
|
| 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 Aug 19, 2026.
Transparency logRelease files / bioio_qptiff-0.1.0-py3-none-any.whl
| Download URL | bioio_qptiff-0.1.0-py3-none-any.whl |
|---|---|
| Size | 65.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
348fa71af2c24f0e5688bfed897ed17ac4c7f55aada1ccbb088daf76ddbc13da
|
|
BLAKE2b-256 checksum How to use checksums |
97da95ed66f7d0d4f2583f4d49ec432af92b8711ffdc16774963fe1663d1412a
|
| 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 Aug 19, 2026.
Transparency logSecurity for bioio-qptiff 0.1.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.
Attestation for bioio_qptiff-0.1.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 Aug 19, 2026.
Transparency logA 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.