Aicsimageio

Latest version: v4.14.0

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

4.6.3

The previous v3 and below `OMEXML.py` continues to catch us. This patch should alleviate some issues created by it's functionality in the current reader by fixing out-of-order metadata information prior to reading.

What's Changed
* bugfix/add-logic-to-ensure-OME-XML-plane-elements-occur-last by Nicholas-Schaub in https://github.com/AllenCellModeling/aicsimageio/pull/385

New Contributors
* Nicholas-Schaub made their first contribution in https://github.com/AllenCellModeling/aicsimageio/pull/385

**Full Changelog**: https://github.com/AllenCellModeling/aicsimageio/compare/v4.6.2...v4.6.3

4.6.2

A very small patch to fix CZI to OME converted metadata for the physical pixel sizes attribute. As such this change only affects usage of the `ome_metadata` property for `CZIReader`.

What's Changed
* admin/update-czi-to-ome-xslt-submodule by JacksonMaxfield in https://github.com/AllenCellModeling/aicsimageio/pull/382

**Full Changelog**: https://github.com/AllenCellModeling/aicsimageio/compare/v4.6.1...v4.6.2

4.6.1

This is a quick patch put in by emay2022 to fix CZI physical pixel sizes. Users of AICSImageIO may notice that their CZI physical pixel sizes have changed after upgrading but we believe them to be accurate now as the original implmentation of parsing the CZI metadata was string based and not float calculation / unit conversion based.

What's Changed
* bugfix/czi-physical-size by emay2022 in https://github.com/AllenCellModeling/aicsimageio/pull/384

Contributors and Reviewers this Release
* emay2022
* ianhi
* toloudis
* JacksonMaxfield

**Full Changelog**: https://github.com/AllenCellModeling/aicsimageio/compare/v4.6.0...v4.6.1

4.6.0

This release wraps up our licensing and dependency management work.

In [v4.3.0](https://github.com/AllenCellModeling/aicsimageio/releases/tag/v4.3.0) we changed the install patterns of `BioformatsReader` and `LifReader` due to their GPL licenses. We have followed the same process to change the install pattern for `CziReader`.

* `CziReader` -- was installable with `pip install aicsimageio[czi]` but must now be installed with `pip install aicsimageio aicspylibczi>=3.0.5`

`aicspylibczi` is a completely separate libraries that carries with it a GPL license, if you use this reader, be sure to see how your code should now be licensed and add this library to your own dependency list because our install option is no longer available.

Changelog

* Fix many issues with reader selection during `AICSImage` object init 367
* Upgrade `nd2` supporting lib dependency version 379
* Remove CZI install pattern 376
* Add more information and documentation to logged error on corrupt file 380

To review all changes made in this release please see our full [CHANGELOG](https://allencellmodeling.github.io/aicsimageio/CHANGELOG.html).

Contributors and Reviewers this Release (alphabetical)
Jackson Maxfield Brown (JacksonMaxfield)
Talley Lambert (tlambert03)
Madison Swain-Bowden (AetherUnbound)
Dan Toloudis (toloudis)

4.5.0

We are happy to announce the release of AICSImageIO 4.5.0!

AICSImageIO is a library for image reading, metadata conversion, and image writing for microscopy formats in pure Python. It aims to be able to read microscopy images into a single unified API regardless of size, format, or location, while additionally writing images and converting metadata to a standard common format.

If you are new to the library, please see our full [documentation](https://allencellmodeling.github.io/aicsimageio/) for always up-to-date usage and a quickstart README.

Highlights

TIFF Glob Reading
This release adds a `TiffGlobReader`! Incredibly useful for all the datasets comprised of image stacks stored as multiple TIFFs. And with it, a specific indexer pattern already stored for MicroManager users.

python
Given files with names like "s001_t002_c03_z04.tif"
reader = TiffGlobReader("path/to/data/*.tif")

We can use this to read single image tiffs generated by MicroManager
Micromanager creates directories for each position so we need to recursively glob
for the images files and pass the list to TiffGlobReader.
Note that all images are named according to "img_channel000_position001_time000000003_z004.tif"
glob_files = glob.glob("path/to/data/**/*.tif", recursive=True)

since the numbers in Micromanager files are not in STCZ order we
need to use a different indexer than default. For convenience
when working MicroManager generated files you can use the provided indexer: TiffGlobReader.MicroManagerIndexer
mm_reader = TiffGlobReader(glob_files, indexer=TiffGlobReader.MicroManagerIndexer)

as an example of making a custom indexer
you can manually create the MicroManagerIndexer like so:
import pandas as pd
from pathlib import Path
import re

def mm_indexer(path_to_img):
inds = re.findall(r”d+”, Path(path_to_img).name)
series = pd.Series(inds, index=["C", "S", "T", "Z"]).astype(int)
return series

mm_reader = TiffGlobReader(glob_files, indexer=mm_indexer)


Thanks to jrussell25 and ianhi for these additions!

YX Chunking for Large Files Read by BioformatsReader

If the image you are trying to read using `BioformatsReader` has YX planes that are incredibly large, you may find the new parameters `dask_tiles` and `tile_size` useful to additionally chunk the YX dimensions by the provided tile size.

python
bf_default = BioformatsReader("my_file.svs")
bf_tiled = BioformatsReader("my_file.svs", dask_tiles=True)
bf_tiled_custom = BioformatsReader("my_file.svs", dask_tiles=True, tile_size=(1024, 1024))

assert bf_default.dask_data.chunksize == (1, 1, 1, 4096, 4096)
assert bf_tiled.dask_data.chunksize == (1, 1, 1, 240, 240)
assert bf_tiled_custom.dask_data.chunksize == (1, 1, 1, 1024, 1024)


Thanks to NHPatterson for this addition!

Other Changes

The `Dimensions` object now has a `__getitem__`.

python
img = AICSImage("my_file.tiff")
img.dims <Dimensions T:50, C:1, Z: 1, Y: 480, X: 480>
img.dims["T", "Y"] = (50, 480)


Contributors and Reviewers this Release (alphabetical)
Jackson Maxfield Brown (JacksonMaxfield)
Ian Hunt-Isaak (ianhi)
Talley Lambert (tlambert03)
Heath Patterson (NHPatterson)
Madison Swain-Bowden (AetherUnbound)
John Russell (jrussell25)
Dan Toloudis (toloudis)

4.4.0

We are happy to announce the release of AICSImageIO 4.4.0!

AICSImageIO is a library for image reading, metadata conversion, and image writing for microscopy formats in pure Python. It aims to be able to read microscopy images into a single unified API regardless of size, format, or location, while additionally writing images and converting metadata to a standard common format.

If you are new to the library, please see our full [documentation](https://allencellmodeling.github.io/aicsimageio/) for always up-to-date usage and a quickstart README.

Highlights

Native Python ND2 and DV Support
This release adds two native Python readers specific to the ND2 and DeltaVision file formats. Additionally, both of these file format readers are licensed under BSD and as such we include them in our normal pip extra install options.

bash
pip install aicsimageio[nd2,dv]


python
nd2_img = AICSImage("my-file.nd2")
dv_img = AICSImage("my-file.dv")


Major thanks to tlambert03 for both of these additions.

Contributors and Reviewers this Release (alphabetical)
Jackson Maxfield Brown (JacksonMaxfield)
Talley Lambert (tlambert03)
Madison Swain-Bowden (AetherUnbound)
Dan Toloudis (toloudis)

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.