Project

General

Profile

Configure sinedoncfg » History » Revision 11

Revision 10 (Amber Herold, 05/18/2010 10:34 AM) → Revision 11/23 (Anchi Cheng, 05/18/2010 07:55 PM)

 h1. Configure sinedon.cfg 



 Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases. It can be configured at global or user level. 

     * An example configuration file is available at: 
       myami/sinedon/examples/sinedon.cfg 

     * Configurations for all users should be placed at the following path: 
       $PYTHONSITEPKG/sinedon/sinedon.cfg 

     * Modify sinedon.cfg to look like the following example. Set the host, db, user, and passwd to match the databases created during your Database Server setup. Note that the user here is the MySQL user Leginon uses to communicate with the database for all Leginon users. For an Appion or Leginon installation that uses Project database, set the following: 
 <pre> 
 [global] 
 #host: your_database_host 
 host: localhost 
 user: usr_object 
 passwd: 

 [projectdata] 
 db: projectdb 

 [leginondata] 
 db: leginondb 

 [appiondata] 
 db: dynamic 
 </pre> 

     * If you would like to name your Project Proccessing databases something other than the default "ap[Id_Num]", 
       you will need to do the following: 
     ** Go to your Leginon installation directory (typically /usr/lib/python2.4/site-packages/leginon/) 
     ** Edit project.py. Change line 5 to: 
 <pre> 
 use_processingdb_table = True 
 </pre> 
     ** [Note] The module names in brackets are case sensitive and need to be exact. 
 The user name needs to match the name for which privileges have been granted on the `ap%` databases. 

     * Add database configuration if you intend to use grid-inserting robot. The Robot2 module uses the database to communicate to the robot. Applications that carries the name "Robot" requires this to be set. In general, using the same database as the general leginon database is fine. 
 <pre> 
       [robot2] 
       db: leginondb 
 </pre> 

 ______ 


 [[Explanation of Sample Names|< Explanation of Sample Names]] | [[Install External Packages|Install External Packages >]] 

 ______