Cryo-EM data processing tools for deep learning (e.g., cryo-IEF).
Project description
Cryo-EM data processing tools for deep learning (e.g., cryo-IEF)
This repository contains tools for processing cryo-EM data, particularly for training deep learning models like cryo-IEF. Raw cryo-EM data, such as particles extracted from cryoSPARC jobs, is normally in MRC format and requires preprocessing before it can be used for training. The tools are designed to handle various tasks such as data augmentation, normalization, and preparation of datasets for training. For more details on implementation and usage, refer to the cryo-IEF repository.
Installation
To install the required packages, run the following command:
pip install cryodata
Usage
To use the tools in this repository, you can import the necessary modules in your Python scripts. For example:
from cryodata.data_preprocess.mrc_preprocess import raw_data_preprocess
from cryodata.cryoemDataset import CryoEMDataset, CryoMetaData
import torch
raw_data_path = 'path/to/cryosparc/particles/job' # path to the raw cryo-EM data from a cryosparc job (e.g., particles extraction)
processed_data_path = 'path/to/processed/data' # path to save the processed cryoem data
# preprocess the cryoem data (e.g., particles data from a cryosparc job)
new_cs_data = raw_data_preprocess(raw_data_path, processed_data_path,
resize=224,
save_raw_data=False,
save_FT_data=False,
is_to_int8=True)
# create a dataset from the processed data
meta_data = CryoMetaData(processed_data_path=processed_data_path)
cryodataset = CryoEMDataset(metadata=meta_data)
dataloader =torch.utils.data.DataLoader(cryodataset, batch_size=32, shuffle=True)
In this example, we preprocess the raw cryo-EM data and create a dataset that can be used for training deep learning models.
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 cryodata-0.1.1b3.tar.gz.
File metadata
- Download URL: cryodata-0.1.1b3.tar.gz
- Upload date:
- Size: 142.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0658bdabcdf689eb45c9080028f40ba409857985288356c0b80ec3111afe82e6
|
|
| MD5 |
de8da5bd2ce0c1a10d0efd153eb3ca7d
|
|
| BLAKE2b-256 |
b8409127e2c5e4e074cc07be348805044e04e7e4aa1d0ad1501e65c068e6c1d5
|
File details
Details for the file cryodata-0.1.1b3-py2.py3-none-any.whl.
File metadata
- Download URL: cryodata-0.1.1b3-py2.py3-none-any.whl
- Upload date:
- Size: 175.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5ea08d7f81b87c3554a7d95bf6f06765f1ed1ce1c4904f9599a62a008ef3cc0
|
|
| MD5 |
6b1f903ac3ad4039d5274cd3282ea8ef
|
|
| BLAKE2b-256 |
c022dfacfa42e53508e1d83ef08b9da80b3143cf4d8697e1171fb03c22304131
|