Skip to main content

Nyxus

Documentation Status PyPI PyPI Downloads Conda Conda Downloads

Nyxus computes intensity, texture, morphology and image quality features for every region of interest (ROI) in 2D images and 3D volumes: 758 features in all, 539 for 2D images, 213 for 3D volumes and 6 image quality features. It runs from Python or the command line, reads TIFF, OME-TIFF, OME-Zarr, NIfTI and DICOM files (OME-TIFF and OME-Zarr with up to five dimensions), and assembles ROIs that span several image tiles. Each feature's validation against reference tools such as PyRadiomics, MIRP, MATLAB and CellProfiler is listed in the documentation.

ROIs larger than the memory budget are processed out of core when they come from files; which features then keep their in-memory values is listed under large images.

The Nyxus pipeline

Documentation: https://nyxus.readthedocs.io

Installation

pip install nyxus

or

conda install nyxus -c conda-forge

The conda-forge package has no build for Apple Silicon Macs or Linux aarch64; use pip there. On Windows, the PyPI wheels do not read OME-Zarr or compressed NIfTI (.nii.gz), and the conda-forge packages of 0.11.0 need Visual Studio installed (they were built in Debug mode). GPU wheels, the Docker image and building from source are described in Installation.

Quick start

2D, from arrays in memory

import numpy as np
from nyxus import Nyxus

intensity = np.array([[1, 4, 4, 1],
                      [1, 4, 6, 1],
                      [4, 1, 6, 4],
                      [4, 4, 6, 4]], dtype=np.uint16)
labels = np.array([[1, 1, 0, 2],
                   [1, 1, 0, 2],
                   [1, 1, 0, 2],
                   [1, 1, 0, 2]], dtype=np.uint32)

nyx = Nyxus(["*ALL_INTENSITY*"])
features = nyx.featurize(intensity, labels)
print(features[["ROI_label", "MEAN", "MAX"]])

A directory of image files and their label images is featurized with nyx.featurize_directory("intensities/", "labels/").

3D, from volume files

This example writes its volume with tifffile (pip install tifffile).

import numpy as np
import tifffile
from nyxus import Nyxus3D

volume = np.random.default_rng(0).integers(1, 100, size=(8, 32, 32), dtype=np.uint16)
labels = np.zeros_like(volume)
labels[2:6, 8:24, 8:24] = 1
tifffile.imwrite("volume.ome.tif", volume, ome=True, metadata={"axes": "ZYX"})
tifffile.imwrite("labels.ome.tif", labels, ome=True, metadata={"axes": "ZYX"})

nyx = Nyxus3D(["*3D_ALL_INTENSITY*"])
features = nyx.featurize_files(["./volume.ome.tif"], ["./labels.ome.tif"], False)
print(features[["ROI_label", "3MEAN", "3MAX"]])

Command line

The Python packages do not include the command-line program; run it from the Docker image or build it from source (see Installation). The output directory must already exist.

nyxus --features="*ALL_INTENSITY*,*ALL_MORPHOLOGY*" --intDir=/data/int --segDir=/data/seg --outDir=/data/out --outputType=singlecsv

Where to go next

Citing Nyxus

If you use Nyxus in your work, please cite it as described in CITATION.cff; GitHub's Cite this repository button gives APA and BibTeX.

License

Nyxus is released under the MIT License.

Metadata

Release files for nyxus 0.12.1

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

Built distributions (wheels)

