Skip to main content

Structure quality report and cleaning for PDB/mmCIF files

Project description

pdbqc

A Python tool for structure quality reporting and cleaning of PDB/mmCIF files. Detects and reports common structural pathologies — alternate locations, insertion codes, microheterogeneity, missing residues, and selenomethionine conversions — in a clean, colored terminal report.

Install

pip install pdbqc

Usage

Python

from pdbqc import clean_structure, format_report

# Basic usage
qc, structure = clean_structure("my_structure.cif")
format_report(qc)

# With CIF file for coverage and missing residue data
qc, structure = clean_structure("my_structure.pdb", cif_path="my_structure.cif")
format_report(qc)

# Keep ligands in cleaned structure
qc, structure = clean_structure("my_structure.pdb", keep_ligands=True)
format_report(qc)

CLI

pdbqc my_structure.pdb
pdbqc my_structure.pdb --cif my_structure.cif
pdbqc my_structure.pdb --keep-ligands

Output

╔══════════════════════════════════════╗ ║ Structure Quality Report ║ ╚══════════════════════════════════════╝ Atoms: 2671 Altlocs detected: none Insertion codes: none Microheterogeneity: none Chain Missing Residues Coverage ────────────────────────────────── A 15 90.5% B 13 91.8% C 0 100.0% D 0 100.0% MSE residues converted: none

What it checks

  • Alternate locations — counts atoms with altlocs before filtering; keeps highest occupancy
  • Insertion codes — detects and reports non-standard residue numbering
  • Microheterogeneity — flags residues with conflicting identities across altlocs
  • Missing residues — compares observed CA atoms to SEQRES (requires CIF)
  • Coverage — per-chain percentage of observed vs expected residues
  • MSE conversion — selenomethionine residues renamed to MET for standardized downstream use

Links

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

pdbqc-0.1.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdbqc-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pdbqc-0.1.2.tar.gz.

File metadata

  • Download URL: pdbqc-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pdbqc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f05932328873ccdc81e59a3437742686ccefe92ee9b1fd344e483f8f33fa71f1
MD5 ff67630ec7adbaf265ec5e75be5108c9
BLAKE2b-256 4b3f7d1cb04de159b8361786d774869ae8b548577e0ba3878af8e1f0d6fce20f

See more details on using hashes here.

File details

Details for the file pdbqc-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pdbqc-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pdbqc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 170c2324d72b63b27a215cf0587103ef60907a395846438eabd120d32e91606f
MD5 61623d1d0b7abfdb1a935bb27f2dae29
BLAKE2b-256 757b0d4d610bf1d939e8085c42402d4cfa77b9a338aa86a09992b27effb3e81f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page