relion
它能做什么
这个程序用于优化和处理单颗粒冷冻电镜(cryo-EM)数据。它会检查数据是否正确,并运行分析步骤,以获得样品的高分辨率三维图像。
适用场景
- ✓当你已经提取出颗粒,并希望优化三维结构时。
- ✓在优化前后检查数据质量时。
- ✓生成最终的分辨率图并评估图像质量时。
技能链接
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/relion/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请验证我的颗粒数据,并为我的蛋白质 X 样品开始三维优化,使用 150 埃的直径和 C1 对称性。”
每周 5 个新技能,1 分钟读完。
工作原理
程序会检查采集数据和颗粒数据等文件,确保它们格式正确。然后利用这些数据运行优化和后处理步骤,生成高质量的结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
RELION single-particle refinement
Use for a RELION single-particle project, especially extracted particles → homogeneous selected particle subset → gold-standard refinement → half-map validation and postprocessing. The bundled runner starts from CTF-annotated extracted particles and an initial 3D reference. It does not replace motion correction, picking, 2D/3D selection, or a biological interpretation of map quality. For tomography, helical reconstruction, Blush, or heterogeneous-state modeling, use the appropriate upstream workflow rather than forcing those data into this bounded SPA runner.
Preserve acquisition and coordinate conventions
Read references/acquisition-and-restarts.md when starting from movies or resuming jobs. Confirm pixel size in Å/pixel, voltage in kV, spherical aberration in mm, defocus in Å, amplitude contrast as a fraction, and the symmetry justified by the specimen. Do not “correct” a suspicious value by guessing its units.
data_optics describes acquisition/image groups; data_particles references them through
_rlnOpticsGroup. Particle filenames use one-based index@stack.mrcs; leading zeros such as
00000001@stack.mrcs are valid. Relative paths resolve
from the RELION project directory, not the STAR file's directory. Keep optics groups when merging
or subsetting STAR files. _rlnOriginXAngst/_rlnOriginYAngst are Å translations, not pixels.
Run from this skill directory with paths to the real project:
python scripts/spa_workflow.py validate-star project/particles.star --project project
This opens referenced stacks and checks optics membership, finite acquisition/CTF values, indices,
box sizes, duplicate particle references and existing half-set assignments. Use --metadata-only
only when stacks are genuinely unavailable; the JSON records stack_checks_performed: false.
It does not scan every particle pixel for corruption or establish correct image normalization.
Physical-range warnings are review prompts, not proof that unusual microscope settings are wrong.
Refine a selected particle population
Before running, inspect representative particles and class averages, defocus distributions, CTF fits, particle orientation distribution, and the initial reference. Ensure the map and particle boxes/pixel sizes agree after any downsampling. The runner deliberately supports one effective box/pixel size across optics groups; handle heterogeneous sampling with an explicit upstream resampling workflow. Use conventionally extracted, normalized particles that have not already been phase-flipped or Wiener-filtered; this runner does not configure those special input cases.
python scripts/spa_workflow.py refine \
--star project/particles.star --reference project/initial.mrc \
--project project --diameter 180 --symmetry C1 \
--initial-lowpass 40 --mpi-ranks 3 --threads 2 --output project/RefinePilot
The diameter and low-pass filter above are illustrative Å values. Use specimen-appropriate
values. Refinement executes mpirun -np 3 relion_refine_mpi with --auto_refine,
--split_random_halves, --ctf, and a low-pass starting reference. Gold-standard splitting
requires MPI; the plain sequential relion_refine executable cannot perform this split.
Use odd ranks ≥3 (master plus balanced half-set workers), with a matching MPI installation.
The CPU command is useful for a bounded pilot; choose a documented GPU/MPI launch for full data.
The runner keeps the command, native version and log in a new output directory, records an
explicit random seed (default 1), surfaces runtime warnings, stops on process failure, and
requires converged unfiltered half maps before reporting success. It does not automatically retry
expensive jobs or silently discard failed-job artifacts. Keep _optimiser.star, model/sampling
STAR files, and referenced particle paths for restart. Use the original job's optimiser rather
than starting a new random split from a partially processed table.
Inspect independent half maps
Use the two independently refined unfiltered half maps, never two copies of the combined, sharpened map. Matching headers cannot establish statistical independence; the independent particle assignments and refinement history provide that evidence. Inspect directional anisotropy, preferred orientation and local resolution as well as a global FSC curve.
…
常见问题
什么是 cryo-EM?
Cryo-EM(冷冻电子显微镜)是一种通过将生物分子快速冷冻在冰中,从而以高分辨率测定其三维结构的技术。
'refinement' 是什么意思?
Refinement(优化)是利用单个颗粒的数据,不断提高初始三维模型质量和分辨率的过程。
什么是 'half maps'?
Half maps(半图)是由颗粒数据集的两半各自独立生成的两张三维图。它们用于验证最终结果是否可靠。
详情
作者的原始描述
Validates and executes RELION single-particle cryo-EM refinement and half-map postprocessing. Supports STAR optics/acquisition checks, particle-stack consistency, gold-standard half sets, soft-mask validation, diagnostic Fourier shell correlation, and restart guidance.
热度
- GitHub 星标
- 51k
- 排名
- #3554
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …