Re: [AMBER] {SPAM?} Separating a trajectory by output from clusterdihedral

From: Osman, Roman via AMBER <amber.ambermd.org>
Date: Sun, 23 Apr 2023 18:36:27 +0000

Matthew,
Thanks I can try your second suggestion. Looks easier.

Roman Osman
Icahn School of Medicine at Mount Sinai
________________________________
From: Matthew Guberman-Pfeffer <matthew.guberman-pfeffer.uconn.edu>
Sent: Sunday, April 23, 2023 2:15:28 PM
To: Osman, Roman <roman.osman.mssm.edu>; AMBER Mailing List <amber.ambermd.org>
Subject: Re: {SPAM?} [AMBER] Separating a trajectory by output from clusterdihedral

USE CAUTION: External Message.

Hi Roman,



The onlyframes option to trajout takes a range of frames. Maybe you can specify multiple ranges separated by commas. But I imagine it may be difficult to construct comma-separated ranges from the output you have.



Another option may be to use a script to write a cpptraj intput file with 25,000 lines like the following:

trajin <name_of_traj> <frame #> <frame #> 1



In other words, load in each frame for a given cluster separately, and then save all the loaded frames for that cluster to a new (pseudo) trajectory. Repeat for the second cluster. I’ve used this strategy before, but not for so many frames; you may encounter a memory issue.



I hope these suggestions help.



Best,

Matthew







From: Osman, Roman via AMBER <amber.ambermd.org>
Date: Sunday, April 23, 2023 at 1:39 PM
To: AMBER Mailing List <amber.ambermd.org>
Subject: {SPAM?} [AMBER] Separating a trajectory by output from clusterdihedral

*Message sent from a system outside of UConn.*


Hello,

I would like to separate a trajectory by the clusters produced by clusterdihedral.
I have two dihedrals that cluster into two clusters with nearly equal populations because their changes are correlated.
In the out file from cpptraj I get a list of frames that belong to each cluster, but because the trajectory has 50000 snapshots the list is quite long (~25,000 entries).
The question is whether I can use this list to write the trajectory with onlyframes and supply this long list.

Or perhaps is another way to cluster the trajectory by the dihedrals and write the two clusters separately.

Thanks for your help.

Roman Osman
Professor
Department of Pharmacological Sciences
Icahn School of Medicine at Mount Sinai

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ambermd.org%2Fmailman%2Flistinfo%2Famber&data=05%7C01%7Cmatthew.guberman-pfeffer%40uconn.edu%7C0f81d4cad3b34cc3099508db4421a462%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C638178683513102643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zlEma72%2BAu%2BLChkDI5XdBFyAl3yLddp9JS9RB6TEJRA%3D&reserved=0<https://urldefense.proofpoint.com/v2/url?u=https-3A__nam10.safelinks.protection.outlook.com_-3Furl-3Dhttp-253A-252F-252Flists.ambermd.org-252Fmailman-252Flistinfo-252Famber-26data-3D05-257C01-257Cmatthew.guberman-2Dpfeffer-2540uconn.edu-257C0f81d4cad3b34cc3099508db4421a462-257C17f1a87e2a254eaab9df9d439034b080-257C0-257C0-257C638178683513102643-257CUnknown-257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0-253D-257C3000-257C-257C-257C-26sdata-3DzlEma72-252BAu-252BLChkDI5XdBFyAl3yLddp9JS9RB6TEJRA-253D-26reserved-3D0&d=DwMF-g&c=shNJtf5dKgNcPZ6Yh64b-ALLUrcfR-4CCQkZVKC8w3o&r=q8vs_fbTOEJjOKNIgjun94sbqYxVkxfOTdUE1xTyUk0&m=NI5vbA5LvNPPZoY0jXzBlPEPNxqZev9JgANqtDiOe-UgWwMZOIJlFLM5C3Qcpzj0&s=In8daa18zR-UJH3sQ3WyXdw3lBrqKf1wrtd-2nFwPog&e=>
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sun Apr 23 2023 - 12:00:02 PDT
Custom Search