Skip to main content

Report the number of particles in each class from RELION

Project description

countparticles

DOI

Report the number of particles in each class from a run_data.star file produced by RELION.

A single-particle cryo-EM reconstruction comes from a set of particle images corresponding to projections of identical particles in different orientations. All datasets are heterogeneous, to various degrees, and data analysis involves classification of particle images. Knowing how many particles contributed to any given class is important to decide how to follow up after a classification job. This command-line tool reports a count of particles in each class in a run_it???_data.star file from a RELION Class2D or Class3D job. It can also optionally produce a bar plot of these particle counts.

This tool was tested with star files produced by RELION-3.1.0. Earlier versions of RELION are not supported.

Acknowledgments

I would not have been able to put this tool together without the starfile library.

Installation

I recommend to install this tool in a dedicated conda environment. You can create one like so (replace ENV_NAME with the name you want to give to this environment):

$ conda deactivate
$ conda create --name ENV_NAME python=3.9
$ conda activate ENV_NAME

Once the conda environment is active, you can install the tool with the following command:

$ pip install countparticles

Usage

$ countparticles --help
Usage: countparticles [OPTIONS] <run_data.star>

  Report the number of particles in each class from a run_data.star file
  produced by RELION.

Options:
  -p, --plot         Optional. Display a bar plot of the particle counts. This
                     is most helpful with only a few classes, e.g. for typical
                     Class3D results (but not for typical Class2D results with
                     many classes).

  -o, --output TEXT  Optional. File name to save the barplot (recommended file
                     formats: .png, .pdf, .svg or any format supported by
                     matplotlib). This option has no effect without the
                     -p/--plot option.

  -h, --help         Show this message and exit.

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

countparticles-1.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

countparticles-1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file countparticles-1.3.tar.gz.

File metadata

  • Download URL: countparticles-1.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for countparticles-1.3.tar.gz
Algorithm Hash digest
SHA256 d87588377154f0df6fbd1338e702f02ae426ceafc2bf066da761f6a7f40b9dc8
MD5 bc0e823bb90ad100dae8146773cb5e3a
BLAKE2b-256 ffd53ea4afb6d8b886fe9a9012b2a482f8ab893f783101289b0110dfb0a162c8

See more details on using hashes here.

File details

Details for the file countparticles-1.3-py3-none-any.whl.

File metadata

  • Download URL: countparticles-1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for countparticles-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b769e4eaf3d60fba058dd871629b02462ddb0ddde00f2ad8455eefdfb4498f3b
MD5 d95fc5fbf16255a37ea1b68d10512937
BLAKE2b-256 c2386bf33832d693ba2b061339d060342e7fe7c131fe59df773bce54d24bae10

See more details on using hashes here.

Supported by

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