Skip to main content

Convert OME-Zarr files to TMAP format

Project description

raw2tmap

pypi python test build coverage issues pull requests license

Convert OME-Zarr files to TMAP format

Requirements

Python 3.9 or later

Installation

Use the package manager pip to install raw2tmap:

pip install raw2tmap

To enable the --dzi option, install with the dzi extra (requires libvips):

pip install "raw2tmap[dzi]"

Usage

To convert an OME-Zarr file to TMAP format:

❯ raw2tmap --help
Usage: raw2tmap [OPTIONS] RAW_FILE_OR_URL TMAP_FILE

  Convert OME-Zarr files to TMAP format.

Options:
  -t, --time INTEGER RANGE    Time index.  [x>=0]
  -c, --channel INTEGER/TEXT  Channel index or name.
  -z, --depth INTEGER RANGE   Depth (z) index.  [x>=0]
  --layers DIRECTORY          Path to layer images, relative to TMAP_FILE.
                              Defaults to '.{TMAP_FILE}/layers'.
  --compression ALGORITHM     Compression algorithm.  [default: none]
  --tilesize INTEGER RANGE    Tile size in pixels.  [default: 256; x>0]
  --format [0.1|0.2|0.3|0.4]  OME-Zarr format version.  [default: 0.4]
  --dzi                       Write DZI file (requires pyvips).
  -q, --quiet                 Quiet mode (hide progress bar).
  --version                   Show the version and exit.
  --help                      Show this message and exit.

Example:

raw2tmap -t 0 -z 10 https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.4/idr0052A/5514375.zarr 5514375.tmap

OME-Zarr files can for example be created using bioformats2raw.

Support

If you find a bug, please raise an issue.

Contributing

Pull requests are welcome.

For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Changelog

Changelog

Authors

SciLifeLab BioImage Informatics Facility (BIIF)

License

MIT

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

raw2tmap-0.2.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

raw2tmap-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file raw2tmap-0.2.0.tar.gz.

File metadata

  • Download URL: raw2tmap-0.2.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for raw2tmap-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4b538377b9d3b4c0b86248c2e3f7708a9f9de44a725e4ae6c83ba5f9a0f3138c
MD5 75aaf4c3760cf7e5bfaf47a86c718eae
BLAKE2b-256 e751bac725f5f9b2f2e2acfa15188518eb6be034eb1e29635049fb217ce34c34

See more details on using hashes here.

File details

Details for the file raw2tmap-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: raw2tmap-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for raw2tmap-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfea146361825285de71cc67e929868fda01e81836da35ba6fd2b2ac2048f349
MD5 2659175113820fda56b8f9fa6216f57e
BLAKE2b-256 9109b47820c15dc7324154807e66c3393cb4988433d8061eba66c10075f62ca8

See more details on using hashes here.

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