pdbtbx

A library to open/edit/save (crystallographic) Protein Data Bank (PDB) and mmCIF files in Rust.

https://github.com/douweschulte/pdbtbx

Science Score: 59.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: nature.com, zenodo.org
  • Committers with academic emails
    2 of 12 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary

Keywords

atoms crystallography mmcif pdb pdb-parser pdbx-files rust rust-crate scientific

Keywords from Contributors

meshing parallel sequences interactive hacking network-simulation
Last synced: 6 months ago · JSON representation

Repository

A library to open/edit/save (crystallographic) Protein Data Bank (PDB) and mmCIF files in Rust.

Basic Info
Statistics
  • Stars: 62
  • Watchers: 3
  • Forks: 20
  • Open Issues: 17
  • Releases: 30
Topics
atoms crystallography mmcif pdb pdb-parser pdbx-files rust rust-crate scientific
Created about 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License Code of conduct Citation

README.md

DOI Compile & Test pdbtbx documentation Crates.io rustc 1.67+

Description

This is a Rust library helping to parse, edit and save crystallographic PDB/mmCIF files. It can read most atomic data from PDB/mmCIF files. Its high level goal is to create a stable, efficient and easy to use interface to PDB/mmCIF files written in pure Rust. For detailed documentation check out the official API docs.

Contributing

As this is a library in active development, feel free to share your thoughts, ideas, hopes, and criticisms. Every comment will be read and discussed so that this library is as useful as possible for all users. Of course we all like a civilised discussion so please follow the community guidelines, but over all please be a civilised human being.

License

MIT

Why

It started as a way to use Rust in a scientific project. But it moved to an open source project because I think that using Rust in scientific computing is be really helpful and a great addition alongside the ubiquitous Python. So by creating it I hope to extend the usability of Rust a little bit more. Since Nature published an article (technology feature) which laid out the benefits of using Rust and showed that Rust is used more and more, I am planning on working more with Rust in scientific projects. And I think that the best way to help Rust move forward (in the scientific community) is by creating more support for scientific projects in Rust.

Supported features

As the main goal of this library is to allow access to the atomical data many metadata features of both PDB and mmCIF are unsupported. For both file formats the recent versions (PDB v3.30 and mmcif v5.338) are used, but as both are quite stable file formats the exact version should not matter to end users.

| PDB Feature | PDB | mmCIF | Corresponding in mmCIF | | ------------- | :---: | :---: | -------------------------- | | HEADER (ID) | ✔️ | ✔️ | entry.id | | REMARK | ✔️ | ❌ | pdbxdatabaseremark.id | | ATOM | ✔️ | ✔️ | atomsite | | ANISOU | ✔️ | ✔️ | atomsite | | SCALE | ✔️ | ✔️ | _atomsites.Cartntransf | | ORIGX | ✔️ | ✔️ | _databasePDBmatrix.origx | | MATRIX | ✔️ | ✔️ | structncsoper | | CRYSTAL | ✔️ | ✔️ | cell + symmetry | | MODEL | ✔️ | ✔️ | atomsite | | MASTER | 〰️ | ❌ | pdbxdatabasePDBmaster | | SEQRES | 〰️ | ❌ | ? | | DBREF | ✔️ | ❌ | pdbxdbref | | DBREF1/2 | ✔️ | ❌ | pdbxdbref | | MODRES | ✔️ | ❌ | ? | | SEQADV | ✔️ | ❌ | ? |

| Section | Keywords | Support | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------- | | Heterogen | HET, HETNAM, HETSYN, FORMUL | 🔍 | | Secondary structure | HELIX, SHEET | 🔍 | | Connectivity | SSBOND, LINK, CISPEP, CONNECT | 🔍 | | Title | OBSLTE, TITLE, SPLIT, CAVEAT, COMPND, SOURCE, KEYWDS, EXPDTA, NUMMDL, MDLTYP, AUTHOR, REVDAT, SPRSDE, JRNL, HEADER (other columns) | ❌ | | Misc. | SITE | ❌ |

| Symbol | Description | | :----: | -------------------------- | | ✔️ | Supported | | 〰️ | Partially supported | | ⏲ | Support planned (v1.0) | | 🔍 | Support envisioned (>v1.0) | | ❌ | Support not envisioned |

The features where support is planned are planned to be included in the 1.0 release. The features where support is envisioned are candidates to be included, but not necessarily in the 1.0 release. The features where support is not planned are thought to be unnecessary for atomic data computations on theses files. If any of these are really needed for your use case, please raise an issue and we can discuss its inclusion. Also if you need a feature that is 'planned' or 'envisioned', feel free to raise an issue to guide development to spots where it can make a real life impact.

