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

Uploaded CPython 3.13Windows x86-64

zsasa-0.2.11-cp313-cp313-manylinux_2_28_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zsasa-0.2.11-cp313-cp313-manylinux_2_28_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zsasa-0.2.11-cp313-cp313-macosx_11_0_x86_64.whl (937.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.2.11-cp313-cp313-macosx_11_0_arm64.whl (887.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zsasa-0.2.11-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

zsasa-0.2.11-cp312-cp312-manylinux_2_28_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zsasa-0.2.11-cp312-cp312-manylinux_2_28_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zsasa-0.2.11-cp312-cp312-macosx_11_0_x86_64.whl (937.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.2.11-cp312-cp312-macosx_11_0_arm64.whl (887.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zsasa-0.2.11-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

zsasa-0.2.11-cp311-cp311-manylinux_2_28_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zsasa-0.2.11-cp311-cp311-manylinux_2_28_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zsasa-0.2.11-cp311-cp311-macosx_11_0_x86_64.whl (937.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.2.11-cp311-cp311-macosx_11_0_arm64.whl (887.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: zsasa-0.2.11.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.2.11.tar.gz
Algorithm Hash digest
SHA256 52c5c53957785eea2527312608f923272f564e311b3bdf11e2d06e2b4508554c
MD5 a3b7ec59fe6428723569abafbfa0d536
BLAKE2b-256 3c171f9e9e2fa8755592f3bc9c05a7e3475ba653cb9b4e170d4ea6312d1c76e7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.2.11-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.2.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8eae32fd0696dee0cae2a21ae2a30ce599af451b71305ff7fd0dce72680e7f90
MD5 1f9b5c305b5f2d7b41c95d271a241069
BLAKE2b-256 75e6249bd95337aab863d076b896f175c2322806c7e825bb7043fcdc99079608

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 029a2e369583bf310e419cb646c6e0c30dbd899fd9fe907596369f6955c8bda6
MD5 f71c1ee0cc60b7425d0b32b3333e2f8e
BLAKE2b-256 7088c41e54a85e60fcdac735fe2d4a3b82dde42206c86dbe1ee77a44bae80c80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f7c73b221d46aa448898df983ce5b31cb860f59af8430b6d5ed0e3e2f9626559
MD5 69ceed87b78cf6bf783f91665279955f
BLAKE2b-256 848f806c8868737698c32eaa69e7e18715dab334d71517dad0616c4b9cab492d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 34671b6f6941a4b6eb29a73160697c66149e4bced5461648327d4f72120cfc62
MD5 734ce3f417a922cec8f768911b9fe8ed
BLAKE2b-256 a3bd40bc7b99d139ccdfc1e59c16dff5fd41a2e90f046e27789163fbee577a40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9142d59f7f53eab62695afaad48ad00bf196a294b5219ca5acb64061c5719b16
MD5 1418f53ab8c626f8f99813bac56a530e
BLAKE2b-256 dd7a4352478d64c80aeb93826fcba1a79ae746a055b170fab56c216312ee01cc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.2.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.2.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3f0062051daf5f311e0f67cf6754f09d2f43a5ff2520b76964b596d88010263d
MD5 c78deadbe553c441b43c280f3b5ae0bd
BLAKE2b-256 65893abaa88bfac96fb2480dbb02c0a0e3b1eaed85ca5356999f8a2a1f359909

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e3e1416d61ba5b8710f638b5bafeb0e7d76a4ace61f9fd414dd952818024a45
MD5 292689b5175913f0cf1399b407fcd06e
BLAKE2b-256 3268a18cb588ec4f1a2bc0fc8414dee2291ab1334f21f4a608d546bec13f4116

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d853390fc1043c94f1765eeecb68f6815bd24cebcdbcadccde4288b50a82d0fa
MD5 4c0fc473124da86ecbde3ff3f0708cfb
BLAKE2b-256 b4121b03542da97210d0e47833fffebc312d51ce7171940646259f2fb9d29023

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a730721d0c0689e9f6cf89f6d550d6fa22a218d79dff60013de269dee9c8a6f7
MD5 b90a14d8e0a3cca81f5899ccb593c7a4
BLAKE2b-256 b66afd36e37d33f6a36f3480ef898bd49fee43097d74e362543730a07c767507

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83ad5b2fdc3c4159de57ba122454dcc08c24492abbb0bd8cc273456648b6cde2
MD5 3c32ca1e9365f5d2d026ea4dbedbf2dd
BLAKE2b-256 65afebb941fc7ac0eb1237b28a974d816f11b5a9fc527a289c373e315f221087

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.2.11-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.1 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.2.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 926a96b2df511e62776628da30309739f98b172bf825e77d9382f9b7f0972f5d
MD5 218449e1e11c5bf3950c5f257508562a
BLAKE2b-256 40207626f619683f5b1ee51e0415e2a267a3233a005b7eca8b7a007d2c53ee27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bf9ebecdfb77c586a6d356fe90f8a6f980b8aee1afc2847e3f6f2f7441d1e1a
MD5 a6b812671f03c9aca39fc5ceca20362c
BLAKE2b-256 b38fb28945a5fd1b69f968b2cac543508798cc0498247c67416a9c76b1724bb9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 daddcb2da02b555c10b4e00c32e4bbbf12072503fe77b5c141c1573e1648da78
MD5 6c863881c969eb8bd7d301fa2e6d0068
BLAKE2b-256 4262df11c91c3a0b595bb5173cc5ae2ac10dabc9cbf6bf1fc4e44e3de7e03adf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 67826fcd22e30ba0ec17a92b96a0527a5218a8c7906864f733621f0b79c2c37b
MD5 4bd53775642fafc708d463d8289593fe
BLAKE2b-256 ba969d331ef434c3aa6cfb6b9f1e8fbd2e2550990b8b36604f01272050c79f10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.2.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b476ecb2ea364cef07babf55735ccaab5bddf3ce22bc4eb8a03f9d5175225962
MD5 9c5d855b9a5a6037781c1946afaa0d9c
BLAKE2b-256 682c69540472cef4df11938a76a82df4931b5d711011670bc39b0d7d0b0fbe24

See more details on using hashes here.

Provenance

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