From: Oliver Beckstein (oliver_at_biop.ox.ac.uk)
Date: Wed Feb 11 2004 - 18:05:24 CST

Judging from the way that your email arrives in my email program you have
chosen some funny opening quotes in most of your atomselect commands.
Perhaps try normal quotes (").

I have marked all 'funny quotes' that I could see below.

> I get the error: usage: atomselect <command> [args...]

[snip]
> set ecoord1 [atomselect top "residue ESI and type C3" frame $iframe]
> set ecoord2 [atomselect top “residue ESI and type C6" frame $iframe]
                              ^funny quote ^correct
> lassign [$ecoord1 get {x y z}] pos1
> lassign [$ecoord2 get {x y z}] pos2
> set esivec [vecsub $pos1 $pos2]
> set nesivec [vecnorm $esivec]
> set pcoord1 [atomselect top “residue PH1 and type C1" frame $iframe"]
                              ^ funny quote
> set pcoord2 [atomselect top “residue PH1 and type C4" frame $iframe"]
                              ^ funny quote
> lassign [$pcoord1 get {x y z}] pos3
> lassign [$pcoord2 get {x y z}] pos4
> set phivec [vecsub $pos3 $pos4]
> set nphivec [vecnorm $phivec]
> lassign [vecdot $nesivec $nphivec] vdot
> puts $fileId “The dot product is $vdot”
               ^ funny quote ^ funny quote
> }
> close $fileId
> }
>

-- 
Oliver Beckstein * oliver_at_biop.ox.ac.uk
 http://sansom.biop.ox.ac.uk/oliver/