File: luafilter.lua

package info (click to toggle)
genometools 1.6.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 50,412 kB
  • sloc: ansic: 271,241; ruby: 30,339; python: 4,880; sh: 3,193; makefile: 1,194; perl: 219; pascal: 159; haskell: 37; sed: 5
file content (17 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if not gtdata_doc_dir then gtdata_doc_dir = "./" end
print ([[
File format for option '-rule_files':

The files supplied to option '-rule_files' define a function for
filtering by user given criteria (see example below):
]])
print(io.open(gtdata_doc_dir.."luafilter_function.lua"):read("*a"))
print([[The above function iterates over all children of 'gn' and
checks whether there is a node of type 'exon'. If there is such a
node the function returns 'false', indicating that the parent node
'gn' will not be sorted out.]])
print([[

NOTE:]])
print([[The function must be named 'filter' and must return 'false',
indicating that the node survived the filtering process.]])