Re: [gmx-users] extra gro file generation

2013-11-05 Thread sarah k
Dear Riccardo Concu and Mirco Wahab,

Thanks for your perfect responses.

Regards,
Sarah
-- 
gmx-users mailing [email protected]
http://lists.gromacs.org/mailman/listinfo/gmx-users
* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
* Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to [email protected].
* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists


Re: [gmx-users] extra gro file generation

2013-11-05 Thread Mirco Wahab

On 05.11.2013 10:04, sarah k wrote:

I'm going to perform a molecular dynamics simulation on a protein. As a
default the simulation gives one final *.gro file. I need to get a .gro
file after each say 500 ps of my simulation, in addition of the final file.
How can I do so?

Riccardo already gave the important hints in another posting,
here are some additional explanations.

# first, generate an empty subdirectory in order to keep
# the simulation directory clean. The rm command is
# important if you repeat these steps

$> mkdir -p GRO/ ; rm -rf GRO/*.gro

# then, decide which part of the system you need:
# 0 - evgerything
# 1 - the protein
# 2 - the cofactor (if any)
# Remember: these numbers correspond to the order of molecules
# named in the .top-file. If your protein is "1" and you
# need only that, do a

echo "1" | trjconv -b 500 -noh -novel -skip 2 -sep -nzero 5 -o GRO/out.gro

# this will dump the system part "1" (the protein or whatever),
# starting from 500 ps (-b) and saving every 2'nd trajectory snapshot.

For each option to "trjconv" (-noh, -novel), please read the manual 
(where all of this can be found).


Regards

M.


--
gmx-users mailing [email protected]
http://lists.gromacs.org/mailman/listinfo/gmx-users
* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
* Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to [email protected].

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


Re: [gmx-users] extra gro file generation

2013-11-05 Thread Riccardo Concu
Dear Sarah,
you have to use the trjconv command with the flags -b -e and -sep.
For example: trjconv -f xxx.trr -s xxx.tpr -o out.gro -b (initial frame
to read in ps) -e (last frame to read in ps) -sep
Regards
El mar, 05-11-2013 a las 01:04 -0800, sarah k escribió:
> Dear all,
> 
> I'm going to perform a molecular dynamics simulation on a protein. As a
> default the simulation gives one final *.gro file. I need to get a .gro
> file after each say 500 ps of my simulation, in addition of the final file.
> How can I do so?
> 
> Best regards,
> Sarah Keshavarz


-- 
gmx-users mailing [email protected]
http://lists.gromacs.org/mailman/listinfo/gmx-users
* Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
* Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to [email protected].
* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists