Avogadro Customization [SOLVED]

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
albert

Avogadro Customization [SOLVED]

Post by albert »

I've installed the molecular visualization tool, Avogadro (0.9.7) and want to customize the labeling of individual atoms, however, when the settings, under label, is changed to "custom", nothing happens.
This is an extraordinary animation tool. It would be nice to find out how to change this setting. Or even the basics of the label file.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: Avogadro Customization

Post by remoulder »

Google or the apps homepage if it exists, is probably your best bet.
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
albert

Re: Avogadro Customization

Post by albert »

remoulder wrote:Google or the apps homepage if it exists, is probably your best bet.
Thank you for your suggestion.
Avogadro homepage is a wiki at http://avogadro.openmolecules.net/wiki/Main_Page . I am slowly making my way through its pages ... but so far I have been unable to find out why the custom label doesn't function.
I've also asked at the mailing list, avogadro-discuss @ lists.sourceforge.net, but haven't heard anything yet.
It also helps that I don't understand how to deal with the label file: is it a .so file; if yes, then how to deal with it? This may be it:
/usr/lib/avogadro/engines/labelengine.so
How do I open it? Do I need some supernatural programming abilities to deal with this file?
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: Avogadro Customization

Post by remoulder »

albert wrote:/usr/lib/avogadro/engines/labelengine.so
Sorry don't know anything about this particular application, but anything in /usr/lib is part of the application executable and probably shouldn't be touched. The .so file is a library, similar to a Windows .dll
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
albert

Re: Avogadro Customization

Post by albert »

Thanks. I won't touch those files.
I found some xml example files in the usr/share/doc but if these are modified then it screws up the results.
I guess I wait for them to fix it.
User avatar
vortex59
Level 3
Level 3
Posts: 150
Joined: Wed Aug 20, 2008 9:09 am
Location: Timișoara, România

Re: Avogadro Customization

Post by vortex59 »

Hello! You could try avogadro 1.0.0 from debichem repositories http://ppa.launchpad.net/debichem/ppa/ubuntu/ karmic main
I'm using it (you don't have to setup repositories, just download the deb files and dependencies which are in the same place) with no problem in Linux Mint x86_64.
"A scientist is someone whose curiosity survives education's assaults on it". Sir Hermann Bondi
albert

Re: Avogadro Customization

Post by albert »

Thanks. I downloaded it but perhaps you can tell me how I would install it. It's now sitting in my downloads folder.
albert

Re: Avogadro Customization

Post by albert »

Im at http://ppa.launchpad.net/debichem/ppa/u ... /avogadro/ and I installed the 1.0.0 data file at the top of the list and downloaded the application .. help!! now A doesn't open
User avatar
vortex59
Level 3
Level 3
Posts: 150
Joined: Wed Aug 20, 2008 9:09 am
Location: Timișoara, România

Re: Avogadro Customization

Post by vortex59 »

In the Mint distribution there is a utility gdebi which install everithing that has the *.deb extension. Usually is necessary only click on the deb file in file browser. This would tell you if some files are missing. Did you downloaded also libavogadro files?
"A scientist is someone whose curiosity survives education's assaults on it". Sir Hermann Bondi
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: Avogadro Customization

Post by remoulder »

Thanks for stepping in vortex59.

albert, it's probably easier if you add the PPA to your sources, then you can install via synaptic and get updates when they're posted. To do this open Software Sources, go to the Other Software tab, click Add and enter ppa:debichem/ppa, click Add source, then Close. You'll be asked to reload so say yes. When finished open mintupdate and you should find there's an update to the version you have already installed.
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
User avatar
vortex59
Level 3
Level 3
Posts: 150
Joined: Wed Aug 20, 2008 9:09 am
Location: Timișoara, România

Re: Avogadro Customization

Post by vortex59 »

