Re: [gmx-users] Re: trjconv for pbc

2013-11-03 Thread Justin Lemkul



On 11/3/13 7:12 AM, rankinb wrote:

That last procedure works.  I really appreciate your help.  The only other
question I have is related to the selection process.  Is there a way to
select the oxygen atoms of water within a certain distance of a molecule, as
well as the corresponding hydrogen atoms on the water molecule?  Right now,
I am able to select hydrogen atoms and oxygen atoms that are within a
certain distance, but I would like to only select whole water molecules
whose oxygen atoms are within a cutoff.



Start your selection string with "same residue as" and it will select the whole 
residue for any atom that satisfies the selection criteria.


-Justin

--
==

Justin A. Lemkul, Ph.D.
Postdoctoral Fellow

Department of Pharmaceutical Sciences
School of Pharmacy
Health Sciences Facility II, Room 601
University of Maryland, Baltimore
20 Penn St.
Baltimore, MD 21201

[email protected] | (410) 706-7441

==
--
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


[gmx-users] Re: trjconv for pbc

2013-11-03 Thread rankinb
That last procedure works.  I really appreciate your help.  The only other
question I have is related to the selection process.  Is there a way to
select the oxygen atoms of water within a certain distance of a molecule, as
well as the corresponding hydrogen atoms on the water molecule?  Right now,
I am able to select hydrogen atoms and oxygen atoms that are within a
certain distance, but I would like to only select whole water molecules
whose oxygen atoms are within a cutoff.

Thanks,
Blake

PhD Candidate
Purdue University
Ben-Amotz Lab

--
View this message in context: 
http://gromacs.5086.x6.nabble.com/trjconv-for-pbc-tp5012160p5012188.html
Sent from the GROMACS Users Forum mailing list archive at Nabble.com.
-- 
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] Re: trjconv for pbc

2013-11-02 Thread Justin Lemkul



On 11/2/13 12:25 PM, rankinb wrote:

Here are the steps that I used:

1.  trjconv -pbc whole -dump 37.875
2.  trjconv -pbc nojump
3.  trjconv -center
4.  g_select to make an index containing the atoms of interest
5.  trjconv to extract coordinates

Regardless of whether step 1 is used or not, the resulting coordination
shell configuration is not complete in the sense that it looks like the
figure I posted previously.  In all steps, I used the same .tpr file...is it
possible that I need to generate a new one after step 1?



1. trjconv -center -pbc mol -dump 37.875

As long as you're choosing an appropriate index group here (i.e., the single 
solute molecule of interest), you should not need any further invocations of 
trjconv before extracting coordinates.  Pop open the resulting coordinate file 
in your favorite visualization software and verify.  It should be very obvious 
if it worked as expected.


2. Make selection
3. Extract

-Justin

--
==

Justin A. Lemkul, Ph.D.
Postdoctoral Fellow

Department of Pharmaceutical Sciences
School of Pharmacy
Health Sciences Facility II, Room 601
University of Maryland, Baltimore
20 Penn St.
Baltimore, MD 21201

[email protected] | (410) 706-7441

==
--
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


[gmx-users] Re: trjconv for pbc

2013-11-02 Thread rankinb
Here are the steps that I used:

1.  trjconv -pbc whole -dump 37.875
2.  trjconv -pbc nojump
3.  trjconv -center
4.  g_select to make an index containing the atoms of interest
5.  trjconv to extract coordinates

Regardless of whether step 1 is used or not, the resulting coordination
shell configuration is not complete in the sense that it looks like the
figure I posted previously.  In all steps, I used the same .tpr file...is it
possible that I need to generate a new one after step 1?

Thanks,
Blake

PhD candidate
Purdue University
Ben-Amotz Lab

--
View this message in context: 
http://gromacs.5086.x6.nabble.com/trjconv-for-pbc-tp5012160p5012172.html
Sent from the GROMACS Users Forum mailing list archive at Nabble.com.
-- 
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


[gmx-users] Re: trjconv for pbc

2013-11-02 Thread rankinb
Here is a snapshot of what I was able to extract, if that helps.

 

Blake

PhD candidate
Purdue University
Ben-Amotz Lab

--
View this message in context: 
http://gromacs.5086.x6.nabble.com/trjconv-for-pbc-tp5012160p5012166.html
Sent from the GROMACS Users Forum mailing list archive at Nabble.com.
-- 
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] Re: trjconv for pbc

2013-11-02 Thread Justin Lemkul



On 11/2/13 11:23 AM, rankinb wrote:

Tsjerk,

Thanks for your reply.  I have tried using the center option, but ran into
similar problems.  Here are the exact commands that I used:

g_select -f file.xtc -s file.tpr -n index.ndx -select 'group 14 and within
0.71 of group 13' -b 37.875 -e 37.875 -on index1 (where group 14 contains
the water molecules and group 13 is the solute molecule)

trjconv -s file.tpr -n index1.ndx -f file.xtc -o out.gro -b 37.875 -e 37.875

trjconv -f out.gro -s file.tpr -n index.ndx -o out2.gro -center

Does this procedure seem reasonable?



Right commands, wrong order.

1. Center on the solute
2. Make selection
3. Extract coordinates

Note that specifying -b and -e with the same time can fail in some cases; use 
-dump instead.


-Justin

--
==

Justin A. Lemkul, Ph.D.
Postdoctoral Fellow

Department of Pharmaceutical Sciences
School of Pharmacy
Health Sciences Facility II, Room 601
University of Maryland, Baltimore
20 Penn St.
Baltimore, MD 21201

[email protected] | (410) 706-7441

==
--
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


[gmx-users] Re: trjconv for pbc

2013-11-02 Thread rankinb
Tsjerk,

Thanks for your reply.  I have tried using the center option, but ran into
similar problems.  Here are the exact commands that I used:

g_select -f file.xtc -s file.tpr -n index.ndx -select 'group 14 and within
0.71 of group 13' -b 37.875 -e 37.875 -on index1 (where group 14 contains
the water molecules and group 13 is the solute molecule)

trjconv -s file.tpr -n index1.ndx -f file.xtc -o out.gro -b 37.875 -e 37.875

trjconv -f out.gro -s file.tpr -n index.ndx -o out2.gro -center

Does this procedure seem reasonable?

Thanks,
Blake

--
View this message in context: 
http://gromacs.5086.x6.nabble.com/trjconv-for-pbc-tp5012160p5012162.html
Sent from the GROMACS Users Forum mailing list archive at Nabble.com.
-- 
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