Difference between revisions of "PyMOL Python Interface"

From MSL-Libraries
Jump to navigationJump to search
(Created page with '== Install PythonMSL plugin == #Install PyMOL by going here: http://www.pymol.org/ #First you need to make the PythonMSL.so library ( Pre-compiled libraries should be available i…')
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 +
 
== Install PythonMSL plugin ==
 
== Install PythonMSL plugin ==
 
#Install PyMOL by going here: http://www.pymol.org/
 
#Install PyMOL by going here: http://www.pymol.org/
 
#First you need to make the PythonMSL.so library ( Pre-compiled libraries should be available in the future )
 
#First you need to make the PythonMSL.so library ( Pre-compiled libraries should be available in the future )
 
##Download MSL
 
##Download MSL
##make all objects
+
##make all objects via '''make'''
##make pythonLin or make pythonMac depending if you are on linux or mac.
+
##'''make pythonLin''' or '''make pythonMac'''    (depending if you are on linux or mac)
 +
##On a Mac you need to '''ln -s MSLDIR/PythonMSL.so /Applications/PyMOLX11Hybrid.app/pymol/modules/PythonMSL.so'''
 
#Copy MSLDIR/exampleFiles/pymolrc.py to ~USERNAME/.pymolrc.py
 
#Copy MSLDIR/exampleFiles/pymolrc.py to ~USERNAME/.pymolrc.py
 
  
 
== Using PythonMSL ==
 
== Using PythonMSL ==
Line 14: Line 16:
  
 
== For Developers ==
 
== For Developers ==
 +
Need to install development libraries for Python, can be installed by default when python is installed, but you need to make sure you have Python.h and the associated library. Check the
 +
Makefile for paths where it was installed on MacOS 10.5 and Ubuntu 9.10

Latest revision as of 15:33, 6 April 2010


Install PythonMSL plugin

  1. Install PyMOL by going here: http://www.pymol.org/
  2. First you need to make the PythonMSL.so library ( Pre-compiled libraries should be available in the future )
    1. Download MSL
    2. make all objects via make
    3. make pythonLin or make pythonMac (depending if you are on linux or mac)
    4. On a Mac you need to ln -s MSLDIR/PythonMSL.so /Applications/PyMOLX11Hybrid.app/pymol/modules/PythonMSL.so
  3. Copy MSLDIR/exampleFiles/pymolrc.py to ~USERNAME/.pymolrc.py

Using PythonMSL

After loading a PDB file, in the PyMOL window, type getSasa("all")


For Developers

Need to install development libraries for Python, can be installed by default when python is installed, but you need to make sure you have Python.h and the associated library. Check the Makefile for paths where it was installed on MacOS 10.5 and Ubuntu 9.10