[gmx-users] about dumping the last frame
Tsjerk Wassenaar
tsjerkw at gmail.com
Mon Feb 2 10:06:30 CET 2009
Hi Shirin,
The sed-solution is:
sed -ne '/^MODEL/,/^ENDMDL/{/^MODEL/{x;d};H}' -e '${x;p}' traj.pdb
Which might come in handy as an alias (csh-style:)
alias lastmodel "sed -ne "/^MODEL/,/^ENDMDL/{/^MODEL/{x;d};H}" -e "${x;p}" \!*'
Hope it helps,
Tsjerk
On Mon, Feb 2, 2009 at 8:03 AM, nahren manuel <meetnahren at yahoo.com> wrote:
> Dear Awasthi,
> go through GROMACS Introductory tutorial...
>
> trjconv -f abc.pdb -s abc.tpr -o 3frame.pdb -dump 3
>
> You can also open the pdb file in VMD and save only the last frame
>
> SIMPLE !
>
> nahren
>
> --- On Mon, 2/2/09, Shirin Awasthi <shirin.mtechjnu at gmail.com> wrote:
>
> From: Shirin Awasthi <shirin.mtechjnu at gmail.com>
> Subject: [gmx-users] about dumping the last frame
> To: gmx-users at gromacs.org
> Date: Monday, February 2, 2009, 12:00 PM
>
> Hi.
>
> I have a protein model in pdb format after trjconv command.
> it has 3 frames, that is 3 consecutive models of the same protein.
> how do i dump only the last frame as my final model?
>
> --
> Shirin Awasthi
> M.Tech (CSB)
> Center for Computational Biology and Bioinformatics,
> School of Information Technology,
> Jawaharlal Nehru University,
> New Delhi,
> 110067
> INDIA.
>
> _______________________________________________
> gmx-users mailing list gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/search before posting!
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
>
> _______________________________________________
> gmx-users mailing list gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/search before posting!
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
>
--
Tsjerk A. Wassenaar, Ph.D.
Junior UD (post-doc)
Biomolecular NMR, Bijvoet Center
Utrecht University
Padualaan 8
3584 CH Utrecht
The Netherlands
P: +31-30-2539931
F: +31-30-2537623
More information about the gromacs.org_gmx-users
mailing list