Skip to main content

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

  1. git clone https://git.ist.ac.at/csommer/pyoformats.git
  2. cd pyoformats
  3. pip install -e .

Dependencies

  • numpy
  • javabridge
  • python-bioformats

Metadata

Release files for pyoformats 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyoformats 1.1.3
File Size Uploaded
pyoformats-1.1.3.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyoformats 1.1.3
File Interpreter ABI Platform
pyoformats-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / pyoformats-1.1.3.tar.gz

Download URL pyoformats-1.1.3.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf7284651a370c344faa59a52d93bfe25328e3912e4a7f2bad0eee5a174d0c73
BLAKE2b-256 checksum
How to use checksums
ed92422d17311d87fb0a6caed5a6550bab42ef6f2edf84398ea9ed6738eefd23
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyoformats-1.1.3-py3-none-any.whl

Download URL pyoformats-1.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbb1aedcd6b475b1a69f3acc0c4f461633152dc5380e13e6ef123823550b00ed
BLAKE2b-256 checksum
How to use checksums
2443623b7e9c628fc910c8756839aa1a2849ee71c9dcb4c796d0fd98788e931b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page