Load: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
===DESCRIPTION===
===DESCRIPTION===
'''load''' reads several file formats.  The file extension is used to determine the format.  PDB files must end in ".pdb", MOL files must end in ".mol", Macromodel files must end in ".mmod", XPLOR maps must end in ".xplor", CCP4 maps must end in ".ccp4", Raster3D input (Molscript output) must end in ".r3d", PyMOL session files must end in ".pse", and pickled ChemPy models with a ".pkl" can also be directly read.
  "load" reads several file formats.  The file extension is used to
 
  determine the format.  PDB files must end in ".pdb", MOL files must
If an object is specified, then the file is loaded into that object. Otherwise, an object is created with the same name as the file prefix.
  end in ".mol", Macromodel files must end in ".mmod", XPLOR maps
  must end in ".xplor", CCP4 maps must end in ".ccp4", Raster3D input
  (Molscript output) must end in ".r3d", PyMOL session files must end
  in ".pse", and pickled ChemPy models with a ".pkl" can also be directly
  read.
  If an object is specified, then the file is loaded into that object.
  Otherwise, an object is created with the same name as the file
  prefix.
   
   
===USAGE===
===USAGE===
<source lang="python">  
<source lang="python">
  load filename [,object [,state [,format [,finish [,discrete ]]]]]
load filename [,object [,state [,format [,finish [,discrete ]]]]]
</source>
</source>
 
===PYMOL API===
===PYMOL API===
<source lang="python">  
<source lang="python">
  cmd.load( filename [,object [,state [,format [,finish [,discrete ]]]]]
cmd.load( filename [,object [,state [,format [,finish [,discrete ]]]]]
</source>
</source>
===NOTES===
===NOTES===
You can override the file extension by giving a format string:
   
   
  You can override the file extension by giving a format string:
  'pdb' : PDB,  'mmod' : Macromodel, 'xyz' : Tinker, 'cc1' : ChemDraw3D   
   
'mol' : MDL MOL-file, 'sdf' : MDL SD-file
  'pdb' : PDB,  'mmod' : Macromodel, 'xyz' : Tinker, 'cc1' : ChemDraw3D   
'xplor' : X-PLOR/CNS map, 'ccp4' : CCP4 map,
  'mol' : MDL MOL-file, 'sdf' : MDL SD-file
'callback' : PyMOL Callback object (PyOpenGL)
  'xplor' : X-PLOR/CNS map, 'ccp4' : CCP4 map,
'cgo' : compressed graphics object (list of floats)
  'callback' : PyMOL Callback object (PyOpenGL)
'trj' : AMBER trajectory (use load_traj command for more control)
  'cgo' : compressed graphics object (list of floats)
'top' : AMBER topology file 'rst' : AMBER restart file
  'trj' : AMBER trajectory (use load_traj command for more control)
'cex' : Metaphorics CEX format
  'top' : AMBER topology file 'rst' : AMBER restart file
'pse' : PyMOL Session file
  'cex' : Metaphorics CEX format
'pqr' : PQR (a modified PDB file with charges and radii)
  'pse' : PyMOL Session file
'mol2' : MOL2
  'pqr' : PQR (a modified PDB file with charges and radii)
 
  'mol2' : MOL2
 
===SEE ALSO===
===SEE ALSO===
[[:Category:Commands save |save]]
  [[:Category:Commands save |save]]


==User Comments/Examples===
==User Comments/Examples===


[[Category:Commands|load]]
[[Category:Commands|load]]

Revision as of 19:51, 13 June 2005

DESCRIPTION

load reads several file formats. The file extension is used to determine the format. PDB files must end in ".pdb", MOL files must end in ".mol", Macromodel files must end in ".mmod", XPLOR maps must end in ".xplor", CCP4 maps must end in ".ccp4", Raster3D input (Molscript output) must end in ".r3d", PyMOL session files must end in ".pse", and pickled ChemPy models with a ".pkl" can also be directly read.

If an object is specified, then the file is loaded into that object. Otherwise, an object is created with the same name as the file prefix.

USAGE

load filename [,object [,state [,format [,finish [,discrete ]]]]]

PYMOL API

cmd.load( filename [,object [,state [,format [,finish [,discrete ]]]]]

NOTES

You can override the file extension by giving a format string:

'pdb' : PDB,  'mmod' : Macromodel, 'xyz' : Tinker, 'cc1' : ChemDraw3D  
'mol' : MDL MOL-file, 'sdf' : MDL SD-file
'xplor' : X-PLOR/CNS map, 'ccp4' : CCP4 map,
'callback' : PyMOL Callback object (PyOpenGL)
'cgo' : compressed graphics object (list of floats)
'trj' : AMBER trajectory (use load_traj command for more control)
'top' : AMBER topology file 'rst' : AMBER restart file
'cex' : Metaphorics CEX format
'pse' : PyMOL Session file
'pqr' : PQR (a modified PDB file with charges and radii)
'mol2' : MOL2
 

SEE ALSO

save

User Comments/Examples=