[gmx-users] mapping indices in posre/topol files to those in index files
Irem Altan
irem.altan at duke.edu
Mon Jul 25 21:14:16 CEST 2016
I am trying to assign different force constants to different atoms. I also have a handful of atoms that I would like to freeze (specifically the atoms that drift away from their PDB positions).
Best,
Irem
On Jul 25, 2016, at 3:06 PM, Justin Lemkul <jalemkul at vt.edu<mailto:jalemkul at vt.edu>> wrote:
On 7/25/16 3:03 PM, Irem Altan wrote:
Hi,
I have .pdb file that contains of three copies of a protein with two chains each. For convenience I had named both chains of each copy identically. I therefore have a .pdb file that looks like this:
ATOM … A …
….
ATOM … A …
TER
ATOM … A …
….
ATOM … A …
TER
ATOM … B …
….
ATOM … B …
TER
ATOM … B …
….
ATOM … B …
TER
ATOM … C …
….
ATOM … C …
TER
ATOM … C …
….
ATOM … C …
TER
When I do pdb2gmx, this produces the following topol files:
topol_Protein_chain_A.itp
topol_Protein_chain_A2.itp
topol_Protein_chain_B.itp
topol_Protein_chain_B2.itp
topol_Protein_chain_C.itp
topol_Protein_chain_C2.itp
(the posre_* files are named similarly).
The indices of atoms in these files always start from 1. However, when I create an index file, the indices are such that all atoms are numbered from 1 to the total number of atoms in the system. Therefore atom #1 in a topol file maps to some other number in the index file. The question is, in what order the atoms are counted? After the last atom of chain_A, do I continue with the first atom of chain_A2, etc.?
What are you trying to accomplish? Position restraint numbering is based on [moleculetype] numbering. Index groups are based on global atom numbering in the coordinate file. There are different conventions because they are used for different things.
-Justin
--
==================================================
Justin A. Lemkul, Ph.D.
Ruth L. Kirschstein NRSA Postdoctoral Fellow
Department of Pharmaceutical Sciences
School of Pharmacy
Health Sciences Facility II, Room 629
University of Maryland, Baltimore
20 Penn St.
Baltimore, MD 21201
jalemkul at outerbanks.umaryland.edu<mailto:jalemkul at outerbanks.umaryland.edu> | (410) 706-7441
https://urldefense.proofpoint.com/v2/url?u=http-3A__mackerell.umaryland.edu_-7Ejalemkul&d=CwIGaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=r1Wl_e-3DAvYeqhtCRi2Mbok8HBpo_RH4ll0E7Hffr4&m=av55Tb9MVIbLryESZPrWpG8xQAMbo6wtkL-Bk_bSCWo&s=6Gb0peFSAVPJPPbvAuWFOdzVPH5H6dYuBFLyIhpUa2M&e=
==================================================
--
Gromacs Users mailing list
* Please search the archive at https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gromacs.org_Support_Mailing-5FLists_GMX-2DUsers-5FList&d=CwIGaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=r1Wl_e-3DAvYeqhtCRi2Mbok8HBpo_RH4ll0E7Hffr4&m=av55Tb9MVIbLryESZPrWpG8xQAMbo6wtkL-Bk_bSCWo&s=kO-yGrEQ6Qjg-7ekYz2DqkBFV1X0a95UpKu-bZlBXe0&e= before posting!
* Can't post? Read https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gromacs.org_Support_Mailing-5FLists&d=CwIGaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=r1Wl_e-3DAvYeqhtCRi2Mbok8HBpo_RH4ll0E7Hffr4&m=av55Tb9MVIbLryESZPrWpG8xQAMbo6wtkL-Bk_bSCWo&s=EOs5y6w72mIB2ZYqL50QWA_QoLit-AZ3DwzgyDiv5wU&e=
* For (un)subscribe requests visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__maillist.sys.kth.se_mailman_listinfo_gromacs.org-5Fgmx-2Dusers&d=CwIGaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=r1Wl_e-3DAvYeqhtCRi2Mbok8HBpo_RH4ll0E7Hffr4&m=av55Tb9MVIbLryESZPrWpG8xQAMbo6wtkL-Bk_bSCWo&s=-duUYi_POrHN32HkaPOJdB8rRT88ETYZDJFydmwnBEQ&e= or send a mail to gmx-users-request at gromacs.org<mailto:gmx-users-request at gromacs.org>.
More information about the gromacs.org_gmx-users
mailing list