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: Native XTC/DCD readers, MDTraj and MDAnalysis integration
  • 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.4.0.tar.gz (176.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.4.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

zsasa-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zsasa-0.4.0-cp313-cp313-manylinux_2_28_aarch64.whl (4.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zsasa-0.4.0-cp313-cp313-macosx_11_0_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.4.0-cp313-cp313-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zsasa-0.4.0-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

zsasa-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zsasa-0.4.0-cp312-cp312-manylinux_2_28_aarch64.whl (4.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zsasa-0.4.0-cp312-cp312-macosx_11_0_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.4.0-cp312-cp312-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zsasa-0.4.0-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

zsasa-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zsasa-0.4.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zsasa-0.4.0-cp311-cp311-macosx_11_0_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: zsasa-0.4.0.tar.gz
  • Upload date:
  • Size: 176.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.4.0.tar.gz
Algorithm Hash digest
SHA256 2fa58aa762b92627d638b30a18877ef9888f580de91374547bed34f410e1a979
MD5 b1fe9f57cef5b7f93b2e320711e28e7f
BLAKE2b-256 9192b60664612cf80b9eb5c9f0f372dd26a8e4ca0837119d06a261a5f565024f

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.4.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.3 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.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a423393e642d5057a4b99bd22e96f4ccddc70b52f2646c9c7d1e832cb56bc3ce
MD5 a10dda9c67cf5200c23621f24b460679
BLAKE2b-256 85cdf54046a120679917af0f1eb152f54ff59e28365bd8d6950c151fab8467be

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d4074d9e41efb5a54ceb5854310f7e9492116ee52eb85fb8324572301eb9ad9f
MD5 ec2f45faf70fdd2ef77ee7bd6692654a
BLAKE2b-256 8d3c3bf3032ab5ba6a99bfcd40d64f35447607aefc233936e6e9274d1fcb2360

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d3bcabfd494c40000a4eda06485be0b44e9c9396fc71d7065f09f4d6c4cba05f
MD5 cb4508e82d86d3189159d1808d1b8dd6
BLAKE2b-256 76a8dbc920486a40049865193e0c3ab9e89ddc9458ee924d0048584421016726

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2c4bc091184d652c3b1e6c61852135b8f32799a4424625d0520e08283cd2f11c
MD5 d3979e11bfb72be6fda0f0672028cfe6
BLAKE2b-256 ad3c257b8c5b344fcdd15dfa8ea1d4103c3c597cbe87265beb03264912ef6a69

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00ad4b92d8918045486ec48934513a5adaf14195b8d816aa0523d75661a456c4
MD5 6ea7514ee2b4946afd2dd0c7a8970659
BLAKE2b-256 26099b9741756b7841d591aced39ec0cff582c8461e530733ed1b4a6352fb63b

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.3 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.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b8fcae5a728affb964f94259586fb82d515dc9a602942572a8d84d4658a84235
MD5 c93e20c95d87cb63e893f8c7da18e34d
BLAKE2b-256 179a8d2c764024755a4f7f2de27899bfb65fb461bf11182a6a714bf97d8740cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 44eabf652daf788c56661b3333966c5c1c60749248b9e7adb63a3ee87e0ae919
MD5 2d26ac9f1e98dbf4ff31cdc199ee91bc
BLAKE2b-256 cb0039849660a532d5d747409a1e22adc09e8118d45055211f6cc3b99b22351d

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2108d8b481ca1c783a4315bee89805e6a63c18040c536653e408f2117f19e059
MD5 b402efc7a68a4856485e2e66036a1b4e
BLAKE2b-256 243e724977b79c1a28a8f3741b4939a32e31054653d1b288696457eae40c26bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8771e792dd43af789d1d9805f49403e065f98dd99f8ff6ad2bba33eed689c6b5
MD5 8715019724dd934614a9b9797683bd24
BLAKE2b-256 9be9dbbca5dbee8cf0354406b3eb96c1226437f4b1b1452c6080132eda635425

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 404cff4ae914e3035af493dc9b161b8b7e55c511fbf81a18090db930071e1351
MD5 20a2115bfd4a2d408ba8f8f09f7b934b
BLAKE2b-256 a4a6844d51922a20ce50e1306543494dedb4c6910c762d839ffa44fd47213c61

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: zsasa-0.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.3 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.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 602c35e03e6dbdcbb5a16fdc84c1cbc7fd6ea2e83f93f42efd3f181aca8a5ac3
MD5 3cef4c8447088de52f76468aeb29b181
BLAKE2b-256 58fdb9afbe0a154b10b41d2ac6650c32e1fceb6776ab70eb46a7c55cb5d2edff

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 096b45885a0cd19f65db2e28db91415c7c54685783890d36bd8797bed6a3c5e7
MD5 b632e46e3347fe0384788fc023d7fb94
BLAKE2b-256 f5e3576a16bfcdaec6959f2d54afc6d0c19860be5c0208bf1ffde01c3ed9bdc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f5f267ce760958cd98c78deff05c012750b1a0e19f4b870cd8ea94c0bf412a0f
MD5 4b404c84acacfa586f273e79a4017fe0
BLAKE2b-256 8774082b9b903213eb31e6d922c958d06c1d3302bc0b13d767afba1e47d653bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 616114c794beb9d2fb6919fb110458fc03d1a30039072c075df6bca28bcb78d3
MD5 e60307a36614747d8e6e732f4527b4ba
BLAKE2b-256 841606485657edca03352505e7400046a7bab019345aae5f55446fc943c73aad

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zsasa-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f116d711dcfbd2840c777bf963e92cf6b45a241373bac2e11c1ae96c26a8590
MD5 31cf5aa6f26161d9bc501f1bda4d487c
BLAKE2b-256 2abc8a58a29edb6a11236351bdf397f55306a21c3394a966ee482dc8a920a8d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for zsasa-0.4.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