[gmx-developers] template.c - calling residue name by atom number

David van der Spoel spoel at xray.bmc.uu.se
Tue Mar 14 20:55:54 CET 2006


Alan Dodd wrote:
> I'm attempting to convert some pdb-parsing scripts
> I've made to read gromacs trajectory formats using
> template.c.  My C skills are not too hot, so I
> apologise if this appears a very simple question.  How
> can you call the name of a residue containing an atom
> by the atom number, as opposed to by residue number? 
> Using *(top.atoms.resname[n]) unfortunately appears to
> do the latter.
> Thankyou for your time.
top.atoms.resname[top.atoms.atom[n].resnr]

> 
> Alan Dodd
> University of Bristol
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-developers-request at gromacs.org.


-- 
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,  	75124 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://folding.bmc.uu.se
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the gromacs.org_gmx-developers mailing list