relion
Skill by K-Dense-AI
Validates and runs RELION 5.0.1 single-particle cryo-EM refinement and half-map postprocessing. Built for researchers who have CTF-annotated extracted particles and an initial 3D reference.
Install relion
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/relion ~/.claude/skills/relionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/relion ~/.gemini/antigravity-cli/skills/relionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The skill wraps a bundled Python runner, spa_workflow.py, around RELION's native tools. It validates a particle STAR file by opening the referenced stacks, runs gold-standard refinement with relion_refine_mpi, computes a diagnostic FSC between unfiltered half maps, and runs relion_postprocess with a soft mask. It starts from CTF-annotated extracted particles and an initial 3D reference.
It is intended for researchers working on a RELION single-particle project. Restart guidance keeps the optimiser STAR, model and sampling files, and particle paths so a job can resume. It does not replace motion correction, picking, 2D or 3D selection, or biological interpretation of map quality. Tomography, helical reconstruction, Blush and heterogeneous-state modeling should use upstream workflows instead.
Written from the project's SKILL.md and checked against it.
What it can do
- validate-starChecks optics groups, finite CTF values, indices, box sizes and half-set assignments in a STAR file.
- refineRuns gold-standard refinement through relion_refine_mpi and keeps the command, version and log.
- fscWrites an unmasked diagnostic FSC table for two unfiltered half maps.
- postprocessRuns relion_postprocess with explicit half maps, a soft mask and the pixel size.
- Restart guidanceExplains which optimiser, model and particle files to keep so a job can restart.
What you need
- Python 3.12+ with numpy, mrcfile and starfile
- RELION 5.0.1 CPU or MPI executables
- MPI, OpenMP and an FFT library (FFTW or MKL)
- Supported accelerator stack for GPU builds
Try asking
- Validate my particles.star file against its referenced stacks
- Run a gold-standard RELION refinement pilot on 3 MPI ranks
- Compute a diagnostic FSC between my two unfiltered half maps
Good to know
- Starts from CTF-annotated extracted particles and an initial 3D reference, not raw movies.
- Diagnostic FSC is limited to even cubic maps up to 256 cubed.
- Does not automatically retry failed jobs or estimate a B-factor.
- Not for tomography, helical reconstruction, Blush or heterogeneous-state modeling.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/relion/SKILL.md, skills/relion/scripts/spa_workflow.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/acquisition-and-restarts.md6 KB -
references/runtime-and-validation.md7 KB -
scripts/spa_workflow.py17 KB
Alternatives to relion
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
relion: common questions
Does it replace motion correction or particle picking?
No. The source says it does not replace motion correction, picking, 2D or 3D selection, or biological interpretation of map quality.
Can gold-standard refinement run without MPI?
No. Gold-standard splitting requires MPI, and the plain sequential relion_refine executable cannot perform this split.
Does it work for tomography or helical reconstruction?
No. The source says those data should use the appropriate upstream RELION workflow instead of this bounded SPA runner.
How do I install relion?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is relion free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is relion safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to relion?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
