Closed TianmingQu closed 2 years ago
Why don’t you just load dcd and pdb directly?
Oh, I really thought I have to convert. Because i want to do pca analysis and I saw your example says it needs to use the np and parm7 files😨
获取 Outlook for iOShttps://aka.ms/o0ukef
发件人: Hai Nguyen @.> 发送时间: Friday, October 8, 2021 4:22:39 PM 收件人: Amber-MD/pytraj @.> 抄送: Tianming Qu @.>; Author @.> 主题: Re: [Amber-MD/pytraj] Convert dcd and pdb to .np and .parm7 file (#1582)
Why don’t you just load dcd and pdb directly?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/Amber-MD/pytraj/issues/1582*issuecomment-939095354__;Iw!!Epnw_ITfSMW4!_4dOCyzxOVXZgvRIIk2U75Ofa2mPGRl8Ss6Qj2x7YM3llsr9eugfrEuGKwOW635OXkA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AQXNBSRYEH75LXM7T4I34STUF5HI7ANCNFSM5FUIN6EQ__;!!Epnw_ITfSMW4!_4dOCyzxOVXZgvRIIk2U75Ofa2mPGRl8Ss6Qj2x7YM3llsr9eugfrEuGKwOW9b2EF54$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!Epnw_ITfSMW4!_4dOCyzxOVXZgvRIIk2U75Ofa2mPGRl8Ss6Qj2x7YM3llsr9eugfrEuGKwOWnruQpDI$ or Androidhttps://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!Epnw_ITfSMW4!_4dOCyzxOVXZgvRIIk2U75Ofa2mPGRl8Ss6Qj2x7YM3llsr9eugfrEuGKwOWzFCxcig$.
So how can I load dcd and pdb file directly?
So how can I load dcd and pdb file directly?
Just like you would load with .nc and .parm7 files.
traj = pt.load('your.dcd', top='your.pdb')
Thanks! So then I can follow the instructions to do pca analysis with this dcd file directly, is this correct?
Yes.
It says: "RuntimeError: n_atoms = 0: make sure to load correct Topology filename or load supported topology (pdb, amber parm, psf, ...)"😭
do you have .psf
file? use it instread of .pdb
. I am sure that pytraj
(cpptraj under the hood) works well with .dcd file format.
I have several .psf file download from charmm-gui, should I use the step1_pdbreader.psf?
Just give it a try, I don't know much about charmm.
So is there any output for all the vectors? Based on my understanding on PCA there should be a vector on every Ca atom, right? I mean if I choose Ca to do the PCA analysis?
So is there any output for all the vectors? Based on my understanding on PCA there should be a vector on every Ca atom, right? I mean if I choose Ca to do the PCA analysis?
Please see the docs: https://amber-md.github.io/pytraj/latest/_api/pytraj.all_actions.html?highlight=pca#pytraj.all_actions.pca
So according to this doc, should set n_vecs = -1, correct?
Also another question is that, can pytraj be used to do cavity volume analysis in protein MD simulation? Sorry for my so many questions😰
Also another question is that, can pytraj be used to do cavity volume analysis in protein MD simulation? Sorry for my so many questions😰
I don't think so. Alternatively, you can use mdanalysis
or mdtraj
to see if they can.
Thanks again! Then do you know is there anyway I can use VMD to visualize these vectors?
I am sorry I don't know. May be try to understand the format and write the raw array to that format?
Thank you! You've helped a lot!
Thanks again! Then do you know is there anyway I can use VMD to visualize these vectors?
You can use the nmwiz
and related keywords for the diagmatrix
command in CPPTRAJ (not sure if pytraj has access to this but it might). This will output files in a format that can be read by the NMWIZ plugin for VMD which is used to visualize eigenvectors. I haven't tested it in a while but it should still work.
Sounds cool @drroe ! Is there any examples that I can take a look about how to use it?
Sounds cool @drroe ! Is there any examples that I can take a look about how to use it?
https://amberhub.chpc.utah.edu/introduction-to-principal-component-analysis/
(PS: I got that from google search "nmwiz cpptraj")
Hi, is pytraj available to do RMSF analysis?
Hi, is pytraj available to do RMSF analysis?
Hi, yes. Please see: https://amber-md.github.io/pytraj/latest/_api/pytraj.all_actions.html#pytraj.all_actions.atomicfluct
Please see that page for other types of analysis too. Cheers.
Dear all, How can I convert the dcd and pdb file to the .np and .parm7 file I need to use in pytraj?