Lua: the scripting language for OBITools #
Lua is a scripting language. Its name means moon in Portuguese. Its purpose is to provide an interpreter that can be easily integrated into software to add scripting capabilities. OBITools provides the
obiscript
command for this purpose. The
obiscript
command allows a small script to be applied to each selected sequence in a sequence file. The Lua interpreter used by
obiscript
is
GopherLua Version 1.1.1 which implements Lua version 5.1.
The aim of this section is not to be a full introduction to
Lua, but to show how to write a
Lua script that can be used with
obiscript
. A full documentation of
Lua is available on the official website of the language (
https://www.lua.org/manual/5.1).
The structure of a Lua script for
obiscript
#
📄 example.lua
|
|
The begin and finish function
#
The worker function
#
The obicontext to share information
#
The OBITools classes #
The BioSequence class
#
The BioSequenceSlice class
#
The Taxonomy class
#
The Taxon class
#
Dealing with the OBITools4 multithreading #
📄 extrem_quality.lua
|
|