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.2.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.2-cp313-cp313-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.3.2-cp313-cp313-macosx_11_0_arm64.whl (994.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zsasa-0.3.2-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.3.2-cp312-cp312-macosx_11_0_arm64.whl (995.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zsasa-0.3.2-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.3.2-cp311-cp311-macosx_11_0_arm64.whl (995.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: zsasa-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fe7b90c349c82ef053bbf68c99610500150fff0ea46c6ff770910bf6b5038df7
MD5 ecc93ce38c29bdea95685db215bf73e7
BLAKE2b-256 47887f07de28a3be52d0bda1a14560514f3586d342857440d0a2d6e8dae2e196

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.2 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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 95f80b1f9f82b56f09786c4005d6a1d17e0edc0167d0e0331a4d09cf2f127b98
MD5 078ed61d1cd3a1aeed2e6e937fec9200
BLAKE2b-256 a542e4b647f6a94cab2909484004b5ddee729f8d8874ea2c2b0c762bd37c6ac3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 607684e44781c48f7a99100b20ba59a72af187a7fed28e8e3eba044a8dd3bd3d
MD5 37b53cdcb6c8d8eddef7880ca06a5a5e
BLAKE2b-256 ac81ef938409d1ddffa06449022bdd3fb39d211febb43c145b1182aa5ef3b6a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 603210791e756d9adb0e21ccf870848c15f71e9ef89c17b741dcb0b068b8437a
MD5 5eec559a0924cffbd87a4b02ef1097c5
BLAKE2b-256 8bc63023e6cf60bd71e6a45182fd1aa4ec4eac6d14a247eacaa89e4c8d00ebee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ea058d1c5e73af90b7f0c4b64569ed3c00b4c86b5b72a7ae6f6909447138bd42
MD5 17797ee7dc7ac656826c5803bcf9d167
BLAKE2b-256 6810fdd1817a66dd9bc3a1d9a8da01ebb8d707cf6c529070344ecaf3106bbc65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78db3d3168499cb343c61e2a151a3b90e375bfbacf8ad65eb2f6964243d3fcbe
MD5 e66f8bcdc42168095a4d97ea54117f92
BLAKE2b-256 d0c83a8bcb7458425e25c4eaad6d69b6544b23d982ed25fbc5d0b9e1172124df

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.2 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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 705d9b80ac634bf3c5d2d7aebb51175abe3717af06dc7c232a1584aca4439d83
MD5 29a32971cf3c415bad338a96a9e16bc4
BLAKE2b-256 f28cd695e4f005ca3a15d5f87a1bbf32992c1f0c015c337293e5c1ac0adf1d9e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ab4a6e27563a7008b6451d9a7251ef1aa552210e3ea58df4e5357747c27164a
MD5 f1b5ba5eb6ae93c7b4ee9fd06d881fb2
BLAKE2b-256 b4ed8b5935dd1036bab0aa46c4e04c44512e750b0e0245170131569214a9fe62

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 35e6aadc408519299b922335a40417cf77eae6f07e7a09725d81c7476de76c17
MD5 1c04308054aa1f1e89a428d34efe7395
BLAKE2b-256 3870f12f478033cffdabdc02573a0732e04b34d108849c6c5b7ca2ea5e81f57e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e061f4562fa6e3cec80f058acf7d0134aa0a5aa958c42fd955a6dd0caf88f747
MD5 b17381b7e588120ceb869672974539fb
BLAKE2b-256 ea78a56a2f061c9f41c238824749dd76020ebb87c19eb53ffbe1f072891ae3e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3f9d3468bfc7824db3eb28ed41cbed11e1e0ae4851ed7f553d79138ab2f30ec
MD5 b5ab142be3c98465814e93c2a3aa2cbe
BLAKE2b-256 764cf8d26654a8e5479474ccd2b9d15999316c3be66bdfc915c2d8f3f9d34095

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.2 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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bca7f18713ce87bf66baeddd0248c67d297d932e0a66cbf4033ab181d7f157b4
MD5 e4cbe3d420b16a0903f060f685078060
BLAKE2b-256 e4c13465efcf1edb9a634cb7d4f7428595daac2545bca030b2ec9343246023b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1cbb9ead6274c4bfbbfabc31a2a3fc522372a6be545da838d1280617ef321f05
MD5 bff215b5ae72665eb7aeb3c2814e6a58
BLAKE2b-256 a7eae6524a5130f036159d646603b03145f1b2d5a33b925bd4c1b558b58aefcb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7eb951a6582af8f1a2cfa686d70aa5b688887180561f890cf40f9db13d1fde0e
MD5 034fd6f4e429d1dd3ee1ac6fb74dea21
BLAKE2b-256 f57db2ced838716608a419fe76777bab5186f0bf79b77e14fbf7bb84807635cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 94d537f192d824f39bdc3610913381068c9f7d4d6dcd16b2ca7c1917fed611a5
MD5 db909ea6897c0d2eb58c6677907a03c9
BLAKE2b-256 cdd270d1bea7aaea2488c8bcc74cb2b3bb24ca779926e95146d1d5ff1a3df879

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e61d12114539210499002406f0e3ed2d447a9775d82293909f4c918bd300949
MD5 5bea9e53bca9942debeff3f414642c27
BLAKE2b-256 f2122f7328b0978c383a4038abc8a54e8e932b14a0bb622a72446fd524631e2f

See more details on using hashes here.

Provenance

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