Skip to main content

A simple utility to convert cryosparc particle positions to relion star format.

Project description

cs2star.py

A simple utility that wraps around csparc2star.py to convert particle positions from Cryosparc JOB directories into a RELION-ready directory. On top of what csparc2star.py already does, this script automatically symlinks (or copies) the .mrc files, renaming them as appropriate to mrcs and updating the rlnMicrographName column to reflect the change.

Installation

This package requires pyem, which is not available on pip under that name. To install it manually:

git clone https://github.com/asarnow/pyem.git
cd pyem
pip install -e .

Usage

cs2star cryosparc_job_dir [dest_dir]

A couple more options are available, check out the help page with -h.

Example

Assuming Cryosparc/J23 is a classification job:

cs2star Cryosparc/J23 -p

will create in the working directory:

  • a relion-ready particles.star
  • a patches directory containing the particle images to be used by relion refinement You can now run relion and provide particles.star as the input.

Tips

While you can use the --class option to select specific classes from a cryosparc job, the class indexes do not correspond the the class order in Cryosparc (which is simply based on particle number). A much easier way to select specific classes to convert to .star is to use the select 2D classes job in cryosparc, then provide this job as input to cs2star.

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

cs2star-0.3.7.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

cs2star-0.3.7-py3-none-any.whl (6.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page