Skip to content
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

File tool #14

Open
steto123 opened this issue Oct 26, 2023 · 5 comments
Open

File tool #14

steto123 opened this issue Oct 26, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@steto123
Copy link

Analysing an NMR calculation from Orca in ChimeraX is nice. But i can not easily assign the isotropic schift values for specific atoms. In the fiile tool i find a table weith shift, element, intensity und ndx. But no explanation what ndx mean.
Can zou add a row with atom name like C2 or H5. This can be helpful for analysing NMR calculations.

Thanks for your nice work

@steto123 steto123 added bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request question Further information is requested wontfix This will not be worked on labels Oct 26, 2023
@ajs99778
Copy link
Contributor

Thank you for the suggestion, I will add that in the next version.

In the meantime, you can label atoms with their serial number, which will be one larger than ndx. To do so, you can use the "Index Labels" preset under Presets -> SEQCROW on the ChimeraX menu. You can also run
label ##atoms atoms text "{0.serial_number}"
on the ChimeraX command line. This will label the atoms (atoms) of atomic models (##atoms) with each of their serial numbers (text "{0.serial_number}").

If you're comfortable with Python, you can also have ChimeraX print the numbers to the log when you hover over an atom. The ChimeraX developers have some sample code for doing that here: https://rbvi.github.io/chimerax-recipes/hover/hover.html. You would want to print the "serial_number" attribute instead of the "scene_coord" shown in the sample.

@ajs99778 ajs99778 removed bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists wontfix This will not be worked on labels Oct 26, 2023
@steto123
Copy link
Author

Hello,
Many, many thanks. It is really helpful for me.

greetings and Happy Halloween

Steffen

@steto123
Copy link
Author

steto123 commented Nov 9, 2023 via email

@ajs99778
Copy link
Contributor

ajs99778 commented Nov 9, 2023

Honestly, I'm not sure what's going on here. I tried this code, and I don't see any error messages. If you did some testing earlier, you might want to restart ChimeraX to clean out the older versions of the script.

It looks like you're storing the script file in OneDrive. I've heard of people having nonsensical issues with scripts saved OneDrive or Dropbox folders. Usually it's like a 'permission denied' or 'file does not exist' type of error in those cases, but maybe try moving the script file somewhere else?

One change I would suggest is to use message = 'Atom %s index %i' % (str(atom), indi) so the index is printed as an integer instead of a decimal number.

@steto123
Copy link
Author

steto123 commented Nov 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants