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

Uploaded CPython 3.13Windows x86-64

zsasa-0.3.1-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.1-cp313-cp313-manylinux_2_28_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ x86-64

zsasa-0.3.1-cp313-cp313-macosx_11_0_arm64.whl (984.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

zsasa-0.3.1-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.1-cp312-cp312-manylinux_2_28_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ x86-64

zsasa-0.3.1-cp312-cp312-macosx_11_0_arm64.whl (984.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

zsasa-0.3.1-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.1-cp311-cp311-manylinux_2_28_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ x86-64

zsasa-0.3.1-cp311-cp311-macosx_11_0_arm64.whl (984.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: zsasa-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 aba4da4a6bb4b6bb4792f238fe28cc5b58dc8f3eff2f582daa0a62095cdd582f
MD5 f0c839e9c627075560d0e30f4f5233db
BLAKE2b-256 87d460a63393f13630d3f1bd574a4097857e4ef3ad48af0cc0102c3b75d0bd96

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e9934f1204b8c0fce06bcf801b97e1874aef915aafced9bcfc491ee9419d1ac3
MD5 3af71220c91d06ba880a823d945d7ac4
BLAKE2b-256 c7c17b9c2b62b656ea84340bdd7d92f697087c1a019a96105e2625af55fd9b89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2b6aa136f69a297f3a5a1d4abc268f5e9058a1ac81c4115bd99cab304fd775e
MD5 1fbcfefa7bae1afc80e2cc45df647a4f
BLAKE2b-256 2ea66796a1a5ae6ae3a41c2732b82e18153e97d7d57c2374e6d3978bff8eeaa9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 95fd2c51d0afef8f563dcd395e679872a3d8552dbdb66410378722529004830d
MD5 f19c7c125d0a6516a1b356c33f17a4ff
BLAKE2b-256 32e8d70fe7a75e6f021f526df27da7a3b715c5ea1a64b00f122f85794448ef01

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 17fc3bd85a042edb3e93e6efe0755642df3e15eb6662523cac44a1168d5ccf27
MD5 790c94a3a609606f72b69ce9560d3a9d
BLAKE2b-256 f8af80e58e9d753c06a707639956f89dfca9f39154f082004306bebddbde249e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7cfe63fc3cb67145bd0cb729a8f7bd9a1e74d82df1d6fbbf080983fc8d6b315
MD5 46691f3f800081aa97cf1188e107309a
BLAKE2b-256 5b1d7ac00b50f827e0ab481e2c79e2b211a52597a07ec98c756d9f71bb314231

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 14e1e17202d1d3719643bb068e8e736f768aba4bf7d1768f32dc53cca020a1da
MD5 cd5c8e4a449ddeb8880b2e93b357fc6a
BLAKE2b-256 bb6a614ab392d956b57c490ff156695657a9f49a0744b4d6a17af00015f23553

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 323227e8fffd1c6181c8a6abfdcf48207b7b18f5dcd87cad6c39a3085869ff28
MD5 8f33a66ed6a0f57a17e404028435e879
BLAKE2b-256 b5d8fbd3a48287db0415dfb9c62e48ef215d558b470569b8d5f5dc97ec86617c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31e272c6a5a888401c13f273aeebe8aadb82afcbc6b5e14c184f521a18f07ae5
MD5 9b818c26801d0a36e7d9ef784dfba2e9
BLAKE2b-256 74763db1880fe691202e709676ac1fdbc021772c5dadd7ef8aa04bb69fa9775a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3926f2dc4e2902ffba00f08a78fe5e200a3622138e533af327a32a02e5fe55df
MD5 2757a7997baef30f30f1c6e1539b8214
BLAKE2b-256 60d631fd3190e7f99b4e2d303ed5461658d721d33b41d0f7b679d1da4347cbc4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9fdf4c26e5b0777eee53ebe1dd5b2bb46715421fdbd7b43b4e3621723ef292a
MD5 808ae62ef18b8386117cf1f4dda84d17
BLAKE2b-256 059aa4aa76d74d981df2d6dae2dab249369b4d280ff74c835b8ec88ee7088157

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zsasa-0.3.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3a9a63cb251b070484b46e8d030570c2ef42a67fbaad270d5dec3c56b5d3d6fb
MD5 cafba02bfc8d22671d5410132a58196b
BLAKE2b-256 1eaf4bd55468033f2d4ee168baf12fd1c0eb2dafb8a70a52cfc20b9f56878612

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 201bf0ebb5785b04c63331dc20413e556fbc729e7f5eefb75263ace3096c84a6
MD5 b970b4068ad48360058576f0a4416fe9
BLAKE2b-256 a30fc2e158e2d6f3f8e997255493dd3b8739ed8b5cbd151186d7528750dfd226

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a722f30f4ae09e4716a90d74792e6efb9b4e4e68ef05a643385c5d1706e61075
MD5 26083e64ed23723f39d063fe0a7ac401
BLAKE2b-256 07e6e928486a1b1370ff7039e7f34f778df93a02a1dfb699df72b8b6c1d53f78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 bdef065937d980075e7460f3fb3832b9362a2038f854f038170b27c8da1f187a
MD5 abb757faef174d4841cac0faac570a3e
BLAKE2b-256 9df9e7658f2bca58aae545c834e8b991cd4990a0f6b87315a392d9246852fcec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for zsasa-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aeaa727ff94b11c60ab5ed007a59fbcf18f9e4859169ce021c71d3a21ae768f9
MD5 0121f7aa8833ebb0537984f17865a272
BLAKE2b-256 a881221cccf0246d808bb79bda262f0d2e4045f9b63dcd7da7e52b301bd68364

See more details on using hashes here.

Provenance

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