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

Uploaded Source

Built Distributions

fastpdb-1.3.0-cp312-none-win_amd64.whl (216.9 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

fastpdb-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

fastpdb-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl (337.1 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

fastpdb-1.3.0-cp311-none-win_amd64.whl (218.7 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

fastpdb-1.3.0-cp311-cp311-manylinux_2_34_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

fastpdb-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl (341.1 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

fastpdb-1.3.0-cp310-none-win_amd64.whl (218.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

fastpdb-1.3.0-cp310-cp310-manylinux_2_34_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

fastpdb-1.3.0-cp310-cp310-macosx_10_12_x86_64.whl (341.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

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