VMD-L Mailing List
From: Ramon Crehuet (rcsqtc_at_iiqab.csic.es)
Date: Wed Jul 27 2005 - 11:18:53 CDT
- Next message: John Stone: "Re: tcl syntax problem"
- Previous message: John Stone: "Re: SAS values for a residue"
- Next in thread: John Stone: "Re: tcl syntax problem"
- Reply: John Stone: "Re: tcl syntax problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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}
- Next message: John Stone: "Re: tcl syntax problem"
- Previous message: John Stone: "Re: SAS values for a residue"
- Next in thread: John Stone: "Re: tcl syntax problem"
- Reply: John Stone: "Re: tcl syntax problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]