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.
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)
psycopg2SASwerkzeugfor the WSGI bit
-
Download ligand expo mmCIF files (
ligand_dict_v3) from RCSB. -
Run
PDBX.sqlto create mmCIF tables:psql -d $DB -U $ROLE -f PDBX.sql -
Load CIF:
ligandexpo2bmrb/load_cif.py -d "dbname='$DB' user='$ROLE'" -i /some/dir/ligand-dict-v3 -
Convert to NMR-STAR:
ligandexpo2bmrb/cif2star.py -d "dbname='$DB' user='$ROLE'" -
Make "entity" saveframes:
ligandexpo2bmrb/entity.py -d "dbname='$DB' user='$ROLE'"