Re: [AMBER] load amber trj using vmd automatically

From: Matthew Guberman-Pfeffer via AMBER <amber.ambermd.org>
Date: Tue, 7 Feb 2023 20:45:12 +0000

Laura, a quick dirty fix is the following

Use CPPTRAJ to concatenate the trajectories and convert to dcd

parm <topology>.parm7
trajin <traj1>.nc
trajin <traj2>.nc

Trajout outtraj.dcd CHARMM

run
quit

Then, load the dcd into VMD; you can use the parm7 file (no need to convert to psf)

vmd -parm7 < <topology>.parm7 -dcd <outtraj>.dcd waitfor all

Hope that helps!

Best,
Matthew




From: laura zhang via AMBER <amber.ambermd.org>
Date: Tuesday, February 7, 2023 at 3:18 PM
To: Matthew Guberman-Pfeffer via AMBER <amber.ambermd.org>
Subject: [AMBER] load amber trj using vmd automatically
*Message sent from a system outside of UConn.*


Dear Amber users,

I generated multiple amber trj files. I tried to load all the trj files using a tcl code with the content as below:

set mol [mol new pcsk9.wet.complex.parm7 type parm7]
mol addfile pcsk9.wet.complex.pdb
for {set i 10 } {$i < 13 } { incr i } {
mol addfile $i.prod-unwrap.trj
}

Then I typed the following on the command line to run it:
> vmd -dispdev text -e add_dcd.tcl

But I got the following error message on the screen:

gromacsplugin) Cannot read header fromm '10.prod-unwrap.trj', no error
ERROR) Could not read file 10.prod-unwrap.trj
Unable to load file '10.prod-unwrap.trj' using file type 'trj'.

I am wondering where is wrong in above. How to fix it? Thanks a lot.

Laura
_______________________________________________
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%7C6350ac7a7ae349dfb9a208db09486c24%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C638113978886008850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CgkCrDJ08O2MvN0dX%2F5ND%2FCodJPazN33Xfe2hPQmIeM%3D&reserved=0
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Feb 07 2023 - 13:00:03 PST
Custom Search