Skip to main content

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

Project description

Copyright (c) 2021, Patrick Kunzmann

All rights reserved.

Redistribution and use in source and binary forms, with or without

modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this

    list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice,

    this list of conditions and the following disclaimer in the documentation

    and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its

    contributors may be used to endorse or promote products derived from

    this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”

AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE

IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE

DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE

FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL

DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR

SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER

CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,

OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE

OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Requires-Python: >=3.7 Description-Content-Type: text/x-rst; charset=UTF-8 Project-URL: repository, https://github.com/biotite-dev/fastpdb Project-URL: homepage, https://github.com/biotite-dev/fastpdb

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.0.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

fastpdb-1.0.0-cp39-none-win_amd64.whl (209.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

fastpdb-1.0.0-cp39-cp39-manylinux_2_24_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

fastpdb-1.0.0-cp39-cp39-macosx_10_7_x86_64.whl (319.7 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

fastpdb-1.0.0-cp38-none-win_amd64.whl (209.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

fastpdb-1.0.0-cp38-cp38-manylinux_2_24_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

fastpdb-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl (319.4 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

fastpdb-1.0.0-cp37-none-win_amd64.whl (209.2 kB view details)

Uploaded CPython 3.7 Windows x86-64

fastpdb-1.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.24+ x86-64

fastpdb-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl (319.7 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: fastpdb-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e947f96303fddfe8da9c8df6de4b53eab6c392210815dd34dde96b2cc2607bf6
MD5 33c6ca54f6df7b9b1d55e090d975c45f
BLAKE2b-256 0f45c89dbf394135a55b54f740830ff14eaf1be68803017bfa6f6d9baa6f927b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-1.0.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 209.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 05fa9efedff51ed36a2c5d5243f91e60e719b80e40ad51c3e0d51db50b00b5c8
MD5 b5ee9ee5dd73c3c604c1984f713d25be
BLAKE2b-256 35629bca04e365cb031539b617a51e6539e37bc663e7345d0ba8e8b433e91baa

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 3a8140d30d26535e58fff6fe3b91de98468c425d7f606f00f17eaa3e05c97e33
MD5 9ef8385c0e53253897abd1dd3c7780aa
BLAKE2b-256 f644a382999a6a4d91b8c56a304fd8ff1dd80e97d62287fb050716c475adccf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-1.0.0-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 319.7 kB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5a2d7cdfb5c1b1014ba4a4dc8c4122936a8182e210da88154f3370fd0b1a4f67
MD5 f790cf0bf7e4b8f57ffcfb3e9f447409
BLAKE2b-256 c09818cd9b598e5fe2663a5d7eedf1218364266c2224447c7b73375b37255223

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp38-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 209.4 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 3acb91240ac8b45da3770fb363900c16f4f0dcdd416d029487948e753e87b134
MD5 8d5722c143f24c64c59c193c323bae84
BLAKE2b-256 5da20f9fa27cd0458f3019b804b3e217103a7583790f7cfece0fb7463cda0516

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 5d33cf16eedc80273c960d464737440585522e6c9878613dda2b4b1ba2bf699a
MD5 9520915df4a436acf9f6e95d3d272665
BLAKE2b-256 62d6f7abe2d32737003d2cf6b8fde1fc05621bdcd7d3e7997ba7590b1506552a

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 319.4 kB
  • Tags: CPython 3.8, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 bea3e571ed577d629a1cb201326e2f44e5bf320315a7a2a2040f689492fd0d90
MD5 9613631a22d563158be328f11380b387
BLAKE2b-256 c70d9449cb261a4eaff106493bbf127be33491e5858b4b9eb79bf4627fd31c32

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp37-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 209.2 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 437d831256545d7d95da7a27059338bfb1a4dd8e8281b29100c79d7c9833eae3
MD5 e1bb1d8fa1c00d74213cb0d755da7c64
BLAKE2b-256 f3000b41faabd1e58a66fe533ee20bd7c314752d135e087b0b3c9056955c2d0f

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 d4f31fb4c3dfac6d58c8ef652cb62d388666be496cdcf8a2712c72e39a454853
MD5 4bc21b443c99dd725cb059e940e73752
BLAKE2b-256 7027c96260c016bc4b1d3cb8916f0051fa2b304e48a9b53afece8b0705040fe1

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 319.7 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for fastpdb-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ce0b9ae177ca2595a4a6bfdb8121e9fbb28f5a96c72b14c070286b6a8b4fc2d8
MD5 ea522f6a999916afe5f672f194e8ae99
BLAKE2b-256 9a13e54cae8e9229ffcd0347f649af152b795bc41d64f85fa615b60fc1f61b55

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