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

Extract matrix data from the occupancy plot #11

Open
Shweta2095 opened this issue Nov 19, 2024 · 4 comments
Open

Extract matrix data from the occupancy plot #11

Shweta2095 opened this issue Nov 19, 2024 · 4 comments

Comments

@Shweta2095
Copy link

Shweta2095 commented Nov 19, 2024

Hello,
I am currently using the software to analyze hydrogen bond data and visualize the occupancy plot. However, I was wondering if there is a way to obtain the raw data used to generate the occupancy plot in a matrix format for further analysis.
Is there already a way to achieve this in the current version or could you provide steps or guidance on how to extract this data manually?
Thank you for your time and support.

@maltesie
Copy link
Owner

Hi,

right now you can only export the analysis summary under File -> export analysis summary. But that only contains the average occupancy across your trajectory. Would you need the Matrix with Pairs as columns and time as rows?

@maltesie
Copy link
Owner

If you want to do it your self, its probably best to export the data in the function _set_results in core/network.py . results is a dictionary with the partners as keys and the time series in a numpy array as values. If you compute hbonds, the array is boolean, for water wires its integers indicating the number of water molecules and inf if no wire was detected.

@Shweta2095
Copy link
Author

Thank you for your suggestions. I will try to export the data for my analysis.

@maltesie
Copy link
Owner

Let me know if you need any more info. I will try to find some time in the next weeks to implement this, but I cant promise anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants