czitools-0.3.0


توضیحات

Tools to simplify reading CZI (Carl Zeiss Image) meta and pixel data in Python and other things
ویژگی مقدار
سیستم عامل Unix
نام فایل czitools-0.3.0
نام czitools
نسخه کتابخانه 0.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sebastian Rhode
ایمیل نویسنده sebrhode@gmail.com
آدرس صفحه اصلی https://github.com/sebi06/czitools
آدرس اینترنتی https://pypi.org/project/czitools/
مجوز GNU General Public License v3 (GPLv3)
# czitools [![PyPI](https://img.shields.io/pypi/v/czitools.svg?color=green)](https://pypi.org/project/czitools) [![PyPI - Downloads](https://img.shields.io/pypi/dm/czitools)](https://pypistats.org/packages/czitools) [![License](https://img.shields.io/pypi/l/czitools.svg?color=green)](https://github.com/sebi06/czitools/raw/master/LICENSE) [![Python Version](https://img.shields.io/pypi/pyversions/czitools.svg?color=green)](https://python.org) [![Development Status](https://img.shields.io/pypi/status/czitools.svg)](https://en.wikipedia.org/wiki/Software_release_life_cycle#Alpha) This repository provides a collection of tools to simplify reading CZI (Carl Zeiss Image) pixel and metadata in Python. In addition it also contains other useful utilities to visualize CZI images inside Napari (needs to be installed). It is also available as a [Python Package on PyPi](https://pypi.org/project/czitools/) ## Reading the metadata Please check [use_pylibczirw_metadata_class.py](examples/scripts/use_pylibczirw_metadata_class.py) for some examples. ```python # get the metadata at once as one big class mdata = czimd.CziMetadata(filepath) # get only specific metadata czi_dimensions = czimd.CziDimensions(filepath) print("SizeS: ", czi_dimensions.SizeS) print("SizeT: ", czi_dimensions.SizeT) print("SizeZ: ", czi_dimensions.SizeZ) print("SizeC: ", czi_dimensions.SizeC) print("SizeY: ", czi_dimensions.SizeY) print("SizeX: ", czi_dimensions.SizeX) # try to write XML to file xmlfile = czimd.writexml(filepath) # get info about the channels czi_channels = czimd.CziChannelInfo(filepath) # get the complete metadata from the CZI as one big object czimd_complete = czimd.get_metadata_as_object(filepath) # get an object containing only the dimension information czi_dimensions = czimd.CziDimensions(filepath) # get an object containing only the dimension information czi_scale = czimd.CziScaling(filepath) # get an object containing information about the sample czi_sample = czimd.CziSampleInfo(filepath) # get info about the objective, the microscope and the detectors czi_objectives = czimd.CziObjectives(filepath) czi_detectors = czimd.CziDetector(filepath) czi_microscope = czimd.CziMicroscope(filepath) # get info about the sample carrier czi_sample = czimd.CziSampleInfo(filepath) # get additional metainformation czi_addmd = czimd.CziAddMetaData(filepath) # get the complete data about the bounding boxes czi_bbox = czimd.CziBoundingBox(filepath) ``` ## Reading CZI pixeldata While the [pylibCZIrw](https://pypi.org/project/pylibCZIrw/) is focussing on reading individual planes it is also helpful to read CZI pixel data as a STZCYX(A) stack. Please check [use_pylibczirw_md_read.py](https://github.com/sebi06/czitools/raw/main/demo/scripts/use_pylibczirw_md_read.py) for some examples. ```python # return a array with dimension order STZCYX(A) array6d, mdata, dim_string6d = pylibczirw_tools.read_6darray(filepath, output_order="STZCYX", output_dask=False, remove_adim=True ) # show array inside napari viewer viewer = napari.Viewer() layers = napari_tools.show(viewer, array6d, mdata, dim_string=dim_string6d, blending="additive", contrast='napari_auto', gamma=0.85, add_mdtable=True, name_sliders=True) napari.run() ``` ![5D CZI inside Napari](https://github.com/sebi06/czitools/raw/main/images/czi_napari1.png)


نیازمندی

مقدار نام
- xmltodict
- aicsimageio[all]
- aicspylibczi
- tqdm
- pylibCZIrw
- numpy
- pandas
- seaborn
- plotly
- matplotlib
- scikit-image
- colormap
- zarr
- python-box[all]


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl czitools-0.3.0:

    pip install czitools-0.3.0.whl


نصب پکیج tar.gz czitools-0.3.0:

    pip install czitools-0.3.0.tar.gz