[gt-users] gt splitfasta -numfiles patch (was: New feature announcement)
Gordon Gremme
gremme at gmail.com
Thu Jan 29 18:41:25 CET 2009
>> $ lua scripts/src_check
>> lua: scripts/src_check:25: unexpected symbol near `#'
>> $ lua -v
>> Lua 5.0.3 Copyright (C) 1994-2006 Tecgraf, PUC-Rio
>
> Usually the script should be executable by itself if a Lua interpreter
> is installed:
>
> $ scripts/src_check
> Usage: scripts/src_check file [...]
> Check C sources for accordance with coding standards.
> $ lua -v
> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
>
> Unfortunately I do not have access to this Lua version. The problem
> seems to be the "#arg" expression in l. 25 which refers to the number of
> elements in the argument array. Has the '#' operator been added only
> recently to the Lua language? I am puzzled... Can you try it again with
> a newer interpreter version? Or try replacing '#arg' with the more basic
> 'table.getn(arg)' which should also return the size of the array.
Yes, the '#' operator has been added in Lua 5.1.
But you can also use the Lua binary in the bin/ directory of
GenomeTools or the gt binary itself (it does include a current Lua
interpreter and is able to execute Lua scripts).
Gordon
More information about the gt-users
mailing list