From: Ramon Crehuet (rcsqtc_at_iiqab.csic.es)
Date: Wed Jul 27 2005 - 11:18:53 CDT

Hi all,
  I have a problem writing a tcl script. The following line

set sel [atomselect top "resid 5 and chain $names($i) and not name
"[0-9]?H.*" "]

gives the error:
extra characters after close-quote
Looking at previous e-mail from the list, I tried:

set sel [atomselect top {resid 5 and chain $names($i) and not name
"[0-9]?H.*" }]

but then I get:
ERROR) Selection terminated too early
syntax error
atomselect: cannot parse selection text: chain $names($i) and resid 5 to
114 and not name "[0-9]?H.*"

It's a pity because these two work:
    set sel [atomselect top "chain $names($i) "]
    set sel [atomselect top {resid 5 and not name "[0-9]?H.*"}]

but I don't know how to combine them...
Cheers,

Ramon

PS. names is an array defined as:
array set names {0 A 1 B 2 C 3 D 4 E 5 F}