[OpenMMS] setting up mmCIF database using OpenMMS

Thomas Juettemann t.juettemann at sms.ed.ac.uk
Mon Mar 26 12:53:20 EDT 2007

Dear all,

a quick sum up of my experiences reading files into a MySQL database 
using OpenMMS (pdbase).

The standard parameters when initializing pdbase are:

java \
  -Xmx1500M \
  org.rcsb.openmms.apps.rdb.PDBase \
  LenientParse \
  data=ftp://beta.rcsb.org/pub/pdb/uniformity/data/mmCIF.gz/all \
  manifest=ftp://ftp.rcsb.org/pub/pdb/ls-lR \
  log=PDBASE.LOG \

The dir data=ftp://beta.rcsb.org/pub/pdb/uniformity/data/mmCIF.gz/all 
does not exist anymore. In out days the files just exist zipped in 
subdirectories (divided). The files have to be downloaded and unzipped 
fist. An easy way downloading bigger amounts of data is using this script:

gunzip -r ~/pdb0702091045/pdb/

A modified version of starting pdbase:
java \

   -Xmx1500M \
   org.rcsb.openmms.apps.rdb.PDBase \
   LenientParse \
   data=file:///home/s0571283/positiveSet/MMS/pdb0702211233/mmCIF \
   manifest=file:///home/s0571283/ls-lR \
   log=PDBASE.LOG \

Next step is setting up the database.

mysqladmin create openmms

The file


contains many FLOAT where REAL is needed. A simple


in vi solved this. After populating the database the indices should be 

mysql openmms < ./src/mms/deriv/sql/CreateMmsMySQL.sql
mysql openmms < ./src/mms/deriv/sql/InitMms.sql

The files


are not consistent with the db schema. I wrote a perl script that 
downloads the newest version of CreateMmsMySQL.sql and InitMms.sql, 
replaces all FLOAT with real and creates CreateIndices.sql and 
DropIndicesMySQL.sql. Contact me if you are interested.

mysql openmms < ./src/mms/deriv/sql/DropIndicesMySQL.sql
mysql openmms < ./src/mms/deriv/sql/CreateIndices.sql


More information about the OpenMMSusers-general mailing list