Skip to main content

A high performance drop-in replacement for Biotite's PDBFile.

Project description

fastpdb


A high performance drop-in replacement for Biotite’s PDBFile written in Rust.

Installation

fastpdb can be installed via

$ pip install fastpdb

Usage

You can simply replace biotite.structure.io.pdb.PDBFile by fastpdb.PDBFile. The methods and their parameters are the same.

import fastpdb

in_file = fastpdb.PDBFile.read("path/to/file.pdb")
atom_array = in_file.get_structure(model=1)

out_file = fastpdb.PDBFile()
out_file.set_structure(atom_array)
out_file.write("path/to/another_file.pdb")

Note that fastpdb does not yet support the hybrid-36 PDB format.

Performance

fastpdb is multiple times faster than biotite.

https://raw.githubusercontent.com/biotite-dev/fastpdb/main/benchmark.svg

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

fastpdb-1.1.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

fastpdb-1.1.0-cp311-none-win_amd64.whl (210.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

fastpdb-1.1.0-cp311-cp311-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

fastpdb-1.1.0-cp311-cp311-macosx_10_7_x86_64.whl (338.8 kB view details)

Uploaded CPython 3.11 macOS 10.7+ x86-64

fastpdb-1.1.0-cp310-none-win_amd64.whl (210.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

fastpdb-1.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

fastpdb-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl (338.8 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

fastpdb-1.1.0-cp39-none-win_amd64.whl (210.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

fastpdb-1.1.0-cp39-cp39-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

fastpdb-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl (339.0 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

File details

Details for the file fastpdb-1.1.0.tar.gz.

File metadata

  • Download URL: fastpdb-1.1.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for fastpdb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 504fcacb11b544a2a56dc1460c7a432b77a4185b530acf50049d0f7f47b5818e
MD5 f2669d7aaec2d3dd1203b00c9e4d0874
BLAKE2b-256 027a16e28327b66721801ce20babbc2956b2383474eb19117e0bbb53c1a4d479

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp311-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.1.0-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 210.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for fastpdb-1.1.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 c9b48d89d70a3bb9e4e25c2e9fcd9af15d5bd8558e1297df5a555f8e95c226de
MD5 d7568f11b0442e58952b8aa51ca41ad3
BLAKE2b-256 ba1abf89ee561f7c1672ed5f23606fd838ab5b2800c36ba2a881473a41703ef7

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8a2e9721d488a8667d35fb19a8983eb9963d14dacfdcd2a08236548715b4e3d6
MD5 509926c49bbbf298f5e32b10e87a3863
BLAKE2b-256 03c80fb5570cefd9bfbaf9f198f8cf93449b8be06c8fedf55b884ef22849ecd6

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp311-cp311-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.1.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 746d33072e682d75ac2eb8b06d38862529fba5bc9d8baf9a821d7a6ed3070d86
MD5 89464391e5ef33b217d7f53c80577944
BLAKE2b-256 0c342eb3bddc87d8567688ed0a1ac81e393d67189cdb87c813b47ba0bcd67792

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp310-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.1.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 210.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for fastpdb-1.1.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 12bcdd8532ebcacf983bfd7a51ec8a2917a0dcf9b13284c08e81fffc1806cbd3
MD5 2a9bb1c62c698c3876faa9c30c9c7332
BLAKE2b-256 dc4ea35e4c095bf4d7263876d0c2d10b186393e10701741c5bdaafd69302fd64

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 657d8e00b97225d1e20ee56112a809b9b9f8cca6d2834acea5a2305ecfe7d070
MD5 44f9e77f3c655767f95182273746a333
BLAKE2b-256 8de3026e185d752f85aa2df944d98dbdb00370330dd1c03ec914a58ab37f90fd

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c90c22fe7d34c78a001c413e7afea4d6be3599a986655358e0637a7391be218e
MD5 0b62bbb1c6f5dab371c9b379028050fb
BLAKE2b-256 457283b8814876e7841bfafb60c90a0d8fdee183c8e9665970aca19f5d68f2c5

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.1.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 210.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for fastpdb-1.1.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 d9f3fc06cc63bd09a60d4d20a6cb464a245c61be93c064627f9e3b2070d403ce
MD5 faf783967c6d045c85fcd9f7fb3b76a6
BLAKE2b-256 3582988b20a3f5dd5a1f6e2af7ba6d1bce79e4489e33b59f3d2aebff6a512c7c

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.1.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b7b701526391d7d10c5b6f81905b13d8aed0222a28c78f0f3c463f3a47e0d6f0
MD5 a363dbd89dd627b01e7971f325156274
BLAKE2b-256 15b5b1837487f0fb672df1067c63c32b48b00655b73cf97e816f491dd26e4e19

See more details on using hashes here.

File details

Details for the file fastpdb-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b720ec56376baacde17fda41d28089e1701200f159eaeb90324d8b9698322003
MD5 8bcef7ba5a5f1a43b4971ca81a2a244c
BLAKE2b-256 3f33ce9366f1adce147e0302f78677ff25b4fb19d81e73e993df078780c76ed0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page