Command line tool to convert MRC-files to OME-Zarr.
Project description
mrc2omezarr
Command line tool for conversion from MRC to multiscale OME-Zarr format.
Default settings produce Zarr-files similar to those on the CZI cryoET data portal:
- Files contain one image
- Scales: 1x, 2x, 4x (original resolution)
- Scale transformations transform to angstrom coordinates
- Chunk size: 256, 256, 256
The original MRC-header is retained as a dictionary in the root .zattrs file.
Input as well as output can be local or remote. For remote files include the protocol in the filename, e.g. s3://bucket/path/to/file.mrc.
Install
git clone https://github.com/uermel/mrc2omezarr.git
cd mrc2omezarr
pip install .
Usage
Usage: mrc2omezarr [OPTIONS]
Options:
--mrc-path TEXT Path to the MRC file. Include the protocol
if necessary. (e.g. s3://) [required]
--zarr-path TEXT Path to the output Zarr file. Include the
protocol if necessary. (e.g. s3://)
[required]
--permissive / --no-permissive Whether to read the MRC file in permissive
mode. [default: no-permissive]
--overwrite / --no-overwrite Whether to overwrite the output Zarr file.
[default: overwrite]
--scale-factors TEXT Scale factors for multiscale pyramid. Comma-
separated list of integers. [default:
1,2,4]
--voxel-size TEXT Voxel size in Angstroms. Comma-separated
list of floats or single float. If not
provided, it will be read from the MRC
header.
--is-image-stack / --no-is-image-stack
Whether the data is an image stack
(determined from MRC-header by default).
--chunk-size INTEGER Chunk size for the Zarr file. [default:
256]
--filesystem-args TEXT Path to a JSON file containing additional
arguments to pass to the fsspec-filesystem.
--help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mrc2omezarr-0.3.tar.gz.
File metadata
- Download URL: mrc2omezarr-0.3.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
233b6b464f18861c5f5ae75aef35a47038cb3d53cc6191856c5cdc67cc6bd023
|
|
| MD5 |
720dcf3edfed32bb044ba7e09f2d9420
|
|
| BLAKE2b-256 |
f1b5a43daa932366de90127d5638c8886b9afe1ed0d3963d6c7d7e4fb1dbac36
|
File details
Details for the file mrc2omezarr-0.3-py3-none-any.whl.
File metadata
- Download URL: mrc2omezarr-0.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78beabff0a1275ea7be1c80d86c46918ac45cb354c2773a6ca54d045b73a2a4a
|
|
| MD5 |
73f5e39ee30aff60a754bbd3fa233f96
|
|
| BLAKE2b-256 |
ebc9ba4e34754a4d2c7a40ee1fa8a4841f0df4bc95bfee3217465366abd935b5
|