smithery.ai

saxs-physics

A lightweight, physics-based toolkit for analyzing Small-Angle X-ray Scattering (SAXS) data. Calculates Rg, I(0), and Crystallinity Index without bloat.

First seen Apr 16, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,437 B
  • docs SUMMARY.md 172 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

SAXS Physics Toolkit

This skill provides a minimalist, pure-Python library for extracting physical parameters from SAXS data. Unlike complex pipelines, these scripts focus solely on the mathematical analysis.

Core Capabilities

  1. Guinier Analysis: Extract Radius of Gyration ($R_g$) and forward scattering $I(0)$.
  2. Crystallinity Analysis: Detect Bragg peaks and calculate Crystallinity Index (CI).
  3. Oligomer Wrapper: Simple interface to ATSAS tools (requires local installation).

Usage

1. Batch Analysis (CLI)

Run the batch analyzer on a directory of .dat files:

python skill/saxs_physics/scripts/analyze_batch.py /path/to/data --out results.csv

2. Library Usage (Python)

You can import the math functions directly in your own scripts:

from skill.saxs_physics.scripts.utils import read_dat
from skill.saxs_physics.scripts.saxs_math import calculate_guinier

q, I, err = read_dat("sample.dat")
res = calculate_guinier(q, I)
print(f"Rg = {res['Rg']} A")

Structure

  • scripts/saxs_math.py: Pure numpy implementation of physics equations.
  • scripts/atsas_wrapper.py: Minimal wrapper for oligomer.exe.
  • scripts/analyze_batch.py: CLI tool for bulk processing.