mrc2omezarr


Namemrc2omezarr JSON
Version 0.3 PyPI version JSON
download
home_pageNone
SummaryCommand line tool to convert MRC-files to OME-Zarr.
upload_time2024-09-20 13:33:41
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Utz H. Ermel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords conversion cryo-et cryoet mrc ome tomography zarr
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```bash
git clone https://github.com/uermel/mrc2omezarr.git
cd mrc2omezarr
pip install .
```

## Usage

```bash
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.

```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mrc2omezarr",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "conversion, cryo-et, cryoet, mrc, ome, tomography, zarr",
    "author": null,
    "author_email": "\"Utz H. Ermel\" <utz@ermel.me>",
    "download_url": "https://files.pythonhosted.org/packages/f1/b5/a43daa932366de90127d5638c8886b9afe1ed0d3963d6c7d7e4fb1dbac36/mrc2omezarr-0.3.tar.gz",
    "platform": null,
    "description": "# mrc2omezarr\n\nCommand line tool for conversion from MRC to multiscale OME-Zarr format.\n\nDefault settings produce Zarr-files similar to those on the CZI cryoET data portal:\n\n- Files contain one image\n- Scales: 1x, 2x, 4x (original resolution)\n- Scale transformations transform to angstrom coordinates\n- Chunk size: 256, 256, 256\n\nThe original MRC-header is retained as a dictionary in the root .zattrs file.\n\nInput 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`.\n\n## Install\n\n```bash\ngit clone https://github.com/uermel/mrc2omezarr.git\ncd mrc2omezarr\npip install .\n```\n\n## Usage\n\n```bash\nUsage: mrc2omezarr [OPTIONS]\n\nOptions:\n  --mrc-path TEXT                 Path to the MRC file. Include the protocol\n                                  if necessary. (e.g. s3://)  [required]\n  --zarr-path TEXT                Path to the output Zarr file. Include the\n                                  protocol if necessary. (e.g. s3://)\n                                  [required]\n  --permissive / --no-permissive  Whether to read the MRC file in permissive\n                                  mode.  [default: no-permissive]\n  --overwrite / --no-overwrite    Whether to overwrite the output Zarr file.\n                                  [default: overwrite]\n  --scale-factors TEXT            Scale factors for multiscale pyramid. Comma-\n                                  separated list of integers.  [default:\n                                  1,2,4]\n  --voxel-size TEXT               Voxel size in Angstroms. Comma-separated\n                                  list of floats or single float. If not\n                                  provided, it will be read from the MRC\n                                  header.\n  --is-image-stack / --no-is-image-stack\n                                  Whether the data is an image stack\n                                  (determined from MRC-header by default).\n  --chunk-size INTEGER            Chunk size for the Zarr file.  [default:\n                                  256]\n  --filesystem-args TEXT          Path to a JSON file containing additional\n                                  arguments to pass to the fsspec-filesystem.\n  --help                          Show this message and exit.\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Utz H. Ermel  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Command line tool to convert MRC-files to OME-Zarr.",
    "version": "0.3",
    "project_urls": {
        "Issues": "https://github.com/uermel/mrc2omezarr/issues",
        "Repository": "https://github.com/uermel/mrc2omezarr.git"
    },
    "split_keywords": [
        "conversion",
        " cryo-et",
        " cryoet",
        " mrc",
        " ome",
        " tomography",
        " zarr"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ebc9ba4e34754a4d2c7a40ee1fa8a4841f0df4bc95bfee3217465366abd935b5",
                "md5": "73f5e39ee30aff60a754bbd3fa233f96",
                "sha256": "78beabff0a1275ea7be1c80d86c46918ac45cb354c2773a6ca54d045b73a2a4a"
            },
            "downloads": -1,
            "filename": "mrc2omezarr-0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "73f5e39ee30aff60a754bbd3fa233f96",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9495,
            "upload_time": "2024-09-20T13:33:40",
            "upload_time_iso_8601": "2024-09-20T13:33:40.088186Z",
            "url": "https://files.pythonhosted.org/packages/eb/c9/ba4e34754a4d2c7a40ee1fa8a4841f0df4bc95bfee3217465366abd935b5/mrc2omezarr-0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1b5a43daa932366de90127d5638c8886b9afe1ed0d3963d6c7d7e4fb1dbac36",
                "md5": "720dcf3edfed32bb044ba7e09f2d9420",
                "sha256": "233b6b464f18861c5f5ae75aef35a47038cb3d53cc6191856c5cdc67cc6bd023"
            },
            "downloads": -1,
            "filename": "mrc2omezarr-0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "720dcf3edfed32bb044ba7e09f2d9420",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7765,
            "upload_time": "2024-09-20T13:33:41",
            "upload_time_iso_8601": "2024-09-20T13:33:41.388287Z",
            "url": "https://files.pythonhosted.org/packages/f1/b5/a43daa932366de90127d5638c8886b9afe1ed0d3963d6c7d7e4fb1dbac36/mrc2omezarr-0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-20 13:33:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "uermel",
    "github_project": "mrc2omezarr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "mrc2omezarr"
}
        
Elapsed time: 4.24813s