Skip to main content

Pyramid Generator For OMETiff

Project description

Argolid

Build Requirements

Argolid uses Tensorstore for reading and writing pixel data. So Tensorstore build requirements are needed to be satisfied. For Linux, these are the requirements:

  • GCC 10 or later
  • Clang 8 or later
  • Python 3.8 or later
  • CMake 3.24 or later
  • Perl, for building libaom from source (default). Must be in PATH. Not required if -DTENSORSTORE_USE_SYSTEM_LIBAOM=ON is specified.
  • NASM, for building libjpeg-turbo, libaom, and dav1d from source (default). Must be in PATH.Not required if -DTENSORSTORE_USE_SYSTEM_{JPEG,LIBAOM,DAV1D}=ON is specified.
  • GNU Patch or equivalent. Must be in PATH.

Building and Installing

Here is an example of building and installing Argolid in a Python virtual environment.

python -m virtualenv venv
source venv/bin/activate
pip install cmake
git clone --recurse-submodules https://github.com/sameeul/argolid.git 
cd argolid
python setup.py install

Usage

Argolid can generate Pyramids from a single image or an image collection with a stitching vector provided. It can generate three different kind of pyramids:

  • Neuroglancer compatible Zarr (NG_Zarr)
  • Precomputed Neuroglancer (PCNG)
  • Viv compatible Zarr (Viv)

Currently, three downsampling methods (mean, mode_max and mode_min) are supported. A dictionary with channel id (integer) as key and downsampling method as value can be passed to specify downsampling method for specific channel. If a channel does not exist as a key in the dictionary, mean will be used as the default downsampling method

Here is an example of generating a pyramid from a single image.

from argolid import PyramidGenerartor
input_file = "/home/samee/axle/data/test_image.ome.tif"
output_dir = "/home/samee/axle/data/test_image_ome_zarr"
min_dim = 1024
pyr_gen = PyramidGenerartor()
pyr_gen.generate_from_single_image(input_file, output_dir, min_dim, "NG_Zarr", {0:"mode_max"})

Here is an example of generating a pyramid from a collection of images and a stitching vector.

from argolid import PyramidGenerartor
input_dir = "/home/samee/axle/data/intensity1"
file_pattern = "x{x:d}_y{y:d}_c{c:d}.ome.tiff"
output_dir = "/home/samee/axle/data/test_assembly_out"
image_name = "test_image"
min_dim = 1024
pyr_gen = PyramidGenerartor()
pyr_gen.generate_from_image_collection(input_dir, file_pattern, image_name, 
                                        output_dir, min_dim, "Viv", {1:"mean"})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

argolid-0.0.5-cp311-cp311-win_amd64.whl (11.3 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

argolid-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

argolid-0.0.5-cp311-cp311-macosx_11_0_arm64.whl (10.8 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

argolid-0.0.5-cp311-cp311-macosx_10_15_x86_64.whl (13.2 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

argolid-0.0.5-cp310-cp310-win_amd64.whl (11.3 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

argolid-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

argolid-0.0.5-cp310-cp310-macosx_11_0_arm64.whl (10.8 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

argolid-0.0.5-cp310-cp310-macosx_10_15_x86_64.whl (13.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

argolid-0.0.5-cp39-cp39-win_amd64.whl (11.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

argolid-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

argolid-0.0.5-cp39-cp39-macosx_11_0_arm64.whl (10.8 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

argolid-0.0.5-cp39-cp39-macosx_10_15_x86_64.whl (13.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

argolid-0.0.5-cp38-cp38-win_amd64.whl (11.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

argolid-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

argolid-0.0.5-cp38-cp38-macosx_10_15_x86_64.whl (13.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page