Hey Elaine,<br><br>Thanks for the mail.<br><br>Just open the file in notepad and save it as .xyz (dont need to do that I am attaching the file here now)<br>Then I have just opened this .xyz file in chimera and chimera loads the desired image(attached: open with notepad or any text editor)(I have also attached the output image of chimera)<br>
<br>Now my question is that <br>How do I use the script calle xyzmap.py on the following link <a href="http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts">http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts</a><br>for opening the above file from the command line.<br>
what should I replace the 'xyz_path' and the 'xyz_list' in the xyzmap.py code with?<br> <br>Regards,<br>Chinmaya<br><div class="gmail_quote">On Sat, Jun 11, 2011 at 4:42 PM, Elaine Meng <span dir="ltr"><<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Chinmaya,<br>
The way to see if Chimera opens your file is to either<br>
(A) look at the list of file types in the link I sent in the previous message, or<br>
(B) start Chimera, and try using File... Open in the menu.<br>
<br>
However, no: Chimera does not read a ".csv" file. You never said what your file is supposed to contain, but from the name and contents of the file it appears to be x,y,z coordinates of a bunch of dots. If you just want to display this as a bunch of dots or spheres in Chimera, you could convert this file (write a script to do it in any language you like) to the simple "BILD" text format described here:<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/bild.html" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/bild.html</a>><br>
<br>
Then the "BILD" file (name it something.bild) can be opened in Chimera to display the dots or spheres.<br>
<br>
As I mentioned earlier I do not know python, and I don't recommend it in this case. Using python would require some knowledge of Chimera code. Instead use a Chimera command script.<br>
<br>
Just start Chimera, open the BILD file, show the Chimera command line (choose from the Favorites menu), try typing in commands. Figure out the movement commands you want, then put the commands and movie-recording commands in text file to make the Chimera script. Command "roll" does rotation, "move" does translation, "scale" does scaling, "movie" does the movie stuff. The script might be as simple as:<br>
<br>
movie record<br>
roll y 1 360; wait<br>
wait 10<br>
movie stop<br>
movie encode mformat mov output /MyPath/mymovie.mov<br>
<br>
... but you would need to look at the command documentation to see what options you want. There are links to that documentation and to example Chimera command scripts in my previous message.<br>
Elaine<br>
<div><div></div><div class="h5"><br>
On Jun 11, 2011, at 12:34 PM, chinmaya joshi wrote:<br>
<br>
> Hello Elaine,<br>
><br>
> Thanks a lot for your mail. I am working on the points you have suggested. However I am a bit confused whether my input files will work in chimera or not?<br>
> Herewith I am attaching a sample example of the dataset which I will be taking as the input, perform some viewpoint operation on it and then make a movie.<br>
> Can you please let me know whether this can be done in chimera or not?<br>
> If yes, can it be done in a python script file?<br>
><br>
> Regards,<br>
> Chinmaya Joshi<br>
><br>
> On Fri, Jun 10, 2011 at 9:42 PM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>> wrote:<br>
> Hi Chinmaya,<br>
> Before you start scripting, the first thing to consider is whether Chimera can do what you want. Have you tried doing what you want to show in the movie, but while using Chimera interactively? From your description, I am concerned that Chimera may not read your input format. The input types are generally 3D data files, not images. The one exception is that an image stack can be used as a "volume data" input format. Here is information on what formats Chimera can read:<br>
> <<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/filetypes.html" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/filetypes.html</a>><br>
><br>
> If you think Chimera can do what you want, here is information on making movies,<br>
> <<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html</a>><br>
><br>
> ...including commands for rotation and translation, etc.<br>
> <<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#moviecommands" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#moviecommands</a>><br>
><br>
> ...and example scripts<br>
> <<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#examples" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#examples</a>><br>
><br>
> ...however, these examples are Chimera command scripts, not python scripts. I think python scripts would be more difficult to make than Chimera command scripts, and you would only start working with python if (A) Chimera can do what you want or nearly so, but (B) there are no Chimera commands for those things. After you figure out what you want to do by using Chimera interactively, then figure out the commands for those actions, then put them into a script. The last step would be to add movie recording commands to that script.<br>
><br>
> I don't know python, so I can't say any more about using that approach.<br>
><br>
> I hope this helps,<br>
> Elaine<br>
> -----<br>
> Elaine C. Meng, Ph.D.<br>
> UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab<br>
> Department of Pharmaceutical Chemistry<br>
> University of California, San Francisco<br>
><br>
> On Jun 10, 2011, at 6:26 PM, chinmaya joshi wrote:<br>
><br>
> > Hello,<br>
> > I want to write a script in python to open a set of images in chimera set a viewpoint(rotate, translate,etc). and make a movie out of them all through command line for my project.<br>
> ><br>
> > Can someone please let me know how it can be done.<br>
> ><br>
> > I am new to python.<br>
> ><br>
> > Can anyone tell me any good links for these?<br>
> ><br>
> > The documentation on chimera ucsf is a bit confusing.<br>
> > Thanks.<br>
> > Chinmaya<br>
><br>
><br>
</div></div>> <pointcloud.csv>_______________________________________________<br>
> Chimera-users mailing list<br>
<div class="im">> <a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>
</div>> <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" target="_blank">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br>
<br>
</blockquote></div><br>