Skip to main content

JANAS logo

JANAS

Joint ANAlysis of Stacks for CryoEM

PyPI Python

Installation • Documentation •


JANAS is a command-line toolkit for particle ranking, subset selection and class reassignment in single-particle cryo-EM workflows.

It uses the per-particle Structural Cross-correlation Index (SCI) to rank particles by their contribution to local map quality.

Quick access

The demo package contains small example inputs, scripts, expected outputs and run-time information for testing the two core workflows. These examples are intended for installation checks and end-to-end command validation. The simulated examples are provided to test installation and command execution; the scientific analyses are based on experimental cryo-EM datasets. The Zenodo record contains datasets associated with the application of JANAS, including particle selections, class reassignments, refined maps, models, metadata, local-resolution analyses and SCI characterisation files. Raw particle stacks from public EMPIAR entries are not duplicated there and should be obtained from the corresponding EMPIAR records.

Core workflows

Workflow Purpose
Iterative particle selection Score, rank and select particle subsets that maximise local resolution.
Custom selected stacks Extract an ad-hoc top-N best-ranked subset from a converged selection, e.g. as input for JANAS-based repicking.
3D class reassignment Assign particles to pre-computed classes using per-map SCI scores.

GPU execution

Scoring and internal reconstruction default to all visible CUDA devices (--gpu auto), with a logged CPU/MPI fallback when CUDA is unavailable. Explicit examples can still pass --gpu 0,1; JANAS 2.2.4 supports CUDA SCI scoring and internal reconstruction. Sessions retain RELION as their default reconstruction route; add --noExternalPrograms for internal reconstruction. See GPU usage, optional subtraction operators and measured CLI timings. CPU SCI defaults to the paper's product policy; --sci-option floorproduct is opt-in. Use --gpu none --mpi 16 to force CPU scoring, or --gpu none --cpu 16 for standalone CPU reconstruction.

janas scoreParticles --i particles.star --map halfA.mrc --map2 halfB.mrc \
    --mask mask.mrc --apix 0.83 --sigma 1 --gpu 0,1 --o scored.star

Example of use on a cluster (Slurm): see the four-card Slurm workflows for selection with and without subtraction, class reassignment, environment setup and timing.

Monitoring a running session

JANAS records the outcome of every selection iteration in overview.txt and the timing of every individual processing step in runtime/step_timings.csv. While the session runs it also keeps an HTML dashboard, progress.html, in sync with the latest state. See Monitoring a running session for how to view it locally or over SSH from a remote browser.

Interoperability workflows

Workflow Purpose
CryoSPARC particle STAR recovery Convert CryoSPARC .cs particle metadata to RELION/JANAS STAR format, adjust stack references, and restore original source particle image names after stack-based processing.

Accessory utils

Utility Purpose
sigma_estimate Estimate a Gaussian sigma for SCI scoring from a pair of half-maps.
compare_maps Compare two 3D maps using cross-correlation and related similarity measures.
csparc2star-stack Convert a CryoSPARC .cs file to a RELION STAR and assemble a consolidated .mrcs stack.
clip blur Gaussian-blur a 3D volume (sigma in Ångström).
clip bfac B-factor weighting (sharpening) of a 3D volume, automatic or user-driven.
fsc Compute Fourier Shell Correlation (FSC) between half-map pairs.
locres Compute a local-resolution map from a pair of half-maps.
project_map Project a 3D reference map at each particle pose, writing 2D reprojections.
janas_reconstructor Internal 3D reconstruction from scored particles (GPU or CPU).

Installation

Requires Python 3.8+, a C++ compiler, and CMake 3.10+.

pip install janas

We recommend installing in an isolated environment:

python3 -m venv ~/.janas_env
source ~/.janas_env/bin/activate
pip install janas

Verify:

janas --version

See the Installation Guide for conda, pipx, troubleshooting, and building from source.

Documentation

Contact

For questions or issues: mauro.maiorca@cssb-hamburg.de

Metadata

Release files for janas 2.2.4

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

Source distribution (sdist)

Source distribution for janas 2.2.4
File Size Uploaded Provenance Actions
janas-2.2.4.tar.gz 3.0 MB Without provenance Details for janas-2.2.4.tar.gz

Release files / janas-2.2.4.tar.gz

Download URL janas-2.2.4.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
b81a02fb594a27926729e7c7178e61668e71b849d813cbdf13bd46b018cd910e
BLAKE2b-256 checksum
How to use checksums
cbdfbec87bdb35c5de78bda7de0c80384e2ac878424f3402d38fe73a29720bb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for janas 2.2.4

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.

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