Skip to content

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

License

Notifications You must be signed in to change notification settings

padix-key/fastpdb

This branch is 2 commits ahead of biotite-dev/fastpdb:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5b93ba8 · Dec 18, 2024
Dec 18, 2024
Aug 22, 2024
Dec 18, 2024
Aug 24, 2024
Aug 26, 2024
Apr 28, 2022
Dec 18, 2024
Sep 27, 2021
Oct 7, 2021
Aug 24, 2024
Aug 24, 2024
Nov 12, 2021
Oct 6, 2021
Dec 18, 2024

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 57.2%
  • Python 42.8%