Jmol, Java Help Needed~
2
3
Entering edit mode
10.8 years ago
Hazelin ▴ 100

Hey,

I am a student who needs help in my project.

I need to rotate the protein structure(from PDB) using java and the result can be seen via Jmol visualizer.

Also, I need to open 2 structures in the same visualizer to see the rotation of one structure on top of one another to calculate the RMSD. How do I get about to that?

Thank you

Your help is greatly appreciated!

algorithm java • 3.3k views
ADD COMMENT
5
Entering edit mode
10.8 years ago
Tom Walsh ▴ 550

The Biojava project has classes for handling protein structures. Have a look at the PDB section of the cookbook

ADD COMMENT
0
Entering edit mode

Is Biojava a software by itself? What does it do? Because when I run it with Jcreator, it doesn't exists. Thank you for the link!

ADD REPLY
0
Entering edit mode

Biojava is a library that is used to build programs, not an application in itself.

ADD REPLY
1
Entering edit mode
10.8 years ago

You can automatically rotate the proteins on a JMol applet embedded in your web page using the "spin" command which renders a continuous rotation. You can implement this easily by using the Jmol.js JavaScript library

To visualized the superimposed structures on JMol you have two options:

  • Load 2 structures to JMol and perform RMSD calculation for your structures and provide the results. I heard RMSD calculation is possible using JMol, but I have not yet tried this option. You could take a look at the JMol scripting options for more information about the RMSD calculation using JMol.
  • Use an external program (there are many programs available, you can write on your own using BioJava or for an example you could look at a python implementation here)to calculate the RMSD and load the superposed structures to your JMol window.

I think the second option is more feasible, as I am afraid the performance of JMol depends upon the JVM settings and it may not be a good idea to superimpose structures at the client-side.

ADD COMMENT
0
Entering edit mode

Thank you for your comment! I'm using an external program(jcreator) to write my own program and I'm having problems writing it because I'm very new to the world of Java.

ADD REPLY
0
Entering edit mode

AFAIK, JCreator is a IDE for Java. Not sure how this is affecting the integration with JMol. Please post specific issues, so that some of us can provide feedback.

ADD REPLY

Login before adding your answer.

Traffic: 2462 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6