Skip to main content

Download slices from a neuroglancer view

Project description

ng-slice-download

A simple command line utility to download the current neuroglancer view to a local TIFF file.

Usage

  1. Install uv
  2. Open an OME-Zarr or N5 image in neuroglancer, and navigate to the 2D view that you want to download. Important: the view to be downloaded is in the upper left panel.
  3. Copy the full neuroglancer link from the browser
  4. Run:
uvx ng-slice-download '[full neuroglancer link]'

replacing [full neuroglancer link] with your neuroglancer link. It's important to surround the neuroglancer link in quotes because it will probably contain special characters.

Command documentation

% ng-slice-download --help
Usage: ng-slice-download [OPTIONS] NEUROGLANCER_URL

Options:
  --output-dir PATH    Directory to download image files to.
  --skip-lowres-check  Skip the low resolution check.
  --help               Show this message and exit.

Changelog

0.2

  • Ask before overwriting output TIFF files (.zarr files are still overwritten without asking)
  • Saved images use the Neuroglancer layer name in the filename
  • Added support for N5 images.
  • Renamed the --output_dir flag to --output-dir.
  • Add --skip-lowres-check option to skip the initial low resolution check that the orientation is correct.
  • Add a more helpful error message if selected layer is not an image layer.
  • Allow layers with a transform, but without a transformation matrix.

0.1.1

First release

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

ng_slice_download-0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ng_slice_download-0.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ng_slice_download-0.2.tar.gz.

File metadata

  • Download URL: ng_slice_download-0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ng_slice_download-0.2.tar.gz
Algorithm Hash digest
SHA256 86a7ffb29ab41261c5b14dc0537a1937519c4dac28f8cd294d71d495f8f4466a
MD5 d505555fbaab9fbbac97815c345df055
BLAKE2b-256 5fc9a00b46bdd42f580db28795a496431b2c6712c532830a0b97ec46089eaf61

See more details on using hashes here.

Provenance

The following attestation bundles were made for ng_slice_download-0.2.tar.gz:

Publisher: publish.yml on HiPCTProject/ng-slice-download

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ng_slice_download-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ng_slice_download-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a23a05a260eec7feecccfd57beababe0fb09a101fc1ad9b08b06bbb34b365ed
MD5 b29b3ed4f85ac437980ec8390050a569
BLAKE2b-256 0c13adbc3e89347184fb9e13643a50a2df7e8b00a0d7cbc83877f23273280dcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ng_slice_download-0.2-py3-none-any.whl:

Publisher: publish.yml on HiPCTProject/ng-slice-download

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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