Hi Dale
Sorry you've found a problem with the import task, you're right that
this is must a rarely exercised piece of code since I think that the
problem is actually a syntax error in this section.
I think that the following change to the file "import.script" (which
resides in $CCP4/ccp4i/scripts/) will fix it:
# Read the two TNT files and append a freeRflag column
# Merge the two files into tmptnt
! OpenFile [set tmptnt [GetTmpFileName -ext tnt]] fo]
set flag 1.0
foreach file [list $HKL_INPUT_FILE $TNT_INPUT_FILE] {
--- 35,41 ----
# Read the two TNT files and append a freeRflag column
# Merge the two files into tmptnt
! OpenFile [set tmptnt [GetTmpFileName -ext tnt]] fo
set flag 1.0
foreach file [list $HKL_INPUT_FILE $TNT_INPUT_FILE] {
i.e. remove the trailing "]" character on the "OpenFile" line.
Please let me know if this works for you - if it doesn't then could you
send me an example of a TNT file so that I can try the conversion
myself? (Sorry, I don't seem to be able to find any examples here.)
Best wishes
Peter
Dale Tronrud wrote:
> Hi,
>
> I have a basic operational problem. I am trying to convert a pair of
> TNT HKL format files into an MTZ file using the CCP4I interface. (I realize
> this is probably not the most heavily exercised code in the package.)
> When I run the task I get the following output.
>
> #CCP4I VERSION CCP4Interface 1.4.4.2
> #CCP4I SCRIPT LOG import
> #CCP4I DATE 08 Feb 2007 22:59:11
> #CCP4I USER dale
> #CCP4I PROJECT TST
> #CCP4I JOB_ID 17
> #CCP4I SCRATCH /tmp/dale
> #CCP4I HOSTNAME terbium.uoregon.edu
> #CCP4I PID 18342
>
>
> #CCP4I TERMINATION STATUS 0 Error from script
> /usr/local/ccp4-6.0.2/ccp4i/scripts/import.script: can't read "fo": no
> such variable
> #CCP4I TERMINATION TIME 08 Feb 2007 22:59:11
> #CCP4I MESSAGE Task failed
>
> I'm afraid I'm not fluent in TCL/TK. Can anyone tell me what
> I should do to get this working?
>
> Thanks,
> Dale Tronrud
--
___________________________________________________
Peter J Briggs, [log in to unmask] Tel: +44 1925 603826
CCP4, [log in to unmask] Fax: +44 1925 603825
http://www.ccp4.ac.uk/
Daresbury Laboratory, Daresbury, Warrington WA4 4AD
|