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.gitcd pyoformatspip 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.3.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyoformats-1.1.3.tar.gz.
File metadata
- Download URL: pyoformats-1.1.3.tar.gz
- Upload date:
- Size: 7.3 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 |
bf7284651a370c344faa59a52d93bfe25328e3912e4a7f2bad0eee5a174d0c73
|
|
| MD5 |
9ab8cd79916848e66e296e20de3fc392
|
|
| BLAKE2b-256 |
ed92422d17311d87fb0a6caed5a6550bab42ef6f2edf84398ea9ed6738eefd23
|
File details
Details for the file pyoformats-1.1.3-py3-none-any.whl.
File metadata
- Download URL: pyoformats-1.1.3-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
fbb1aedcd6b475b1a69f3acc0c4f461633152dc5380e13e6ef123823550b00ed
|
|
| MD5 |
12fdf4da789b81c94011a3a889f75c35
|
|
| BLAKE2b-256 |
2443623b7e9c628fc910c8756839aa1a2849ee71c9dcb4c796d0fd98788e931b
|