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.

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

Uploaded Source

Built Distribution

fastpdb-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl (999.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

File details

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

File metadata

  • Download URL: fastpdb-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for fastpdb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 351532233db08b76504fa82a959fe37e5e2d3c7e0ae5417ff395ab7d38fdda92
MD5 108014480dde8b2d1cfbd9f221eaa0de
BLAKE2b-256 4f3eaa5e096255e311b4265bb714fd8b47f3d972aac404315ec1c0d98a208313

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 999.1 kB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for fastpdb-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 f8c74c40757aa4903d3d5662b2fa022b394ddf2e917b8ddebf6f52c4ea82d1fa
MD5 96a5835ff1843bc99f443eb88ea660c2
BLAKE2b-256 5c5e246ca8a2149891fe86aa3a611eb0810fbaa01f6dfb127d0c5773f72cd2b2

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