You have to dump the last frame: for example*  -10000 *for a 10000ps/10ns
trajectory

On Tue, Feb 26, 2019 at 4:31 PM Sergio Perez <sperezcon...@gmail.com> wrote:

> Dear gmx comunity,
>
> I have tried to get the last structure from a trajectory using:
>
> gmx_d trjconv -pbc mol -ur compact -s topol.tpr  -f traj_comp.part0001.xtc
>   -o out.gro -n index.ndx -dump -1
>
> But I get the first structure. Maybe the -1 syntax that is used in python
> for example does not work here, althought the default value being -1 makes
> it a little confusing.
>
> I am using gmx 2018.1.
>
> In addition is there a way to get the last structure without knowing its
> frame number (like I intended to do). Just to make easier automatization.
>
> Thank you all very much and keep up the good work!
>
> Sergio PĂ©rez-Conesa
> --
> Gromacs Users mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> send a mail to gmx-users-requ...@gromacs.org.



-- 
Aditi
-- 
Gromacs Users mailing list

* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a 
mail to gmx-users-requ...@gromacs.org.

Reply via email to