From: Giacomo Fiorin (giacomo.fiorin_at_gmail.com)
Date: Mon Sep 24 2018 - 06:47:57 CDT

In general, VMD supports several Tcl commands to operate on vectors, and
the following plugin:
https://github.com/jhenin/vecexpr
enables many more options.

Giacomo

On Sat, Sep 22, 2018 at 9:42 AM subramanian vidhyasankar <svsquery_at_gmail.com>
wrote:

> Dear vmd users i tried to renumber the residues in psf file using the
> following script
>
> set sel [atomselect top all]
> $sel set resid [$sel get residue]
> $sel writepdb renumbered.psf
>
> but the number starts from zero instead of one . Please give me
> rectification of my script to give residues from number 1
>
>
> with regards
> S.vidhyasankar
>
>

-- 
Giacomo Fiorin
Associate Professor of Research, Temple University, Philadelphia, PA
Contractor, National Institutes of Health, Bethesda, MD
http://goo.gl/Q3TBQU
https://github.com/giacomofiorin