You also need openbabel (translate different chemistry file types) installed and eigen2 (for some molecular mechanics optimizations I presume) both program and libraries. It's possible also to compile the program but you need more time and installations.
"A scientist is someone whose curiosity survives education's assaults on it". Sir Hermann Bondi
albert

Re: Avogadro Customization

Post by albert »

remoulder wrote:Thanks for stepping in vortex59.

albert, it's probably easier if you add the PPA to your sources, then you can install via synaptic and get updates when they're posted. To do this open Software Sources, go to the Other Software tab, click Add and enter ppa:debichem/ppa, click Add source, then Close. You'll be asked to reload so say yes. When finished open mintupdate and you should find there's an update to the version you have already installed.
Ok. Done. Updated.
Thank you.

But I am still unable to use the custom data function on the label setting. That is, I would like to label individual atoms with custom data.
albert

Re: Avogadro Customization

Post by albert »

vortex59 wrote:You also need openbabel (translate different chemistry file types) installed and eigen2 (for some molecular mechanics optimizations I presume) both program and libraries. It's possible also to compile the program but you need more time and installations.
Thnak you for your suggestion. I have installed as above, however, I am still unable to implement the custom label settings. I am hoping that I am not missing something in the procedure and thus wasting everyones time! My intention is to label each atom with custom text.
albert

Re: Avogadro Customization

Post by albert »

I went to the label settings just now and selected the 'custom data' for atom labels; then went to the properties menu under the view menu and opened the atom properties table: I changed the element name to some custom text but then the 'Type' column autofilled to an X and then the 'Element' field followed and changed to an 'Xx', which displayed on the animation. So I guess that the element cannot be custom filled with anything other than a bona fide element name, such as H or C. But how to adjust this to allow custom names?
User avatar
vortex59
Level 3
Level 3
Posts: 150
Joined: Wed Aug 20, 2008 9:09 am
Location: Timișoara, România

Re: Avogadro Customization

Post by vortex59 »

Hi Albert!

I think the "Custom" field in "Label settings" in not yet useable. If you have programming skills you may look in the source files /avogadro-1.0.0/libavogadro/src/engines/ where there are three files labelengine.h, labelengine.cpp and labelsettingswidget.ui. I presume that if one can modify these files one may also activate in a way the Custom Label settings. But this also presume the recompilation of the sources. Maybe it's a better choice to try a dialog with the authors (http://avogadro.openmolecules.net/wiki/Main_Page).

Mihai
"A scientist is someone whose curiosity survives education's assaults on it". Sir Hermann Bondi
albert

Re: Avogadro Customization

Post by albert »

vortex59 wrote:Hi Albert!

I think the "Custom" field in "Label settings" in not yet useable. If you have programming skills you may look in the source files /avogadro-1.0.0/libavogadro/src/engines/ where there are three files labelengine.h, labelengine.cpp and labelsettingswidget.ui. I presume that if one can modify these files one may also activate in a way the Custom Label settings. But this also presume the recompilation of the sources. Maybe it's a better choice to try a dialog with the authors (http://avogadro.openmolecules.net/wiki/Main_Page).

Mihai
Once again, thank you for your help. I have followed your instructions and am awaiting the results.
albert

Re: Avogadro Customization

Post by albert »

albert wrote:I've installed the molecular visualization tool, Avogadro (0.9.7) and want to customize the labeling of individual atoms, however, when the settings, under label, is changed to "custom", nothing happens.
This is an extraordinary animation tool. It would be nice to find out how to change this setting. Or even the basics of the label file.
This was recently implemented in the latest version, thanks to the diligent Avogadro developers.

In fact, the labeling menu is very comprehensive now.

Thanks Avogadro Dev team! :D
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: Avogadro Customization [SOLVED]

Post by remoulder »

Glad you got everything working in the end. If there was anything special you had to do, perhaps you could write a tutorial in the Howto section to help any other users wanting to use this app?
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
Locked

Return to “Software & Applications”