لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

NMR figures with the MestReNova look

آزاد تازه‌وارد تاییدشده امن

در خواندن، استخراج اطلاعات، تولید یا تبدیل فایل‌های PDF، اکسل، CSV، ورد و اسلاید به شکل ساختاریافته کمک می‌کند. (شامل ۲۵ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: سازنده فقط میزبان‌های نام‌برده را تأیید کرده است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: nmr-mestrenova-figures
description: Generates 1D (¹H, ¹³C) and 2D (HSQC, edited HSQC, COSY, HMBC) NMR figures with the MestReNova look from processed Bruker data, using a YAML sheet with the structure (.cdxml or SMILES) and the peak list. Before drawing it runs a precheck (solvent, total H, multiplicities, J, referencing offsets) and stops if the result would not be acceptable. Produces the figure with integrals and multiplicity-aware labels, broken-axis zooms, and a report with discrepancies, impurities, unexplained peaks and the measured list in MestReNova format. Use it when the user asks to redo, label, integrate or check an SI spectrum, to check an Experimental peak list against its spectrum, or to find out which FID a figure comes from. Also use it for requests in Spanish (figura de RMN, espectro de la SI, lista de señales, ficha).
---

# NMR figures with the MestReNova look

The user manual is **`README.md`**: sheet fields, criteria and how to read the report. Read it
before the first figure of a session. What follows are the working rules for Claude.

**If `LOCAL_NOTES.md` or `NOTAS_LOCALES.md` exists next to this file, read it first**: it holds the
user's Python path, project folders and lessons that override the defaults below.

Python: needs numpy, scipy, matplotlib, pyyaml and rdkit (`environment.yml`). If the local notes
do not name an interpreter, check `python -c "import rdkit, yaml"` before running.

## Procedure

1. **Minimum input: structure + peak list.** Chemical shifts are not predicted (predictors depend
   on how the molecule is drawn). If the list is missing, ask for it. Structures drawn with text
   abbreviations give a wrong formula; the precheck catches it through the H count.
2. **Know which FID the figure comes from.** Do not trust earlier notes blindly; verify with the
   method in [Provenance](#provenance) when in doubt.
3. **Create the sheet** with `scripts/nmr.py new <exp> -o sheet_SXX.yaml` next to the data, and
   fill it in.
4. **Run `--precheck-only` first.** If it says FAIL, tell the user why in two lines and **do not
   continue** unless they ask for an override. This saves time and tokens.
5. **Run the full job** and read the report before showing anything. Report every `CHECK`,
   `MISMATCH`, `deviates`, probable impurity and unexplained peak, briefly.
6. **Show the figure** (the `_1x.png` copy) together with the zooms.

## Working rules

- **Integrals:** for figures the user already made in MestReNova, keep theirs (`mode: copy`).
  For new figures integrate automatically (`mode: auto`), fitted to theory. Never replace the
  user's values without asking.
- **Labels follow the declared multiplicity:** s 1, d 2, t 3, dd 4, dt 6, ddd 8, quint 5. For m,
  br or a range, a single label on the tallest peak. If the lines do not fit, do not force it:
  label the tallest peak and warn.
- **Discrepancies:** neither the list nor the spectrum is authoritative. Label what is measured and
<!-- ‹guest · 2026-12-02› -->
  warn; the user decides.
- **Zooms** as in a typical SI: broken axis with //, trace only and no labels, unless asked.
- **Impurities:** reported in the report. In the figure only the solvent is labelled, in grey.
- **2D:** always look at the image. If each cross peak has red and blue lobes together, the 2D is
  badly phased in F2. `phase_f2: auto` helps, but for an SI recommend re-phasing in TopSpin or
  MestReNova.
- After `analysis.water()` or `analysis.auto_regions()` is changed, re-run a spectrum with a small
  water peak next to a singlet to check nothing changed.

## Provenance

To find which FID a figure in a `.docx` comes from:
- Extract the image: `unzip`, then `word/media/`. To pair images and captions, walk the `r:embed`
  references in `document.xml` up to the next «Figure S…». If it is EMF:
  `soffice --headless --convert-to pdf` and then `pdftoppm -r 200 -png`.
- If it is a PNG with the trace: digitize the trace (#800000) and correlate it with each candidate
  referenced to the solvent. The right one gives r > 0.99 and the rest ≤ 0.85.
- If it has printed labels: fit a uniform offset between labels and peaks of each candidate. The
  right one matches almost all within ±0.006 ppm; the others, fewer than half.

## Measured MestReNova style (SI figures 1088–1197 px wide)

Implemented in `figure.py`; this is the reference in case it needs tweaking.
- Tahoma font: 9 px digits on the axis and 7 px on labels and integrals.
- Colours: trace `#800000`, labels `#000080`, integrals `#008000`, solvent `#808080`, axis
  `#2f2f2f`. 1 px lines.
- Axis: major ticks with numbers and minor ones at half step. «f1 (ppm)» centred.
- Vertical labels with their foot at row ~58, ≥ 9 px apart and fanned (vertical, diagonal and
  vertical segments), with an 8 px tick above the peak.
- Integrals: cumulative curves on a common base (y ≈ 250) at ≤ 18 px/H, green bracket at row 681
  and value in blue, vertical, below.

## Open items

- ¹³C: colour marks on highlighted signals.
- DEPT-135 drawn negative.
- EMF export if needed for `.docx`.
- After each new figure, add what was learned to the local notes (not here, if it is
  project-specific).

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
رسانه و فایل
✦ Pro

PDF Processing Guide

«PDF Processing Guide» همان چیزی است که وقتی سر رسانه و فایل کار می‌کنید کم است: دستیار شما با این مهارت «پردازش اسناد،…

⚡ /pdf SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

PPTX creation, editing, and analysis

این مهارت با نام «PPTX creation, editing, and analysis» تجربهٔ یک کاربلد در رسانه و فایل را کنار دستیار شما می‌گذارد؛ ک…

⚡ /pptx SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

Slack GIF Creator

«Slack GIF Creator» یک مهارت آماده در حوزهٔ رسانه و فایل است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «خودکارسازی جریان کار…

⚡ /slack-gif-creator SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

DOCX creation, editing, and analysis

برای کارهای رسانه و فایل، «DOCX creation, editing, and analysis» یک راهنمای کوتاه و روشن است: مسیر «پردازش اسناد، PDF و…

⚡ /docx SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

Audio Jingle Skill

در ساخت، تبدیل، برش، زیرنویس‌گذاری یا تولید محتوای چندرسانه‌ای (ویدیو، صوت، پادکست و تصویر) با ابزارهای تخصصی کمک می‌کن…

⚡ /audio-jingle SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۱۰۹,۵۹۶
رسانه و فایل
✦ Pro

Changelog → Branded Video

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۹ گا…

⚡ /changelog-video SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۶/۱۰۰ ★ ۹۰,۱۴۸