Bob, thank you so much for your help, your method is so much simpler and more straightforward than what I was trying to do. My outer while loop *was* in fact working to read in the correct file data, but my clunky attempt to start creating the data list at the 2nd line wasn't working at all (as...
By the way, here are the first few lines of one of the sorts of files I need to read, so you can see the format I am dealing with. The column I want to store in the trpshift list is the 4th one, the pdif column.
#0 pdifc4: indx,amino,rave,pdif,runsum,segid,resid
1 LYS 32.66...
Hi there all,
I have the below code, which is to be interpreted in the software package VMD, and I am having some basic Tcl problems with it. Basically what I want to do is to open a file, discard the first line of that file, and then store the numerical value of the 4th column of the file in a...
feherke, thank you!! This was exactly what I needed! It never occurred to me to treat each element of the $data list as a list itself, and then just retrieve the second element of it. This is perfect, thanks so much for your patience and help!
Hi feherke, thanks very much for your help. OK, now I see that data is indeed a list and can be accessed using the suite of list commands. The problem I still have though is that I now have a list "data" with entries being something like:
22.97 -10.03061
36.35 20.01254
35.59 0.00575...
Hello there! I would sincerely appreciate any advice you folks can offer, I've been trying to figure all this out for a while now with little luck. Though I have experience in C++ and FORTRAN I am pretty new to Tcl and am still trying to wrap my head around some of its features.
I have a series...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.