Skip to main content

python package for registering multimodal whole slide microscopy images

Project description

Documentation Status

Multi-modal or mono-modal whole slide image registration in a graph structure for complex registration tasks using elastix.

Features

  • Graph based approach to defining modalities and arbitrary transformation paths between associated images

  • Use of elastix (through ITKElastix) to perform registration

  • Support for linear and non-linear transformation models

  • Transform associated data (masks, shape data) along the same path as the images.

  • Supports images converted to OME-TIFF using bioformats2raw -> raw2ometiff pipeline

  • All registered images exported as pyramidal OME-TIFF or OME-zarr that can be viewed in software such as Vitessce , vizarr, QuPath, OMERO or any platform that supports these formats.

  • All transforms for complex registration paths are internally composited and only 1 interpolation step is performed, avoiding accumulation of interpolation error from many registrations

  • Shape data (polygons, point sets, etc.) in GeoJSON format (future portable format for QuPath detection/annotation data) can be imported and transformations applied producing a modified GeoJSON

  • Some support for reading native WSI formats: currently reads .czi and .scn but could be expanded to other formats supported by python package tifffile

git======= History =======

0.0.2 (2021)

  • First release on PyPI.

0.2.1 (2021-04-14)

  • add RegImage sub-classes for different file types
    • TiffFileRegImage (.scn, .ndpi,.tiff,.tif) : uses dask + zarr to do memory-efficient computation of necessary data for registration / transformation

    • CziRegImage (.czi) : Carl Zeiss image format, can perform read-time pre-processing like RGB -> greyscale or selection of individual channels to limit memory footprint

    • OmeTiffRegImage (.ome.tiff,ome.tif): uses TiffFile to read images and parses OME metadata to get interleaved RGB information

    • MergeRegImage (meta): used to transform multiple images’ channels to a single OME-TIFF after registration if they output to the same size and data type (i.e. for cyclic IF)

    • NpRegImage (np.ndarray): Supports adding a registration image from a numpy array

    • SitkRegImage (everything else): uses SimpleITK to read images as a last resort. Will read entire image into memory!

  • support masks for registration
    • Masks can be used in elastix to define pixels used in metric calculation

    • add ability to automatically crop images based on associated masks’s bounding box (can be useful if image dimensions differ greatly)

  • use RegTransform class to manage transformations

0.3.0 (2021-09-22)

  • add “ome.tiff-bytile” writer to write transformed images tile-by-tile

  • unify data reading from tiffs to use dask

  • numerous improvements, bug fixes, and additional tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsireg-0.3.2.tar.gz (73.0 kB view details)

Uploaded Source

Built Distribution

wsireg-0.3.2-py2.py3-none-any.whl (64.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wsireg-0.3.2.tar.gz.

File metadata

  • Download URL: wsireg-0.3.2.tar.gz
  • Upload date:
  • Size: 73.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for wsireg-0.3.2.tar.gz
Algorithm Hash digest
SHA256 148565ec0a47487217734f76c9fe67383cd3b1c5ca3b4144e4fab40f6baff4a5
MD5 d4b59dc0e742cf73b9b15b2d37ce0356
BLAKE2b-256 d2c3dc0b4f5f42a4b2731815ee6c814c79dc4588c83e2f0e3294894ad40522cb

See more details on using hashes here.

File details

Details for the file wsireg-0.3.2-py2.py3-none-any.whl.

File metadata

  • Download URL: wsireg-0.3.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 64.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for wsireg-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c28f7ed0186205e07899f90f08c08a54057b67ac955ace4d776fe7970986c028
MD5 8bda354aa67b5154dc78cc29edf328bd
BLAKE2b-256 a87babd8e0df13d45e9fb774f655bc46d607ff94c3ddb96e4eb93f6e1d602d6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page