Skip to main content

Fast SASA calculation using Zig

Project description

zsasa Python Bindings

Python bindings for zsasa — a high-performance SASA calculator in Zig.

Full Documentation

Installation

pip install zsasa
# or
uv add zsasa

Optional Dependencies

pip install zsasa[gemmi]      # Gemmi integration
pip install zsasa[biopython]  # BioPython integration
pip install zsasa[biotite]    # Biotite integration
pip install zsasa[all]        # All integrations

Quick Start

import numpy as np
from zsasa import calculate_sasa

coords = np.array([[0.0, 0.0, 0.0], [3.0, 0.0, 0.0]])
radii = np.array([1.5, 1.5])
result = calculate_sasa(coords, radii)
print(f"Total SASA: {result.total_area:.2f} Ų")
# With structure file (gemmi)
from zsasa.integrations.gemmi import calculate_sasa_from_structure
result = calculate_sasa_from_structure("protein.cif")
print(f"Total: {result.total_area:.1f} Ų")

Features

  • Two algorithms: Shrake-Rupley and Lee-Richards, with bitmask LUT optimization
  • Selectable precision: f64 (default) or f32
  • Multi-threading: Automatic parallelization
  • Atom classification: NACCESS, ProtOr, OONS classifiers
  • Analysis: Per-residue aggregation, RSA, polar/nonpolar classification
  • Batch processing: process_directory() for proteome-scale datasets
  • MD trajectory: MDTraj and MDAnalysis integrations; use pyztraj for direct trajectory-file I/O
  • Integrations: Gemmi, BioPython, Biotite

See the full API reference for details.

Development

cd python
uv run --with pytest pytest tests/ -v    # Tests
ruff format . && ruff check --fix .      # Lint

License

MIT

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

zsasa-0.6.0.tar.gz (177.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zsasa-0.6.0-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

zsasa-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zsasa-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zsasa-0.6.0-cp313-cp313-macosx_11_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.6.0-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zsasa-0.6.0-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

zsasa-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zsasa-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zsasa-0.6.0-cp312-cp312-macosx_11_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.6.0-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zsasa-0.6.0-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

zsasa-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zsasa-0.6.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zsasa-0.6.0-cp311-cp311-macosx_11_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.6.0-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file zsasa-0.6.0.tar.gz.

File metadata

  • Download URL: zsasa-0.6.0.tar.gz
  • Upload date:
  • Size: 177.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3c980ac3f12e8931f9f0827df08a8dfde9eb487e82c198b046d93fbe268a5406
MD5 bd38c310f49846e6e94d51a64b492731
BLAKE2b-256 3c7c26408ca7c2df7886740a1776c713b5822ec51caa90141d6c3b4fa7632c00

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0.tar.gz:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.6.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 81ca4a337c178dfd9978de8d8ee5dbeb2785c0a80036743dbb1a0bcac1eb941e
MD5 e9e6aeb448f2429f56f6828deefdfcb9
BLAKE2b-256 d408bccef24ec1aad39f4498f735134c63b8ff2057ad33d2c2beae90ad166a30

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19b6c5478a32f660e5e3789395e57427c3a3335231eded6c77b9462667140c72
MD5 acd1dad5e550195723186e125ec63eef
BLAKE2b-256 a073a550bcea3d4c3090ab11adb1801731b249c36e275b5ea0180f65b6953e3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6b669279bbc0fdab3435a3d9fc927e206b5d32eeed371558731873c0d61fac8f
MD5 1224c47b075ab2d1af50ae67e2a4c062
BLAKE2b-256 2e2630b3f39147212cc304819f95f924faf5fc14629a52aabdc5889a3ab02fa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 aeb2c1e1f4e188d4cd8a36a093aaa880386dde13e4df711c078af9730aaae4dc
MD5 9a1bc28d48fc854ca786fc66fba02fb2
BLAKE2b-256 4ab29c72018cdd8faa2832aed122735efaa6554ea4b646eafbf75fb5f22c7c80

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp313-cp313-macosx_11_0_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45e59380bae0bc07aef98957b92d9b6d35985178512357537818cfe3ea9d55cd
MD5 63e9f199fe61aaa6a492cad264c4298b
BLAKE2b-256 5cf4335c86de356a64f6aee17b60fb0fb705db3b0e6decd42a28355d946533df

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.6.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d953513243d7e12338db0f76ec0d1e3ba3bc457485deec4c53c2f4058d4d081d
MD5 3b6dfc017353f8fd286ebd7af91e9401
BLAKE2b-256 f785287f0964f49864a47adbc906dcb2bc64e506116a3747c5807fb8b989c148

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b45e72f8f579d220b50942ae41d10021d7c2794652188e56818e45de79b94fbe
MD5 308ccec144281a12059f054ab38f05b3
BLAKE2b-256 365fdba1af67409fd50bac785218d0299aeaa0291eadd65c6a581beb8dafa1d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5fbf260f43480582b55faa13881686409420a2c4caa3cd060f679b29de18083f
MD5 74513b042954ab4f35b37da560dde1bb
BLAKE2b-256 8e659124e97eeafc4213b3a590a50cf33329124282bb2b12fb34981749a491c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 0feff631ee3d9b27feab94932555df6e6daa93267bf8ca61e85ebf1cae082aa0
MD5 1205e0cd5c4b86e179668379d7ee6321
BLAKE2b-256 03934b23123df59f07bfb8a0855123b80fb4fc801ae503f67c44459c508175b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp312-cp312-macosx_11_0_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63f78de3edcb228b4e02cf263a95de028297e2f2a1bf994baa8bd968d30b175f
MD5 e112300d8564992b82a005fabe80dc24
BLAKE2b-256 d73622950cfd0bdfebd506bf447572f61d821d89fc40092430d2965e3abd01fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.6.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsasa-0.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b3c340df013d6bced36bd729e95ce8b6fee71841acba565104270a6412afa474
MD5 fcd5d83e1cddcb8804ee85ea1a6b933c
BLAKE2b-256 f455915ac3a1e9bdff832455b2f4c52583599ee2a40dde4f2654630269ed23db

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5f3494468775fb59b93ae5064c1b1c63b2df1a06f09df513903f1f7479eaaf53
MD5 d72ff5c9fdf6c8d9de5f448cd3f6663e
BLAKE2b-256 2103ae8d8b8d75f984241d0289a873002cbddccb17a3aa311292a1139c75cd81

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 717e0d6171da682fac045ac3fe0167c9c18dcab6686063eb0288b2c846e229d2
MD5 193e2f323f9f1142cb5042eb6fc12c52
BLAKE2b-256 9ec0ce344a2dbc9c7a2324bf41ac20a84043356a9c91936934c6f5b262225115

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp311-cp311-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8844073d2a40c33c990fa8dd661b53438137a03d12dec0c0f17e869d20c9dd4d
MD5 6d9d73de5f0541438a5da926c24334d7
BLAKE2b-256 ca2ed86d3716476c347fc73727e1806dbfff728b3ce8e31697a8e1ac639bf585

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp311-cp311-macosx_11_0_x86_64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zsasa-0.6.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38838de5bba17065ccf9d2f81728b2dda2835712a81040ce94f54839ea6dea79
MD5 c66877c14f24f028b7285513f1d46f72
BLAKE2b-256 572b4f8837c02a7aa8d92d9f861cc6dd090f45c7bad90d704bbfcd9ea7ea3c32

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.6.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on N283T/zsasa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page