Table of built distributions (wheels) for nyxus 0.12.1
File Actions
nyxus-0.12.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for nyxus-0.12.1-cp313-cp313-win_amd64.whl
nyxus-0.12.1-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for nyxus-0.12.1-cp313-cp313-manylinux_2_28_x86_64.whl
nyxus-0.12.1-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.1-cp313-cp313-manylinux_2_28_aarch64.whl
nyxus-0.12.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for nyxus-0.12.1-cp313-cp313-macosx_11_0_arm64.whl
nyxus-0.12.1-cp313-cp313-macosx_10_15_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.15+ x86-64 Details for nyxus-0.12.1-cp313-cp313-macosx_10_15_x86_64.whl
nyxus-0.12.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for nyxus-0.12.1-cp312-cp312-win_amd64.whl
nyxus-0.12.1-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for nyxus-0.12.1-cp312-cp312-manylinux_2_28_x86_64.whl
nyxus-0.12.1-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.1-cp312-cp312-manylinux_2_28_aarch64.whl
nyxus-0.12.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for nyxus-0.12.1-cp312-cp312-macosx_11_0_arm64.whl
nyxus-0.12.1-cp312-cp312-macosx_10_15_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.15+ x86-64 Details for nyxus-0.12.1-cp312-cp312-macosx_10_15_x86_64.whl
nyxus-0.12.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for nyxus-0.12.1-cp311-cp311-win_amd64.whl
nyxus-0.12.1-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for nyxus-0.12.1-cp311-cp311-manylinux_2_28_x86_64.whl
nyxus-0.12.1-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.1-cp311-cp311-manylinux_2_28_aarch64.whl
nyxus-0.12.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for nyxus-0.12.1-cp311-cp311-macosx_11_0_arm64.whl
nyxus-0.12.1-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details for nyxus-0.12.1-cp311-cp311-macosx_10_15_x86_64.whl
nyxus-0.12.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for nyxus-0.12.1-cp310-cp310-win_amd64.whl
nyxus-0.12.1-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for nyxus-0.12.1-cp310-cp310-manylinux_2_28_x86_64.whl
nyxus-0.12.1-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.1-cp310-cp310-manylinux_2_28_aarch64.whl
nyxus-0.12.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for nyxus-0.12.1-cp310-cp310-macosx_11_0_arm64.whl
nyxus-0.12.1-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for nyxus-0.12.1-cp310-cp310-macosx_10_15_x86_64.whl

Total release size: 332.7 MB

Release files / nyxus-0.12.1-cp313-cp313-win_amd64.whl

Download URL nyxus-0.12.1-cp313-cp313-win_amd64.whl
Size 8.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b527833df5bae3b02f0c88c68944fffc3cbbbfc6e4bc4ce69ecd232f7f2337fa
BLAKE2b-256 checksum
How to use checksums
f096f5f4af7abf2de8bf3d4e025c25629f7422c82b03f93f075f942f76421ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 24.4 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b924f98d2c4048d7540545340d6b2e8e08b5bcf8d4ea78ddc43ff0148d71ce7d
BLAKE2b-256 checksum
How to use checksums
4a8413d8386bf82aea6b79e866623205b4002fcac56ffefd9bd6dca6bdc29b02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.1-cp313-cp313-manylinux_2_28_aarch64.whl
Size 22.1 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
b4bf62a7e30253d6fd4053c1c5b90f7b78616d4960be93f814f9adb61af5b0c5
BLAKE2b-256 checksum
How to use checksums
db412f3e80377832c02f4bbb8bdbc1c8e319ec7e11bab2c5987881ad4acbbb66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL nyxus-0.12.1-cp313-cp313-macosx_11_0_arm64.whl
Size 13.3 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3fe64e71dc3ff0c718b6870c1f200d3cfb04c8fd3199662a3ba1f0d3ac3602f6
BLAKE2b-256 checksum
How to use checksums
da29b1fd1f657af90c96b588bc1700896c96eeb56a4ed11b8e33419b66baa285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp313-cp313-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.1-cp313-cp313-macosx_10_15_x86_64.whl
Size 15.3 MB
Tags CPython 3.13 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
7b91abb82f985d6b2d72fd634afd20f08decbc5e685bae431652de77d81e5e09
BLAKE2b-256 checksum
How to use checksums
48594aff6bf598efb5df350203d5b6383a369a4864c7db2633686f8a3949655a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp312-cp312-win_amd64.whl

Download URL nyxus-0.12.1-cp312-cp312-win_amd64.whl
Size 8.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5644d355cd25b3bc3bdd7315c23eb498ad26f0f4d7f304182c68393d4ece59c1
BLAKE2b-256 checksum
How to use checksums
d260c908f3c3723a2dab4da8443c594fc8a05b05f3b4fecf8b55986d7ad2aeb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 24.4 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1fbadf5c90cb52b44ced70a57bf7e96ac12852559bd41fe290cf1cc13b64d52b
BLAKE2b-256 checksum
How to use checksums
fc9b49c112810c627221ad502a2fece008ae1083d579e004f6a4dad1aad53f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.1-cp312-cp312-manylinux_2_28_aarch64.whl
Size 22.1 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1b83da3b4edbf4c9d009ddffcdccd97a77237708137ab99ad7dcbdd405bcaa7b
BLAKE2b-256 checksum
How to use checksums
c7ba66c6d06eaa6fdba6c52a586c8dc86533ebb8f2a58485370b694c13fff3f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL nyxus-0.12.1-cp312-cp312-macosx_11_0_arm64.whl
Size 13.3 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e826e88b87b3d5fad940b716cd253aaebacefc0697994f8e637500772ccea736
BLAKE2b-256 checksum
How to use checksums
2d09ce4856a369787929a037277823c4d420198f0bac1a4cc690eb3c9e0e46db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp312-cp312-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.1-cp312-cp312-macosx_10_15_x86_64.whl
Size 15.3 MB
Tags CPython 3.12 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e453100aaec2917f017cb4a893654c0c1a5d657c6ae88ef829904e0e71b849df
BLAKE2b-256 checksum
How to use checksums
d509621f6c6eb2c237f74783466355d5ca20618faf3a854e923473f1b7e63231
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp311-cp311-win_amd64.whl

Download URL nyxus-0.12.1-cp311-cp311-win_amd64.whl
Size 8.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
29eff9b0df0be1eead9212063b222581c4fd1a66cb3b0e6a63578300b25f8413
BLAKE2b-256 checksum
How to use checksums
420b4eed732415a0277954f9dc939d3effb9ffc660ca325be3262de71c61d8f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.1-cp311-cp311-manylinux_2_28_x86_64.whl
Size 24.4 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
86c4b9989be36922e24c98bea2b1b643eeb8ef36b228306b7e6992fc0766bea4
BLAKE2b-256 checksum
How to use checksums
faf441057332fd6b3f9977ca93a878ce35a80bbad213b12b253613db2d03852c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.1-cp311-cp311-manylinux_2_28_aarch64.whl
Size 22.1 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
b44a0c6143899d21f9adeef1fdbef92261e7e9f1ee906ca31a49191082fbc89f
BLAKE2b-256 checksum
How to use checksums
6de5d326332b34a4975955ac87fdb839994891d686e4bbf817e34fc0afebe8dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL nyxus-0.12.1-cp311-cp311-macosx_11_0_arm64.whl
Size 13.3 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
982fbda4c6682bf2951e0c18de7e0498cc38942529309a0080acdfc7e98d6836
BLAKE2b-256 checksum
How to use checksums
4dccbdaf988fd49be4901ec31dbb2cad4105546e5e7f068d9def9a642dca2f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp311-cp311-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.1-cp311-cp311-macosx_10_15_x86_64.whl
Size 15.3 MB
Tags CPython 3.11 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e858607b4c897d51616a73cc4ddbb2bf55d17a7c013790298a26602f4ddcad2e
BLAKE2b-256 checksum
How to use checksums
0d7fc5d8404893404dbe10b916af193a0250da85409e0b15714db75ec5c3414b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp310-cp310-win_amd64.whl

Download URL nyxus-0.12.1-cp310-cp310-win_amd64.whl
Size 8.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a350805b51204a826efafd14a5d4656b7cc045af30dd0498b3ce88d3d884c484
BLAKE2b-256 checksum
How to use checksums
f2173632378b01ef09a90b39684316e7f65f2fc777856fa08ea8acd8b65d009e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.1-cp310-cp310-manylinux_2_28_x86_64.whl
Size 24.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c9fada93548ff4aee57c1fc8d3602b712417fcc95e8b20d5011d1fb500f09270
BLAKE2b-256 checksum
How to use checksums
f192523b221eafb5111deace0f4a16f3eee873addf68e65332eb45fea7fdd15f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.1-cp310-cp310-manylinux_2_28_aarch64.whl
Size 22.1 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
4e2e778a4d2b6b2107d45c158cb9c009efa658a1b021e36ccc37adeb3438d15c
BLAKE2b-256 checksum
How to use checksums
d5f8d5f3e45a7542db5f30e82f2e5506106246c1bef1547b84eaa5c952a65284
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / nyxus-0.12.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL nyxus-0.12.1-cp310-cp310-macosx_11_0_arm64.whl
Size 13.3 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dbeb16cccaad2ab419917b2e09215f8f0e8bc3fb99385e528b220a603eb45f5d
BLAKE2b-256 checksum
How to use checksums
f2c401383a8bcff7624e7838548c24aefef52993d4b0a232973e6dcf6b9eb135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nyxus-0.12.1-cp310-cp310-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.1-cp310-cp310-macosx_10_15_x86_64.whl
Size 15.3 MB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
361c38a59a27bf7ba84e0cf76ab4429f5054b93609f75da92eb8f8f238d0f858
BLAKE2b-256 checksum
How to use checksums
f89ed0d323275c04e049057aa0e218c826707dd1849bfe6902d484f87bf024a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for nyxus 0.12.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.12.1 This release

20 release files No provenance

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