Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryodata-0.1.0b12.tar.gz (137.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryodata-0.1.0b12-py2.py3-none-any.whl (169.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cryodata-0.1.0b12.tar.gz.

File metadata

  • Download URL: cryodata-0.1.0b12.tar.gz
  • Upload date:
  • Size: 137.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for cryodata-0.1.0b12.tar.gz
Algorithm Hash digest
SHA256 d135bc3d8edd3a419a729baaf77d63e28949835c4fdf4df16e23e0863e0f6fa8
MD5 76269a5c39a3f28c3c27acfbaeebf6e8
BLAKE2b-256 c9162a13bd8239f114b712d49ebb887aeebaa001aee96f9c25a6561917f2ab65

See more details on using hashes here.

File details

Details for the file cryodata-0.1.0b12-py2.py3-none-any.whl.

File metadata

  • Download URL: cryodata-0.1.0b12-py2.py3-none-any.whl
  • Upload date:
  • Size: 169.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for cryodata-0.1.0b12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7108ec2ff57951a7436a21e5b88f4d57fa9ca699833084625a72ec8df00ebeb9
MD5 2d76ec3c10f256847d7582cc0c74eac3
BLAKE2b-256 f03d2adf2a57a5ca87b3513ae3e54cbb94a9a39c3d95a7e74a0964e1d02264e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page