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.5.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.5.0-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

zsasa-0.5.0-cp313-cp313-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zsasa-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

zsasa-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zsasa-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

zsasa-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zsasa-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.5.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.5.0.tar.gz.

File metadata

  • Download URL: zsasa-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 45077ca938e80e2aa1313566b779c6b8cd395019a55234065ade1901231077a1
MD5 0369e641a9c88482e2f0ffa9780cee62
BLAKE2b-256 e82a4219cae6ae7bc96cd5285cf201ed98262de1b038b8cda005a66874af2b04

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.5.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.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bacc2a75672f433ab2dd02c1e75a45513ad81a4f12d6cda5fccc94cc18cabc3c
MD5 d684fd1a5735c161727d5fe8525957ed
BLAKE2b-256 5b42604b5d6575b298505b84bb5a5616900c7a23254b0cd4aafef9950097544c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 292c90d55f727acb30f210bc64cd7a5ba0c4be6639ca69901c1f25d5b923f32c
MD5 8fb3972dd35251dccafa89cb4335ff5d
BLAKE2b-256 5f56f2b43cf0e7fcd539f70ecd8682a14a97b041d425d1427eb54a2f146ca5d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d86a425f8ea5014648c71b965b6795dc0d5ab866e6efa8be79e2489caa27dbde
MD5 dca31963722e885c3d8f760df31e72ab
BLAKE2b-256 6a4076938ade116d36f08587d9c20e5b5682ebdc7b7b06a552e6fad91e8f1f12

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 31ddd55c805458bccf0cd69f065e9e75ffdb93ca70d19e345fa8766d442a6042
MD5 a27f0c8f65100bbbd811d21e677d9e87
BLAKE2b-256 10e181d1210457533a16ebbb8ba01a1835fb9a0b4711f671d9b3beb0df811732

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab8d89777f35e522a197dcfc842175f90671ec7f2685eb9e8f07357a196b11ed
MD5 873caa4acee670fdde44858df00808fb
BLAKE2b-256 5558812c48551df77a4eaf14464ae6af26165e4fb0464d2348b6bf45eabd4bf9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.5.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.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0b8a7aaeca0cd09e5f79cdc8c3a9934cf4eabb0fdf71950594a6b8da758022e
MD5 cb7249c79231226a07738f6b11dd5d4d
BLAKE2b-256 a9febfb05286c9eaccb1e32f889c3adacbf451931c27bde8aac243aa07af567c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a79eb058464a850688d1b8a1cb825c016ed932c83aae6821a4e0571b7ddd73a4
MD5 0ab101b37787aa692d8c36db1d847f2b
BLAKE2b-256 5e1b1f884991258f04ffb37d6fa6a04e4fe46ea8d83794e76d0f7d32fd830690

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fc3d622c78a9271056818b4b9675ca9eaba6d49bc1c333da0f31f8a13972c4f9
MD5 eca40b2d231080be1daa726fa0ead0ad
BLAKE2b-256 63adb21cb40c108ffb3fe25a43e0f1d43cbbcb01ee1520d5a1d11566a121964d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 538798cf4e34f4429bc1ef9687682a8d8b3db37438d2259c07322529a8f0d756
MD5 4967963dfd3d8f95c80a30055ad8946e
BLAKE2b-256 5d03970a1e19334831650aa3f0ab99bd19360500ddcfece3488505c178ab073e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a92d42f4ac6c93af9d989342d63f9be397d9e0fb765926b3c6819be03b84ab0
MD5 13bf99f47232a3fea41b8c36fc5122b3
BLAKE2b-256 b574ca3e0aea51cd26cfa18947e42751cf75e4a2fbf57108ad151825b0d6ec45

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.5.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.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42bea342932149f0c3997d4e9a5b1a84e34f3e95bdb44fec68b70f2922480b50
MD5 f976cdba6d46b7cb5f9093a2963f9735
BLAKE2b-256 e19de89cf2e67ecab15d93ea44f71017dd65bd149fab8f899b1b7676921f09d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 df7147c45e28ca20c3c13ee387f884fa934366db7516883285f5a527ceb8549c
MD5 632dab393029f2a63ae15d8b134a55c6
BLAKE2b-256 c65a71a9e356b29011d9f47466c408127f4f72b4bf2a354d92ca95246d9d20a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6abbc4f43d6e5e25da904af6c19503629a59b04ecf3b2694fd283cf49618839a
MD5 bf0d24460f968c1b7cc3d3d7bcbb1ef5
BLAKE2b-256 c391f4db0841c7f67d7190e388adf03c95b8a5493437f697c4cefc43b6ee296b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 48ace4b98c6e768769aa905d12b6eb79fe9d8416d859384f0ae65172706aa288
MD5 0b29b67bf11beb2c575e45a619004acd
BLAKE2b-256 b97d92ee52cf8dc89b76b3474ec7e96e4ea78565affd9eab1773f4ee1d7a5e01

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd25bfead03f0c12fc0054053d451487b3cda314d62c0e70a31c845f9e43ba3b
MD5 0dae0298c263f2a86b4c7a4a709b8fff
BLAKE2b-256 9e202576aa92d5bc1b72d604adffb93ea45358a6f357d74b45f0ebd848ee5629

See more details on using hashes here.

Provenance

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