PyoFormats: Simple wrapper for python-bioformats
Project description
PyoFormats
Simple wrapper for python-formats
Example
from pyoformats import read
# start JVM
read.JVM().start()
# displays names and shapes of all available series in file
read.file_info("test.msr")
# get series count of file
n_series = read.series_count("test.msr")
# returns 5d numpy array of image in series
my_image = read.image_5d("test.msr", series=1)
# read only certain z-slices. (Note, also channels and frames can be selected)
my_image = read.image_5d("test.msr", series=1, zslices=[2, 3, 5, 8, 13])
# get physical pixel sizes
xyz_sizes = read.pixel_sizes_xyz("test.msr", series=0)
# get physical pixel units
xyz_sizes = read.pixel_sizes_xyz_units("test.msr", series=0)
# iterate over all series and extract name and pixel data
for s, data in read.image_5d_iterator("test.msr"):
print(s, data.shape)
# at end of script
read.JVM().shutdown()
Installation
Detailed How-To for installing dependencies (Windows/ MacOS)
Before you install the pyoformats Python package, check out detailed instructions for installing dependencies.
from PyPi
pip install pyoformats
pyoformats directly from gitlab
pip install git+https://git.ist.ac.at/csommer/pyoformats.git
or local
git clone https://git.ist.ac.at/csommer/pyoformats.git
cd pyoformats
pip install -e .
Dependencies
- numpy
- javabridge
- python-bioformats
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
pyoformats-1.1.2.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file pyoformats-1.1.2.tar.gz
.
File metadata
- Download URL: pyoformats-1.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3821c26a3fe3752cb2e8fc5b967d1bb48233e4296b389b649e50a2f1e4b5ec |
|
MD5 | 5a101ceea67e8eac97441760b83c55df |
|
BLAKE2b-256 | 31b63f2025ffc4951fa05aaee644834af824de8e863fa5da18f271dcee724448 |
File details
Details for the file pyoformats-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: pyoformats-1.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e72630d6e1971912ddd73748f4ad2fc6e31871e01f6336c3589d6071a33d23 |
|
MD5 | dd6f0b5645d127a80af812f9aeb2b5cb |
|
BLAKE2b-256 | 4fc0b85c90848d8cf3c716f2fba7717afb979042a4cc05e171d9d51abda2e7e3 |