structural heterogeneous cryoEM reconstruction
Project description
cryoSPHERE: Single-particle heterogeneous reconstruction from cryo EM
CryoSPHERE is a structural heterogeneous reconstruction software of cryoEM data.
Installation
CryoSPHERE is available as a python package named cryosphere. Create a conda environment, install cryosphere with pip and then pytorch3d:
conda create -n cryosphere python==3.9.20
conda activate cryosphere
pip install cryosphere
conda install pytorch3d -c pytorch3d
Training
The first step before running cryoSPHERE on a dataset is to run a homogeneous reconstruction software such as RELION or cryoSparc. This should yield a star file containing the poses of each image, the CTF and information about the images as well as one or several mrcs file(s) containing the actual images. You should also obtain one or several mrc files corresponding to consensus reconstruction(s). For example, you obtained a conensus_map.mrc
The second step is to fit a good atomic structure of the protein of interest into the volume obtained at step one (consensus_map.mrc), using e.g ChimeraX. Save this structure in pdb format: fitted_structure.pdb. You can now use cryopshere command line tools to center the structure:
cryosphere_center_origin --pdb_file_path fitted_structure.pdb --mrc_file_path consensus_map.mrc
This yields another pdb file `fitted_structure_centered.pdb".
The third step is to run cryoSPHERE. To run it, you need two yaml files: a parameters.yaml file, defining all the parameters of the training run and a image.yaml file, containing informations about the images. You need to set the folder_experiment entry of the paramters.yaml to the path of the folder containing your data. You also need to change the base_structure entry to fitted_structure_centered.pdb. You can then run cryosphere using the command line tool:
cryosphere_train --experiment_yaml /path/to/parameters.yaml
Analysis
You can first get the latent variables corresponding to the imagaes and generate a PCA analysis of the latent space, with latent traversal of first principal components::
cryosphere_analyze --experiment_yaml /path/to/parameters.yaml --model /path/to/model.pt --output_path /path/to/outpout_folder --no-generate_structures
where model.pt is the saved torch model you want to analyze and output_folder is the folder where you want to save the results of the analysis.
This will create the following directory structure:
analysis
| z.npy
| pc0
| structure_z_1.pdb
.
.
.
| structure_z_10.pdb
| pca.png
pc1
| structure_z_1.pdb
.
.
.
If you want to generate all structures (one for each images), you can set --generate_structures instead. This will skip the PCA step.
It is also possible to get the structures corresponding to specific images. Save the latent variables corresponding to the images of interest into a z_interest.npy. You can then run:
cryosphere_analyze --experiment_yaml /path/to/parameters.yaml --model /path/to/model.pt --output_path /path/to/outpout_folder --z /path/to/z_interest.npy --generate_structures
Setting the --z /path/to/z_interest.npy argument will directly decode the latent variables in z_interest.npy into structures.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cryosphere-0.2.9.tar.gz.
File metadata
- Download URL: cryosphere-0.2.9.tar.gz
- Upload date:
- Size: 25.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
187bec1b1f721518724280e84c94047a9bbc28fad1718faf8601f5f646f85a4d
|
|
| MD5 |
7a15de7f2961b29d9f20cea5c98e6e85
|
|
| BLAKE2b-256 |
48afa96dc8d34ba2388644f52b3241f33ea5f5068011f92faa9c9fdac1db9c32
|
File details
Details for the file cryoSPHERE-0.2.9-py3-none-any.whl.
File metadata
- Download URL: cryoSPHERE-0.2.9-py3-none-any.whl
- Upload date:
- Size: 49.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa2283bc89e496bca10148ec50fc1c9096a667a4afc10d7a7087ce48445cfad8
|
|
| MD5 |
3138895a9f8d2b89be1269c4bc8f86b9
|
|
| BLAKE2b-256 |
90255b7185c6842f5130d7929ea5c4a868a22a06806533169081b2cb99013ad2
|