mrc2omezarr


Namemrc2omezarr JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryCommand line tool to convert MRC-files to OME-Zarr.
upload_time2024-08-09 19:39:51
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/97/ad/209d875b7f888bf01dbf411633d54f077e67c0be91960ce3ab48eaa582f9/mrc2omezarr-0.2.1.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.2.1",
    "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": "5017335d759dd0971fde0ca67ce70d34355ae06e0aac0349d65e60cfd9ba3eaf",
                "md5": "f81d0dfe7c0941f1fd39d78393c23a8a",
                "sha256": "d2987b6814c59a2265301f6895c2f328c610bdef0123e1c6b5d490952a87cbd6"
            },
            "downloads": -1,
            "filename": "mrc2omezarr-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f81d0dfe7c0941f1fd39d78393c23a8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9501,
            "upload_time": "2024-08-09T19:39:50",
            "upload_time_iso_8601": "2024-08-09T19:39:50.489539Z",
            "url": "https://files.pythonhosted.org/packages/50/17/335d759dd0971fde0ca67ce70d34355ae06e0aac0349d65e60cfd9ba3eaf/mrc2omezarr-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97ad209d875b7f888bf01dbf411633d54f077e67c0be91960ce3ab48eaa582f9",
                "md5": "ef7f4241205f8fc4c496af1b1ecbdffa",
                "sha256": "51234f06e2c21d262afa4a93bf1a54826bd9647d351fbc7d5dccb233c2885cd2"
            },
            "downloads": -1,
            "filename": "mrc2omezarr-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ef7f4241205f8fc4c496af1b1ecbdffa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7734,
            "upload_time": "2024-08-09T19:39:51",
            "upload_time_iso_8601": "2024-08-09T19:39:51.375320Z",
            "url": "https://files.pythonhosted.org/packages/97/ad/209d875b7f888bf01dbf411633d54f077e67c0be91960ce3ab48eaa582f9/mrc2omezarr-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-09 19:39:51",
    "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: 0.73864s