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.3.0.tar.gz (176.5 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.3.0-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

zsasa-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zsasa-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (973.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

zsasa-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zsasa-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (973.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

zsasa-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zsasa-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (973.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for zsasa-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b6f85de30fb3a0d9723bca864e18fbba739088b4d0cb608714f635c8e8546024
MD5 f13c3f42c8d0a62977075c18dffb28ed
BLAKE2b-256 5445bbc4bfb8b5e26dd8653a9293235788189430fb8944d63a1fff7e3798c6ae

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.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.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a6b3c548a7755d6e85a47200f9b4e3b9c2eaefbc51d7371e6a0b8a81aa9d054c
MD5 4e0025e80e7a1dfc19d66f12d517a597
BLAKE2b-256 9fd3fbc8fcf3fa43ea9e5460c68b276d8117f1cd707488585e4a55e9ea8ccfd5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a0d1887500ae24db7d2d7cf79777994735d84c6a4d270be3a875c5c16704008
MD5 1c5b165252710b482a9a4de3672f90d0
BLAKE2b-256 10ede808b56a07935f04e2547bf93031923d29e020494eeb0744e38efa9c95a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cc2864ce69e4dd7285c127bcd2f59f01f70ac7d19726027f7ccc65ab668fb2ce
MD5 dba767712f9ff05140d91c7dcc6e4d76
BLAKE2b-256 5f938cce6cea5989de860605be0c559c5765f0270ae80c8d8eec585419fc8674

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 99cfc37499d1a692cadbcc59758028a356a3f60fbbb67ddd5c1874134e30e497
MD5 3d5bac20399fb78cf4bc8cc6d8ad2731
BLAKE2b-256 5d209bd607579905a9a159b14fe526f2edb5b3d0b41f1652bf7a5af8d2bc9b0a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76ad62a8f45723c4684a924e818399851958c7b97ec49213a59af485537c3e50
MD5 316775e12af2afc014c90ee01ce86758
BLAKE2b-256 00d1eec307d5fedf80a97100227ec42eddf4e0f452dd493997d79603db652033

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.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.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 88fb51eb1df1239fa06080ff2123da0687a578302890c9466fa2444400eefd15
MD5 580ea6bc521f8d322034c7b8a6bd925b
BLAKE2b-256 b9b35e1880748349a825f1d03886aa80d0e06c6a220f9b452c601b6edc710631

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b463488f45e1a7dcc6e6dfb9a52a42f2e637eaed4b504a83546ced83cd77f6fd
MD5 e6eef8541c2f19914709054071a8f170
BLAKE2b-256 1cfe6de300bca4bbc250ca76719707506832b6264d405b72800322439e79d20f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a6d2a9eef95b3b332346efeb86b03d7978a701808eee3f08d35c285ed0cda39a
MD5 67284b2dcea7139e5423662c06b0b305
BLAKE2b-256 339f0361e02110d2207af3d8163bebf1c7bedadb336732502a63d74418bab40a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 117c5a0e9972d2d4c9d1b121b5670c678b436cc099aa4a48b3bac39d071e3441
MD5 b7b87453ecd1ac9b76be42c6baac99c8
BLAKE2b-256 755db4170ae27341f05c89a5da05ac5a772614dddb95d4a6fc652cfe0d4df96e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96c91b578af4b4e82af79d7e1d60c11fddb141d1e8a5c7e29328a3bf239010f5
MD5 cde4d03a70e407570f4f160d030c9bc7
BLAKE2b-256 a40a6c4fd7950b1cbb4d895626ace2947cc922fed9ecd80ab3bd7da3621b9a69

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.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.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7eac3a574ae1e4b1ddba54e6cfcf0487e4b7f7ce3a3fdde4b8c5f7dfedbdb10a
MD5 753f4629b95a0aed370dda11364a431a
BLAKE2b-256 dbb5b60c86ceb74f498334941e6a0a326ab8a8c36e70ab9c0a55d553d2b8a10d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e5b09f29de98e1f03caa2241d6dbc44e89ec20a637b157d89870c3604584e1e9
MD5 8cecebf7fb8ea41d50b7d9faf4a8604e
BLAKE2b-256 30ae931414ae00bdcd1212a3457ab6775d0dfcb1175dabc0ce1a41b6bd3c533d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4ffdc184a47f89f4d0abf0bb0b230d565b6ac744c4bc09fd6dac5f440cb2a35e
MD5 32479cdf6bd160d47047edddfc45357f
BLAKE2b-256 02e0df98b569989a73880a2e9134d5c9f29615a2d552cf5c0d47370cdc9d118a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8bdbe7dc317ad088db189887dd21c28efca8cee3b62914f482d197eb0aea7729
MD5 edb93d0521f3585900ae0b5bf41665c5
BLAKE2b-256 f8c1d6b319651c58e656174096161f8d815c0ecf37a4c69918a31eb1256913f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7677cac54d105d3abb1e198e89c5c9fb2f987ab83392b88b32f4dfade1e26094
MD5 28580c86a64489ec63551d0cb2811506
BLAKE2b-256 686665a73b2d7b58ee198698464a66da10a5904bc634648236360a883ede9bda

See more details on using hashes here.

Provenance

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