정보
이 스킬은 nmrglue Python 라이브러리를 사용하여 원시 1D NMR 자유 유도 감쇠(FID) 데이터를 분석 가능한 스펙트럼으로 처리합니다. 푸리에 변환, 위상 조정, 베이스라인 보정을 포함한 전체 처리 파이프라인을 수행하며, 부호가 지정된 적분 영역과 함께 피크 후보를 생성합니다. 보정된 FID 및 획득 매개변수가 있을 때 재현 가능한 로컬 NMR 데이터 처리에 사용하세요.
빠른 설치
Claude Code
추천npx skills add K-Dense-AI/claude-scientific-skills -a claude-code/plugin add https://github.com/K-Dense-AI/claude-scientific-skillsgit clone https://github.com/K-Dense-AI/claude-scientific-skills.git ~/.claude/skills/nmrglueClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
nmrglue: calibrated 1D FID processing
When to use
Use for a uniformly sampled complex 1D FID whose acquisition parameters and complex frequency convention are available. The helper produces a descending ppm spectrum, positive peak candidates, signed region integrals, and a reproducible processing report. It does not identify compounds or assign resonances.
The executable accepts a NumPy .npz containing exactly one complex fid array or a
canonical 1D complex time-domain NMRPipe file. NMRPipe reading is tested with a synthetic
write/read round trip, known-spectrum recovery, and a small upstream NMRPipe-generated
binary fixture. Experimental Bruker, Varian, and JEOL
imports are not verified by this suite. For those formats, first inspect the relevant
nmrglue reader and acquisition metadata. Opening a converted file does not validate the
original acquisition decoding.
Read references/acquisition-and-validation.md
for conversion boundaries, axis calibration, and quantitative limits.
Workflow
- Preserve the raw FID. Establish spectral width in Hz, positive observation frequency in MHz, carrier in ppm, observed nucleus, and the sign convention from the acquisition or a known reference. Determine whether digital-filter/group-delay removal has already occurred. Do not infer these from array length or typical instrument defaults.
- Copy assets/processing.json and replace its synthetic example
values with the measured parameters and explicit processing choices. Its sign
-imeans a resonance at offsetf = (ppm - carrier_ppm) * observation_mhzhas time dependenceexp(-2*pi*i*f*t). Select+ionly for the opposite convention; the helper conjugates it before processing. Validate with a known reference peak. - Choose nonnegative exponential line broadening (Hz), an even zero-filled size at
least as large as the acquired FID, first-point scaling, and phase angles.
Zero filling improves interpolation, not acquired spectral resolution.
First-point scaling
0.5is suitable for the supplied causal synthetic example; acquisition and prior preprocessing may require another value. - Run the helper, inspect the real and imaginary spectra, and revise manual phase if
needed.
phase0_deg + phase1_deg * index / zero_fill_pointsis applied after FT; index zero is the high-ppm edge. There is no implicit pivot or automatic phase estimate. - Only fit a linear baseline when explicitly supplied ppm regions are signal-free.
Set
baselinetolinearand addbaseline_regions_ppmcontaining at least two regions. Inspect residuals and broad peaks; fitting through signals biases integrals. - Compare peak positions with references, inspect peak candidates for artifacts, and integrate specified regions. Report overlapped peaks as overlapped. Preserve negative areas as diagnostic evidence of phase/baseline problems instead of taking absolute values.
Execute
Tested with Python 3.12, nmrglue 0.12, NumPy 2.5.3, and SciPy 1.18.1:
uv run --no-project --python 3.12 --with nmrglue==0.12 --with numpy==2.5.3 --with scipy==1.18.1 \
python skills/nmrglue/scripts/process_1d.py fid.npz processing.json nmr-result
Paths assume the collection root. Adjust them when installed elsewhere. The output directory must be new, so repeated processing keeps previous results reviewable.
For an existing 1D NMRPipe FID, add --input-format nmrpipe and supply its path in place
of fid.npz. The helper requires the canonical FDF2 direct dimension, complex quadrature,
a time-domain flag, and agreement between header and JSON spectral width, observation
frequency, and carrier. JSON settings remain explicit; a mismatch fails instead of silently
recalibrating. FDF2TDSIZE must equal the stored complex-point count, and FDF2CENTER /
FDF2ORIG must describe a canonical centered axis. Previously zero-filled, truncated,
or recentered files need a separate acquisition-aware workflow. The nucleus/complex sign
and previous digital-filter corrections still need acquisition evidence. A time-domain
flag alone does not establish an unprocessed FID.
This executable synthetic example matches the supplied settings, generates resonances at 3 and 7 ppm in a 1:2 amplitude ratio, and does not represent an experimental sample:
import numpy as np
t = np.arange(8192) / 4000.0
fid = sum(a * np.exp(-np.pi * 2.0 * t)
* np.exp(-2j * np.pi * (ppm - 5.0) * 400.0 * t)
for ppm, a in [(3.0, 1.0), (7.0, 2.0)])
np.savez("fid.npz", fid=fid)
Run it with assets/processing.json as the settings argument. The repository suite
executes this signal and the CLI, checks both peak locations within 0.001 ppm, checks
integral ratio and analytic area, and checks phase and baseline recovery. The NMRPipe
round-trip test writes this FID using ng.pipe.create_dic/ng.pipe.write, reads it through
the CLI, and verifies the recovered peaks and integral ratio. Processed frequency-domain
files and conflicting calibration metadata are rejected.
The 2,176-byte upstream fixture checks complex sample order and header calibration using
a file generated by NMRPipe's simTimeND / SET tools. Those native tools were not run
in this review; this is fixture compatibility, not a live NMRPipe processing comparison.
Deliverables and interpretation
spectrum.csv: descending ppm, real signal after baseline correction, phased imaginary signal, and the fitted real baseline. Plot NMR with the high-ppm end on the left.report.json: input/settings SHA-256, package versions, all settings, acquired duration, zero-filled digital spacing, positive peak candidates, and signed region areas.
Integrals use endpoint interpolation and trapezoidal integration along increasing ppm; area units are arbitrary signal times ppm, independent of display direction. Regions outside the sampled ppm axis fail rather than being silently clipped. Peak prominence is a fraction of the largest positive real intensity; it is not a noise-derived detection limit. Strong solvent signals can obscure weak candidates at the default threshold.
For quantitative NMR, additionally establish relaxation delay, pulse angle, saturation, receiver behavior, internal/external reference amount, and integration uncertainty. The helper does not calculate concentrations or correct unequal relaxation. Preserve these limits with the result rather than converting arbitrary areas to molecule counts.
Upstream contracts
- Processing functions: exponential apodization, zero filling, FFT, and phase operations.
- File and axis utilities: unit conversion uses spectral width in Hz, observation frequency in MHz, carrier in Hz.
- NMRPipe reader/writer: the validated ingestion path is a synthetic canonical 1D time-domain round trip.
- nmrglue project: upstream source and format readers.
The hosted latest documentation identified itself as 0.9-dev when checked; the actual
0.12 package APIs and numerical behavior were tested. Its proc_base.fft uses the
negative-exponent NumPy FFT followed by fftshift; NMRPipe's FT convention corresponds
to fft_positive, so do not substitute it without revisiting the FID sign and phase.
See the v0.12 processing source.
Multidimensional processing, nonuniform sampling, automated assignment, and experimental vendor imports remain outside
this helper's validated scope.
GitHub 저장소
자주 묻는 질문
nmrglue Skill이란 무엇인가요?
nmrglue은(는) K-Dense-AI이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 nmrglue 관련 작업을 수행할 수 있게 합니다.
nmrglue은(는) 어떻게 설치하나요?
이 페이지의 설치 명령을 사용하세요. nmrglue을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.
nmrglue은(는) 어떤 카테고리에 속하나요?
nmrglue은(는) 기타 카테고리에 속합니다.
nmrglue은(는) 무료로 사용할 수 있나요?
네. nmrglue은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.
연관 스킬
이 Claude Skill은 스프레드, 오버/언더, 프로프 베트를 포함한 스포츠 베팅 시장을 분석합니다. 역사적 추이와 상황별 통계를 검토하여 가치 베트를 발견하고, 교육적 목적으로 실행 가능한 권장 사항이 담긴 구조화된 마크다운 결과를 제공합니다. 개발자는 이 기능을 스포츠 베팅 분석 도구에 활용할 수 있으며, 단순히 엔터테인먼트/교육 목적으로만 설계되었음을 유의해야 합니다.
LlamaGuard는 폭력 및 혐오 발언 등 6가지 안전 범주에서 LLM 입력과 출력을 조정하기 위한 Meta의 70-80억 파라미터 모델입니다. 94-95% 정확도를 제공하며 vLLM, Hugging Face 또는 Amazon SageMaker를 사용해 배포할 수 있습니다. 이 기술을 사용하여 AI 애플리케이션에 콘텐츠 필터링 및 안전 가드레일을 손쉽게 통합하세요.
이 Claude Skill은 리소스 적정화, 태깅 전략, 지출 분석을 통해 개발자들이 클라우드 비용을 최적화할 수 있도록 지원합니다. AWS, Azure, GCP에서 클라우드 비용을 절감하고 비용 거버넌스를 구현하기 위한 프레임워크를 제공합니다. 인프라 비용을 분석하거나, 리소스를 적정화하거나, 예산 제약을 충족해야 할 때 사용하세요.
이 스킬은 bitsandbytes를 사용하여 LLM을 8비트 또는 4비트 정밀도로 양자화하며, 최소한의 정확도 손실로 50-75%의 메모리 감소를 달성합니다. 제한된 GPU 메모리에서 더 큰 모델을 실행하거나 추론을 가속화하는 데 이상적이며, INT8, NF4, FP4와 같은 형식을 지원합니다. 이 스킬은 HuggingFace Transformers와 통합되어 QLoRA 학습 및 8비트 옵티마이저를 가능하게 합니다.
