Skip to content

bmrb-io/ligand-expo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ligand-expo

Import PDB ligand expo into BMRB processing pipeline

There's two parts:

  • import chem. comps from mmCIF files into NMR-STAR database, dump the "public" version of the database for use on BMRB website (public API & pages).
  • Simple WSGI front-end for searching and for generating NMR-STAR chem. comp and entity saveframes for insertion in BMRB entries (internal processing by BMRB annotators).

PDB supports "compound" chem comps that are comprized of other chem comps. BMRB does not.

DB loader supports the notion of "local mods", so it checks for dates: "initial" vs. "last updated". For this to work any local update must touch the "last updated" field.

Files

  • PDBX.sql - DDL script for mmCIF version of teh database. It's hand-written and needs to be adjusted for any updates to PDB Exchange dictionary (chem comp section is very stable and hasn't really changed in forever)

Require

  • psycopg2
  • SAS
  • werkzeug for the WSGI bit

Howto

  1. Download ligand expo mmCIF files (ligand_dict_v3) from RCSB.

  2. Run PDBX.sql to create mmCIF tables: psql -d $DB -U $ROLE -f PDBX.sql

  3. Load CIF: ligandexpo2bmrb/load_cif.py -d "dbname='$DB' user='$ROLE'" -i /some/dir/ligand-dict-v3

  4. Convert to NMR-STAR: ligandexpo2bmrb/cif2star.py -d "dbname='$DB' user='$ROLE'"

  5. Make "entity" saveframes: ligandexpo2bmrb/entity.py -d "dbname='$DB' user='$ROLE'"

About

Import PDB ligand expo into BMRB processing pipeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors