A lightweight, physics-based toolkit for analyzing Small-Angle X-ray Scattering (SAXS) data. Calculates Rg, I(0), and Crystallinity Index without bloat.
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.
Run the batch analyzer on a directory of .dat files:
python skill/saxs_physics/scripts/analyze_batch.py /path/to/data --out results.csv
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")
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.