From: Joaquim Rui de Castro Rodrigues (
Date: Tue Jun 16 2015 - 12:56:15 CDT


Use lsort to sort the list in increasing order; and then lindex to retrieve the first item.

J Rui Rodrigues

De: [] Em Nome De Mehdi Bagherpour []
Enviado: terça-feira, 16 de Junho de 2015 17:01
Assunto: vmd-l: minimum value of index numbers

Dear vmd users,

I want to find minimum value of index of my selected atom atoms

for {set x 0} {$x <= 334} {incr x} {
set sel1 [atomselect top "name P and within 6 of index $x"]

set sel2 [$sel1 get index]