Skip to main content

IO hub for Cryo-EM, Cryo-ET and subtomogram averaging data.

Project description

cryohub

cryohub is a library for reading and writing Cryo-ET data based on the cryotypes specification.

Installation

pip install cryohub

Usage

cryohub provides granular I/O functions such as read_star and read_mrc, which will all return objects following the cryotypes specification. A higher level function called read adds some magic to the IO procedure, guessing file formats and returning a list of cryotypes.

Similarly to the read_* functions, cryohub provides a series of write_* functions.

From the command line

If you just need to quickly inspect your data, this command will land in an ipython shell with the loaded data collected in a list called data:

cryohub path/to/files/* /other/path/to/file.star

Features

Currently cryohub is capable of reading images in the following formats:

  • .mrc (and the .mrcs or .st variants)
  • Dynamo .em

and particle data in the following formats:

  • Relion .star
  • Dynamo .tbl
  • Cryolo .cbox and .box

Writer functions currently exist for:

  • .mrc
  • Dynamo .em
  • Relion .star
  • Dynamo .tbl

Image data

When possible (and unless disabled), cryohub loads images lazily using dask. The resulting objects can be treated as normal numpy array, except one needs to call array.compute() to apply any pending operations and return the result.

Contributing

Contributions are more than welcome! If there is a file format that you wish were supported in reading or writing, simply open an issue about it pointing to the specification. Alternatively, feel free to open a PR with your proposed implementation; you can look at the existing functions for inspiration.

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

cryohub-0.3.3.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

cryohub-0.3.3-py2.py3-none-any.whl (22.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cryohub-0.3.3.tar.gz.

File metadata

  • Download URL: cryohub-0.3.3.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for cryohub-0.3.3.tar.gz
Algorithm Hash digest
SHA256 ce0c641e02613d08c49740a56905cc994ce2d3c1f4f996a1666a4ffd92058fe6
MD5 700b13124d89942407f4ee2ccf315468
BLAKE2b-256 a210ad8d00adabdaee59cd942c3751f26b8d48608872584cab3eb3830571dd77

See more details on using hashes here.

Provenance

File details

Details for the file cryohub-0.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: cryohub-0.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for cryohub-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b77f18161b716e5d5883751aeebf0e883086881c4b3a2391da8a549bd453cea1
MD5 6a9d6877ab4caa6a4694f6f9c9b918cf
BLAKE2b-256 feafd2e9988c4c41a23983f2a16e785f06d069a6d664231ee722adde4965f518

See more details on using hashes here.

Provenance

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