biotite-dev / fastpdb

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 57.2%Language:Python 42.8%