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.
Metadata
Release files for mrc2omezarr 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mrc2omezarr-0.3.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mrc2omezarr-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / mrc2omezarr-0.3.tar.gz
| Download URL | mrc2omezarr-0.3.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
233b6b464f18861c5f5ae75aef35a47038cb3d53cc6191856c5cdc67cc6bd023
|
|
BLAKE2b-256 checksum How to use checksums |
f1b5a43daa932366de90127d5638c8886b9afe1ed0d3963d6c7d7e4fb1dbac36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Release files / mrc2omezarr-0.3-py3-none-any.whl
| Download URL | mrc2omezarr-0.3-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78beabff0a1275ea7be1c80d86c46918ac45cb354c2773a6ca54d045b73a2a4a
|
|
BLAKE2b-256 checksum How to use checksums |
ebc9ba4e34754a4d2c7a40ee1fa8a4841f0df4bc95bfee3217465366abd935b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|