Additional crate features

  • The crate leverages the power of the crate Rayon to provide multithreaded iterators over PDB structures.
  • The crate leverages the power of the crate rstar to provide very efficient spatial lookup.
  • The crate has a performant way of selecting atom(s), see Search.
  • The crate has many nice helper methods for common PDB operations (renumbering, sorting, atomic properties lookup).
  • The crate has many ways of iterating over the PDB structure to allow for convenient access and control over the performance.

Latest update

v0.12.0

  • Added unified file read logic, see ReadOptions (Thanks to y1zhou and OWisset)
    • This deprecates the original read functions open_gz (still around for ease of updating) and open_raw (fully removed in this update)
  • Added unique_conformer_names for a PDB (Thanks to rvhonorato)
  • Added chains_in_contact for a PDB (Thanks to rvhonorato)

Also see changelog.

Support and development

When I am actively using this crate in my own projects this crate is actively worked on and extended. I am more than happy to receive and work on PRs and Issues even if the project seems a bit stale. But if anyone finds this project stale and wants to take over moderation and/or main development feel free to reach out and we can discuss. I would be happy to transfer the project and access to crates.io if that means the project will live on.

Join the Discussion

If you are interested in helping develop this crate and want to share ideas and plans, feel free to join our discord server.

https://discord.gg/wbjRznTVZ7

Owner

  • Name: Douwe Schulte
  • Login: douweschulte
  • Kind: user
  • Location: Netherlands
  • Company: @UtrechtUniversity

Biochemist with a deep love for computer sciences, and especially for Rust.

GitHub Events

Total
  • Issues event: 9
  • Watch event: 12
  • Issue comment event: 27
  • Push event: 9
  • Pull request review comment event: 6
  • Pull request review event: 10
  • Pull request event: 7
  • Fork event: 5
  • Create event: 1
Last Year
  • Issues event: 9
  • Watch event: 12
  • Issue comment event: 27
  • Push event: 9
  • Pull request review comment event: 6
  • Pull request review event: 10
  • Pull request event: 7
  • Fork event: 5
  • Create event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 457
  • Total Committers: 12
  • Avg Commits per committer: 38.083
  • Development Distribution Score (DDS): 0.352
Past Year
  • Commits: 17
  • Committers: 4
  • Avg Commits per committer: 4.25
  • Development Distribution Score (DDS): 0.471
Top Committers
Name Email Commits
D d****e@u****l 296
Schulte,D. (Douwe) d****e@s****l 45
y1zhou z****i@g****m 30
Oliver Wissett w****l@g****m 22
Benedikt Flöser b****r@c****e 22
Tianyi Shi S****1@o****m 11
Henry Wetton h****n@p****h 9
Rodrigo V. Honorato r****o@u****l 8
dependabot[bot] 4****] 7
repo-visualizer r****r 5
Sebastian Thiel s****l@i****m 1
DocKDE 4****E 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 84
  • Total pull requests: 61
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 21 days
  • Total issue authors: 13
  • Total pull request authors: 14
  • Average comments per issue: 2.46
  • Average comments per pull request: 1.61
  • Merged pull requests: 43
  • Bot issues: 0
  • Bot pull requests: 8
Past Year
  • Issues: 8
  • Pull requests: 10
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 3 months
  • Issue authors: 4
  • Pull request authors: 5
  • Average comments per issue: 0.63
  • Average comments per pull request: 0.3
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • douweschulte (40)
  • DocKDE (12)
  • OWissett (11)
  • David-OConnor (5)
  • TianyiShi2001 (3)
  • tzok (2)
  • rvhonorato (2)
  • ivnsch (1)
  • zachcp (1)
  • bddap (1)
  • hfswetton (1)
  • brianjimenez (1)
  • y1zhou (1)
Pull Request Authors
  • TianyiShi2001 (16)
  • DocKDE (13)
  • dependabot[bot] (9)
  • OWissett (8)
  • David-OConnor (3)
  • douweschulte (3)
  • y1zhou (3)
  • rvhonorato (2)
  • ivnsch (2)
  • zachcp (2)
  • hfswetton (2)
  • maxall41 (2)
  • Byron (1)
  • sverhoeven (1)
Top Labels
Issue Labels
enhancement (15) bug (6) good first issue (5) help wanted (3) documentation (1) question (1)
Pull Request Labels
dependencies (9)

Dependencies

Cargo.toml cargo
  • serde_json ~1.0 development
  • doc-cfg 0.1
  • indexmap ^1.8
  • rayon ^1
  • rstar ^0.9.2
  • serde ~1.0
.github/workflows/code_coverage.yml actions
  • actions-rs/cargo v1 composite
  • actions-rs/grcov v0.1 composite
  • actions-rs/toolchain v1 composite
  • actions/checkout v2 composite
  • coverallsapp/github-action master composite
.github/workflows/create_octo_diagram.yml actions
  • actions/checkout master composite
  • githubocto/repo-visualizer main composite
.github/workflows/rust.yml actions
  • actions-rs/cargo v1 composite
  • actions-rs/toolchain v1 composite
  • actions/checkout v2 composite