mailRe: PyMOL is now supported.


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Douglas Kojetin on October 31, 2006 - 16:04:
I've been using the 1.2 stable branch. What svn command should I use to retrieve the updated code that interacts with PyMOL?

Thanks,
Doug

On Oct 31, 2006, at 9:44 AM, Edward d'Auvergne wrote:

On 11/1/06, Douglas Kojetin <douglas.kojetin@xxxxxxxxx> wrote:
Is there sample data included with relax so we can view this new
feature?

A simple way is to test this is invent stuff - that's what I did when I was creating this code. I then applied it to real data later. For example I used the following within a script:

-----
# Create the run.
name = 'tensor'
run.create(name, 'mf')

# Load the PDB file.
pdb.read(name, 'replace_with_my_protein.pdb')

# Set up and then display the diffusion tensor.
#diffusion_tensor.init(name, 9e-9)
diffusion_tensor.init(name, (9e-9, 1e7, 150, 270))
#diffusion_tensor.init(name, (9e-9, -1e7, 150, 270))
#diffusion_tensor.init(name, (9e-9, 1e7, 0.5, 60, 290, 100))

# Create the tensor PDB file.
tensor_file = 'tensor.pdb'
pdb.create_tensor_pdb(name, file=tensor_file, force=1)

# PyMOL.
pymol.view(name)
pymol.cartoon(name)
pymol.tensor_pdb(name, file=tensor_file)
-----

Edward




Related Messages


Powered by MHonArc, Updated Tue Oct 31 16:21:31 2006