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
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
File details
Details for the file cryohub-0.3.2.tar.gz
.
File metadata
- Download URL: cryohub-0.3.2.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426ad22409a094bf58765830f85ae19951e7799f76c9286b2b26d08941e63963 |
|
MD5 | 1e7157b627e77b920797ab108ade4d39 |
|
BLAKE2b-256 | c2dfbbb5db16b70fdac3d4ba800646b0e646204f5788f67061bba45a30327cfb |
File details
Details for the file cryohub-0.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: cryohub-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89220d997152c3280071107a6b59b3ca265e91121d88cca45257afaeefbaf997 |
|
MD5 | d3f1d0278fdf426585a1fb444229c45a |
|
BLAKE2b-256 | 635fc63a5e32266ae9aeaba63ce9d456680e35c6faee023a8e82b44a9ef99423 |