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

Plot against z-coordinates #44

Open
askusay opened this issue Apr 27, 2022 · 1 comment
Open

Plot against z-coordinates #44

askusay opened this issue Apr 27, 2022 · 1 comment

Comments

@askusay
Copy link

askusay commented Apr 27, 2022

Hi CHAP team,

I have 2 CHAP profiles for two aligned ion channels.

The channels are different in height and therefore have different centres of mass but their channels are aligned. when I plot their profiles they are not aligned, presumably because of the difference in them COMs.

I typically plot the radius against data["pathwayProfile"]["s"]. Would it be possible to plot against the z-coordinate? All simulation frames are aligned

Thanks

@DSeiferth
Copy link
Collaborator

Unfortunately, there is no option to change the pathway coordinate from COM to z-coordinate.
In future releases of CHAP, we plan to add this feature.

Regarding your plots:
You could find the z-coordinate of the COM of the structures (for example with MDAnalysis) and shift the data["pathwayProfile"]["s"] array by adding constants such that the radius profiles are aligned.

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