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.0

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.0
File Actions
nyxus-0.12.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for nyxus-0.12.0-cp313-cp313-win_amd64.whl
nyxus-0.12.0-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.0-cp313-cp313-manylinux_2_28_x86_64.whl
nyxus-0.12.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.0-cp313-cp313-manylinux_2_28_aarch64.whl
nyxus-0.12.0-cp313-cp313-macosx_10_15_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.15+ x86-64 Details for nyxus-0.12.0-cp313-cp313-macosx_10_15_x86_64.whl
nyxus-0.12.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for nyxus-0.12.0-cp312-cp312-win_amd64.whl
nyxus-0.12.0-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.0-cp312-cp312-manylinux_2_28_x86_64.whl
nyxus-0.12.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.0-cp312-cp312-manylinux_2_28_aarch64.whl
nyxus-0.12.0-cp312-cp312-macosx_10_15_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.15+ x86-64 Details for nyxus-0.12.0-cp312-cp312-macosx_10_15_x86_64.whl
nyxus-0.12.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for nyxus-0.12.0-cp311-cp311-win_amd64.whl
nyxus-0.12.0-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.0-cp311-cp311-manylinux_2_28_x86_64.whl
nyxus-0.12.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.0-cp311-cp311-manylinux_2_28_aarch64.whl
nyxus-0.12.0-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details for nyxus-0.12.0-cp311-cp311-macosx_10_15_x86_64.whl
nyxus-0.12.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for nyxus-0.12.0-cp310-cp310-win_amd64.whl
nyxus-0.12.0-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.0-cp310-cp310-manylinux_2_28_x86_64.whl
nyxus-0.12.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for nyxus-0.12.0-cp310-cp310-manylinux_2_28_aarch64.whl
nyxus-0.12.0-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for nyxus-0.12.0-cp310-cp310-macosx_10_15_x86_64.whl

Total release size: 280.1 MB

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

Download URL nyxus-0.12.0-cp313-cp313-win_amd64.whl
Size 8.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f35bb02aca7e545afb58caad643ed45b25c89ad621f00c5c85a25e5825030ee3
BLAKE2b-256 checksum
How to use checksums
9e0283915e4e00b60d74358639a8c96114c00ce0132c4103ae97041cbc5b57e6
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.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.0-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
d06badc926dacf01c9b16d4cce31fddb98cbba86b994c42cd98722e0feb03106
BLAKE2b-256 checksum
How to use checksums
47f3f7e607565ce1ec38fa46d69e9f440d6edbf2a26d5ce6ec1d641323f5841f
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.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.0-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
55c84fa3fd738b5cbd9ebcff12cb2e641ebdaae4b46bc325ccdec55a31fdef3f
BLAKE2b-256 checksum
How to use checksums
ac735fc0cc2ea71c2770ef0aaed427648f79cb060480cc53366c2dbcc255c803
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.0-cp313-cp313-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.0-cp313-cp313-macosx_10_15_x86_64.whl
Size 15.5 MB
Tags CPython 3.13 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
0b2857e43d8ed49100462da36a36c9b5819ff7a1a3b9af7fb3aab81433876e4c
BLAKE2b-256 checksum
How to use checksums
50a644bf267122bcb87364da4dca3bcc6c12530125d0e2368b102af40f137371
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.0-cp312-cp312-win_amd64.whl

Download URL nyxus-0.12.0-cp312-cp312-win_amd64.whl
Size 8.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
7d90befed710d74582c6b600016da4958f25fe7cf4dbb2fb5694cfbe21ea6ebf
BLAKE2b-256 checksum
How to use checksums
75f71126b82a6c80d3eda775bd6e3c5c879d5ef2b19cf5be0841921850bcbb1c
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.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.0-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
51b8fbd603898ebba9a7e2a662aa2b4f4b77437583042b405d27158bbba56d01
BLAKE2b-256 checksum
How to use checksums
e1f7b748cd5be3bc73fde8752c151acc17cad5643ab706c5ede43268114f88dc
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.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.0-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
d285f166726baddbaf8b36d7be1641fe954043eb32d24b6f19105ad24aa57e26
BLAKE2b-256 checksum
How to use checksums
cbf7c52a608ffb2874c37d13430090c9a0871f420301b9b56e8fbd7f99aedcae
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.0-cp312-cp312-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.0-cp312-cp312-macosx_10_15_x86_64.whl
Size 15.5 MB
Tags CPython 3.12 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
88633242965d7a7fd12b87cb7c73ecaedd9cb1f88fdcb980babfcc8998112e00
BLAKE2b-256 checksum
How to use checksums
ead18a9062e77e9873448dbaecc043215d8cdd13b04b7b1327ab292eff6e61a3
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.0-cp311-cp311-win_amd64.whl

Download URL nyxus-0.12.0-cp311-cp311-win_amd64.whl
Size 8.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5860d35d7fa71acf236accdf651a7a8fb728b35532882adcf006eec2c33cd5ce
BLAKE2b-256 checksum
How to use checksums
445d4f259b03ffb2ebbf8f486428805e74d444d4230cbfa547086263712e729b
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.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.0-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
8dd46c9443ca8d8457fb0e9f0fab05d5213da4536ad8cda67b67195efc9c435a
BLAKE2b-256 checksum
How to use checksums
ab0faa84c462afa4e5679b7b35a738dde470ff78ff73be8b2e1f8554da3792cb
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.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.0-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
73fda69f26009e43ba24d340f2b2b3a1f9326dc912d446cb360f30c8ce7813d9
BLAKE2b-256 checksum
How to use checksums
07539f53308d39b573aa6a702ff9adfbcc88d77e0b473ca32537d4e4b9fc96f7
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.0-cp311-cp311-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.0-cp311-cp311-macosx_10_15_x86_64.whl
Size 15.5 MB
Tags CPython 3.11 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
8fa4ac0346d978ae50a78b93a39af613471d4c9f6f67682572c905c71284575e
BLAKE2b-256 checksum
How to use checksums
6df61ca7e54c6f45a663b0f9d34b5e9e1547875a4b2f100455a323e20a847060
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.0-cp310-cp310-win_amd64.whl

Download URL nyxus-0.12.0-cp310-cp310-win_amd64.whl
Size 8.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
ca8d01678e34497110544756cbe0fb9f83bd6831b3eed8c1c5eec5c6ff2a07c3
BLAKE2b-256 checksum
How to use checksums
dbe66022d2e10ed206085e17538c4c14c4f1aa5adc66e27a8f08cdc7f81f26f0
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.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL nyxus-0.12.0-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
e99ebd910af038fca73667b4a8d125e722034bde53228a20aae8e867fcb05b43
BLAKE2b-256 checksum
How to use checksums
03f143c3a9058b2d8f2cbad96c2190ea7c5ebbbb5c914c611126267552590684
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.0-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL nyxus-0.12.0-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
d13a5d607dee4d769fa12126106dea229b87463827c358b4c4d5d2c4648afc8f
BLAKE2b-256 checksum
How to use checksums
4808ff538ff7e845610f8cbc7979282ab2e33d58b7626fb1f90f6a99eb78e8b5
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.0-cp310-cp310-macosx_10_15_x86_64.whl

Download URL nyxus-0.12.0-cp310-cp310-macosx_10_15_x86_64.whl
Size 15.5 MB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
3cd396d6cd4f746987cb8bf28c476bb7e648c6f03a93a4699fe4f43bd24975aa
BLAKE2b-256 checksum
How to use checksums
c8856a93dec009ba74c1b25e301b1d044de825fce08db77ab731639ff4c764c1
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.0

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.0 This release

16 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