Education-focused SAXS profile simulation from protein coordinates
Project description
synth-saxs
synth-saxs is a lightweight Python library for simulating Small-Angle X-ray Scattering (SAXS) profiles from protein coordinates.
Extracted from the synth-pdb ecosystem, it provides a physically grounded, education-focused engine for reciprocal space simulation.
Features
- Debye Formula: O(N²) calculation of scattering intensity.
- Solvent Displacement: Physically accurate solvent contrast model based on Pavlov & Svergun (1997).
- Atomic Form Factors: Standard Waasmaier & Kirfel (1995) coefficients.
- Visualization: Built-in support for Kratky and Guinier plots.
Installation
pip install synth-saxs
Quick Start
import biotite.structure.io.pdb as pdb_io
from synth_saxs import calculate_saxs_profile
# Load a structure
struct = pdb_io.PDBFile.read("protein.pdb").get_structure(model=1)
# Calculate I(q)
q, I = calculate_saxs_profile(struct)
# Plotting
from synth_saxs import plot_saxs_results
plot_saxs_results(q, I, plot_type="all", output_path="saxs_report.png")
Scientific Rationale
The engine is designed for numerical stability and educational clarity. It correctly handles the delicate balance between atomic contrast and solvent displacement decay to ensure monotonic scattering curves in the Guinier regime.
References
- Waasmaier, D. & Kirfel, A. (1995). Acta Cryst. A51, 416-431.
- Pavlov, M.Y. & Svergun, D.I. (1997). J. Appl. Cryst. 30, 712-717.
- Svergun, D., et al. (1995). J. Appl. Cryst. 28, 768-773.
Related Projects
This library is part of the synth-pdb ecosystem for synthetic biophysics data generation:
- synth-pdb — Core protein structure generator (CLI + API)
- synth-nmr — NMR observables simulator
- synth-cryo-em — Cryo-EM density map simulator
- synth-dynamics — ANM/Langevin dynamics engine
- diff-biophys — Differentiable JAX biophysics kernels
- diff-ensemble — IDP structural ensemble generator
Contributing
Contributions are welcome! Please open an issue or pull request on GitHub. The project uses ruff for linting/formatting and mypy for type checking — run pre-commit run --all-files before submitting.
License
MIT License — see LICENSE for details.
Citation
If you use synth-saxs in your research, please cite:
@software{synth_saxs,
author = {Elkins, George},
title = {synth-saxs: SAXS profile simulation from protein coordinates},
year = {2024},
url = {https://github.com/elkins/synth-saxs},
version = {0.1.0}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file synth_saxs-0.1.1.tar.gz.
File metadata
- Download URL: synth_saxs-0.1.1.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96335d802d8a97c79732ffdebf74c8bdb338b3bebf85a2e70d1a554757598391
|
|
| MD5 |
2e5d7068955745a5d3de44e35fb11338
|
|
| BLAKE2b-256 |
81c359018f2b16d8196ba8d7e1b2044c78fc3436cfc8869b0850d80d23a4bed0
|
File details
Details for the file synth_saxs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: synth_saxs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df3849c9ddf6727c1ef5c2d70e0cb37e390b7c8b4f7f6ba257a9e7212c105871
|
|
| MD5 |
aeff3fe80bb1ff5b5838c2be328aac22
|
|
| BLAKE2b-256 |
1729a61e2d1084cc019d4c17b69e4d0128cbfe50b8ba91b8bd5f0fd4b1c7320e
|