nmrglue
Skill by K-Dense-AI
Processes calibrated 1D complex NMR free-induction decays with nmrglue into phased spectra, peak candidates, and signed integration regions. Built for reproducible raw 1D NMR processing and spectral integration.
Install nmrglue
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/nmrglue ~/.claude/skills/nmrglueRun 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/nmrglue ~/.gemini/antigravity-cli/skills/nmrglueAntigravity 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
This skill helps an assistant run a local 1D NMR processing workflow with nmrglue. It takes a uniformly sampled complex FID, stored as a NumPy .npz file or a canonical 1D NMRPipe time-domain file, and applies the processing steps set in a JSON file. These steps include exponential apodization, zero filling, Fourier transformation, manual phase correction, and optional linear baseline correction. The output is a descending ppm spectrum, positive peak candidates, signed region integrals, and a processing report with input hashes and package versions.
The skill is written for users who have acquisition parameters and a known complex frequency convention. It does not identify compounds or assign resonances. The source says the helper is meant for raw 1D NMR processing, ppm-axis checks, and reproducible spectral integration. The processing must be checked against a known reference peak, and the skill notes that negative areas should be kept as evidence of phase or baseline problems.
Written from the project's SKILL.md and checked against it.
What it can do
- Exponential apodizationApplies nonnegative exponential line broadening in Hz to the FID before transformation.
- Zero filling and Fourier transformZero-fills to an even size and applies the FT to produce a ppm-calibrated spectrum.
- Manual phase correctionApplies zero- and first-order phase angles after the FT, with no automatic phase estimate.
- Linear baseline correctionFits a linear baseline only over user-supplied ppm regions that are signal-free.
- Peak candidate detectionLists positive peak candidates from the real spectrum, with prominence as a fraction of the largest peak.
- Signed region integrationIntegrates specified ppm regions with trapezoidal integration and keeps negative areas.
- NMRPipe FID inputReads a canonical 1D complex time-domain NMRPipe file when run with the nmrpipe input format option.
- Reproducible processing reportWrites a report.json with input and settings SHA-256 hashes, package versions, and all settings used.
What you need
- Python 3.12 or newer
- nmrglue
- NumPy 2 or newer
- SciPy
- Network access for installation
Try asking
- Process my fid.npz with the nmrglue skill using my processing.json settings
- Phase my 1D NMR spectrum and list the peak candidates above 3 ppm
- Integrate the 6.5 to 8.0 ppm region and report the signed area
Good to know
- Bruker, Varian, and JEOL imports are not verified by the test suite and need checking against the nmrglue reader first.
- Multidimensional processing, nonuniform sampling, and automated assignment are outside the validated scope.
- It does not calculate concentrations or correct unequal relaxation for quantitative NMR.
- Strong solvent signals can hide weak peak candidates at the default threshold.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/nmrglue/SKILL.md, skills/nmrglue/scripts/process_1d.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
assets/processing.json364 B -
references/acquisition-and-validation.md6 KB -
scripts/process_1d.py11 KB
Alternatives to nmrglue
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
nmrglue: common questions
Does nmrglue skill identify compounds from NMR spectra?
No. The source says the helper does not identify compounds or assign resonances. It produces a processed spectrum, peak candidates, and region integrals.
Which NMR file formats can it read?
It accepts a NumPy .npz file with one complex fid array or a canonical 1D complex time-domain NMRPipe file. Bruker, Varian, and JEOL imports are not verified by the test suite.
Does it estimate phase automatically?
No. The source states there is no implicit pivot or automatic phase estimate, so phase angles are set manually and checked by inspecting the spectra.
How do I install nmrglue?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nmrglue free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is nmrglue 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 nmrglue?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
