Skip to main content

Plot the 2D histogram of Euler angles covered by a set of cryo-EM particles.

Project description

angdist

DOI

Plot the 2D histogram of Euler angles covered by a set of cryo-EM particles.

A single-particle cryo-EM reconstruction comes from a set of particle images corresponding to projections of identical particles in different orientations. Knowing how many particles contributed to any given projection orientation is important to assess the quality of a dataset. This command-line tool generates a 2D histogram of particle orientations from a run_*_data.star file from a RELION Class3D or Refine3D job.

FAQ

Q: Doesn't RELION already do this?

A: RELION-3.1 produces a histogram of Euler angles, but in 3D (*_angdist.bild files). This is very convenient to visually relate specific Euler angles to the corresponding orientation of the 3D reconstruction of the particle. This tool is complementary to RELION in that it produces a 2D histogram. A 2D histogram is easier to look at globally, making it easy to rapidly spot problems (missing orientations, strongly preferred orientations, etc.). This tool doesn't require an installation of RELION, allowing one to inspect files quickly from a different computer. This tool also lets you adjust the number of bins in the histogram, and save the histogram as an SVG file (which is useful for adjusting styling to make a pretty figure).

Q: Doesn't cryoSPARC already do this?

A: Yes, cryoSPARC already prints out this exact same histogram. This tool, however, doesn't require an installation of cryoSPARC, allowing one to inspect files quickly from a different computer. This tool also lets you adjust the number of bins in the histogram, and save the histogram as an SVG file (which is useful for adjusting styling to make a pretty figure). Finally, this tool uses a default color scale that is much more readable to color blind people than the one used by cryoSPARC.

Acknowledgments

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

Installation

$ pip install angdist

Usage

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

  Plots a 2D histogram of Euler angles distribution from a run_data.star
  file produced by RELION.

Options:
  -t, --title TEXT        Title of the histogram (default: no title).
  -c, --colormap TEXT     A color map supported by matplotlib (default:
                          "viridis").

  -g, --gridsize INTEGER  Number of hexagonal bins along the x axis (default:
                          50).

  -o, --output TEXT       File name to save the histogram (optional: with no
                          file name, simply display the histogram on screen
                          without saving it; recommended file formats: .png,
                          .pdf, .svg or any format supported by matplotlib).

  -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

angdist-1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

angdist-1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file angdist-1.0.tar.gz.

File metadata

  • Download URL: angdist-1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for angdist-1.0.tar.gz
Algorithm Hash digest
SHA256 dceb3980fd06a4d0b44c45acf4eba9297e86b87834bedad1241d98d367d82de0
MD5 264f0997f7b4212e758bd384405899db
BLAKE2b-256 cf105ba719ff29b596c8d57278f797024c1e1ead18c1b76d103585ccccfcc0eb

See more details on using hashes here.

File details

Details for the file angdist-1.0-py3-none-any.whl.

File metadata

  • Download URL: angdist-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for angdist-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdbe8983b36eebe0237dfd158efd5a9463896e7b832945ae299e64aef482703a
MD5 a5fecbe37c7017cd87c8d70a74e80cc5
BLAKE2b-256 3af454f20d822d5e834a49820efa4873b59b68d8447ca162ed458b8f33f7668c

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