acryo 0.4.16
pip install acryo
Latest version
Released:
An extensible cryo-EM/ET toolkit for Python.
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: BSD 3-Clause License
- Author: Hanjin Liu
- Requires: Python >=3.9
-
Provides-Extra:
testing
Classifiers
- Programming Language
Project description
acryo
acryo
is an extensible cryo-EM/ET toolkit for Python.
The purpose of this library is to make data analysis of cryo-EM/ET safer, efficient, reproducible and customizable for everyone. Scientists can avoid the error-prone CLI-based data handling, such as writing out the results to the files every time and manage all the result just by the file names.
Install
Use pip
pip install acryo -U
From source
git clone git+https://github.com/hanjinliu/acryo.git
cd acryo
pip install -e .
Features
- Out-of-core and parallel processing during subtomogram averaging/alignment to make full use of CPU.
- Extensible and ready-to-use alignment models.
- Manage subtomogram loading tasks from single or multiple tomograms in the same API.
- Tomogram and tilt series simulation.
- Masked PCA clustering.
Code Snippet
import polars as pl
from acryo import SubtomogramLoader, Molecules # acryo objects
from acryo.tilt import single_axis # missing wedge model
from acryo.pipe import soft_otsu # data input pipelines
# construct a loader
loader = SubtomogramLoader.imread(
"path/to/tomogram.mrc",
molecules=Molecules.from_csv("path/to/molecules.csv"),
)
# filter out bad alignment in polars way
loader_filt = loader.filter(pl.col("score") > 0.7)
# averaging
avg = loader_filt.average(output_shape=(48, 48, 48))
# alignment
aligned_loader = loader.align(
template=avg, # use the average as template
mask=soft_otsu(sigma=2, radius=2), # apply soft-Otsu to template to make the mask
tilt=single_axis((-45, 45), axis="y"), # range of tilt series degrees.
cutoff=0.5, # lowpass filtering cutoff
max_shifts=(4, 4, 4), # search space limits
)
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: BSD 3-Clause License
- Author: Hanjin Liu
- Requires: Python >=3.9
-
Provides-Extra:
testing
Classifiers
- Programming Language
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 acryo-0.4.16.tar.gz
.
File metadata
- Download URL: acryo-0.4.16.tar.gz
- Upload date:
- Size: 76.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 228e19fdc643615d9b45a3442ddb82b26efe922f7936a83a96b00bef8fd87248 |
|
MD5 | 2cecc6b2854893c1925b5a9cf8c71e27 |
|
BLAKE2b-256 | 738ef2c97b0bcd703955eff0ef9f3779e79a9795a58710f29bbd58a3ef63d04d |
File details
Details for the file acryo-0.4.16-py3-none-any.whl
.
File metadata
- Download URL: acryo-0.4.16-py3-none-any.whl
- Upload date:
- Size: 99.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c0b98ae90215ce156e34762f98c114eefded7a7a75a0824ae712e925152c15e |
|
MD5 | 8c6bb80c8f1fc5450a0692dfabccd8d8 |
|
BLAKE2b-256 | 4a3e7ca39daf03580b0b05d378106bdce5ec297ee0640a56c50559ba7d441f96 |