-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG "ball-and-stick" depiction #193
Comments
There is a bounty for adding this feature: |
Hi, You are a developer of the project. What is the purpose of this bounty? |
I don't have time (or the expertise) to code this in a reasonable period of time. I would like the feature for a related project and I'm willing to offer the bounty. If you have the expertise, feel free to grab the bounty. :-) |
I'm willing to give pointers as well. I think my coding is better spent on the chemistry-oriented features rather than trying to figure out SVG.. |
OK. I have half a day to spend on this, and I just wanted to be sure that it would be of some use. Might be fun too... |
Some useful cases might be in: etab.GetRGB(int atomicnum) If you have some time, I think it would be a great feature. I'm hoping to use it at http://pqr.pitt.edu/ for search results (i.e., rather than 20 interactive JavaScripts panels). |
Do you think of any method to get a good idea of the radius of the circles depending on the atomic number ? Is there a "standard" on ball and stick representation ? |
I think the "standard" would be the covalent radius, although some people scale the VdW radius down. I'd set that as a parameter and try a few scaling factors to see what looks the best. |
One other nice trick would be to find the best fit plane of the molecule given the XYZ coordinates and then project them via a "camera" perspective, e.g using Eigen:
|
The current SVG code performs a 2D layout of a structure to produce a chemical diagram.
For some compounds, a better representation would be a ball-and-stick projection of the 3D coordinates, e.g.:
http://plindenbaum.blogspot.com/2009/06/fun-with-svg-ncbipubchemxslt-svg.html
The text was updated successfully, but these errors were encountered: