resinfo

Print residue info for selected atoms.

resinfo [parm <name> | parmindex <#> | <#>] <mask>[short [maxwidth <#res>]] [out <file>]

[parm <name> | parmindex <#> | <#>] Name/tag or index of topology. Default is first loaded topology.
<mask> Mask selecting residues to print info for.
[short] Use a short 1 character residue name format
[maxwidth <#res>] Max # of residues to print in one line (default 50).
[out <file>] File to print to (default STDOUT).

Print residue information for atoms in <mask> for selected topology (first loaded topology by default) with format:

#Res   Name   First   Last   Natom   #Orig   #Mol   C

where #Res is the residue number, Name is the residue name, First and Last are the first and last atom numbers of the residue, Natom is the total number of atoms in the residue, #Orig is the original residue number (in PDB files),  #Mol is the molecule number and C is the chain ID. If short is specified then residues will be printed out in a condensed format. Each residue name will be shortened to 1 character, and residues are printed out in groups of 10, 5 groups to a line, with each line beginning with a residue number, e.g.

> resinfo short 4
1 MGFLAGKKIL ITGLLSNKSI AYGIAKAMHR EGAELAFTYV GQFKDRVEKL
51 CAEFNPAAVL PCDVISDQEI KDLFVELGKV WDGLDAIVHS IAFAPRDQLE

If the 1 character name for a residue is unknown it will be shown as the first letter of the residue name in lower-case.