Hi Ritu,

put "ligand" and "target" in one string as an atom selection with a
logical "or".

cmd.load("ligand.pdb")
cmd.load("target.pdb")
cmd.create("complex", "ligand or target")

Cheers,
   Thomas

Rituparna Sengupta wrote, On 02/13/12 19:28:
> Hi,
> 
> I've just started using PyMol, so this may come across as a stupid
> question. I'm using Python to make a plugin for a surface area
> calculation. What is the api version for the command:
> 
> create complex, ligand target
> 
> ?(ligand and target are pdb files) I tried using,
> 
> cmd.create(complex, ligand, target)
> 
> but found errors. Apparently I'm supposed to put an integer after the
> first two entries in the bracket(according to the 'create' command
> api version instructions in the pymol wiki commands section). I tried
> loading the molecules separately into 'complex', but the value of the
> complex area is different from when loaded together(found this out by
> typing directly into pymol). I'll be glad if someone could help.
> 
> Thanks, Ritu

-- 
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to