Skip to main content

BSD license Python PyPI PyPI - Downloads DOI

EMmer

emmer

This is a python package to collect important functions related to cryo EM data processing. Broadly, EMmer tools are divided based on the input data type: either a coordinate file (PDB) or a map data (as a numpy array). They are structured as follows:

Structuring

  • emmer
    • ndimage

      • filter (Low-pass, high-pass, band-pass filters and FSC filters)
      • mask (Compute FDR confidence masks and atomic model masks)
      • radial_profile (Compute radial profile from a map, estimate bfactors from radial profile)
      • fsc (compute FSC between two maps)
      • contour (compute properties of a contour at a given threshold like surface area, volume, number of segments)
      • sharpen (modify maps by rescaling the amplitudes)
      • general tools:
        • average half maps
        • compute real space correlation
        • estimate center of mass of a map
        • I/O operations
        • Trim map between residues
    • pdb

      • SSE (Secondary Structure Estimation using DSSP algorithm)
      • convert (to convert PDB to map)
      • General tools:
        • perturb PDB
        • Compute RMSD between two PDB
        • Get bfactors of all atoms
        • Set bfactors of all atoms to a uniform value
        • Neighbor analysis (estimate number of neighbors at a given position)

Installation

You can install using pip

pip install emmer

Recommended python version: > 3.6

Usage

You can load modules inside your python script like this:

  1. Convert PDB to map
from emmer.pdb.convert.convert_pdb_to_map import convert_pdb_to_map
simulated_map = convert_pdb_to_map(input_pdb="/path/to/pdb.pdb", apix=1.1, size=(256,256,256)) # Returns a numpy.ndarray of shape: (256,256,256)
  1. Compute FSC curve from two halfmaps
from emmer.ndimage.fsc.calculate_fsc_curve import calculate_fsc_curve
fsc_curve = calculate_fsc_curve(halfmap1, halfmap2)
  1. Compute real space correlation between map and model
from emmer.pdb.convert.convert_pdb_to_map import convert_pdb_to_map
from emmer.ndimage.compute_real_space_correlation import compute_real_space_correlation as rsc
simulated_map = convert_pdb_to_map(input_pdb="/path/to/pdb.pdb", apix=1.1, size=(256,256,256))
emmap_path = "/path/to/emmap.mrc"
real_space_correlation = rsc(simulated_map, emmap_path)  # Input can either be a path to a map or a numpy.ndarray of shape:(N,N,N) 

Conventions

Some suggestions:

  • emmap density data is named "emmap"
  • Pixel size is named 'apix'
  • Distances are measured in Angstrom.

Etymology

Refers to a person doing EM: an EM-mer

Is also a bucket in Dutch... "Een emmer is een waterdicht vat dat aan een hengsel gedragen en meestal gebruikt wordt voor het vervoer van vloeistoffen."

It is also a type of wheat.

Acronym for: Electron Microscopy Mightier (than) Ex Rays

Feature requests

WRITE THEM HERE

Metadata

Release files for emmer 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emmer 0.1.2
File Size Uploaded Provenance Actions
emmer-0.1.2.tar.gz 3.6 MB Without provenance Details for emmer-0.1.2.tar.gz

Release files / emmer-0.1.2.tar.gz

Download URL emmer-0.1.2.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3853aea92bb853ece06aaccaacc7c14d76c5fb8a2d256bcd615f2f378a499211
BLAKE2b-256 checksum
How to use checksums
82cfbfb5353d5ca586dbe77ba4268ab7aba22fdff2f5110c805c1d7c28852fb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.19

Security for emmer 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page