File: regionmapping.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 (20 lines) | stat: -rw-r--r-- 827 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if not gtdata_doc_dir then gtdata_doc_dir = "./" end
print ([[

File format for option '-regionmapping':

The file supplied to option -regionmapping defines a ``mapping''.  A mapping
maps the `sequence-region` entries given in the 'GFF3_file' to a sequence file
containing the corresponding sequence. Mappings can be defined in one of the
following two forms:
]])
print(io.open(gtdata_doc_dir.."regionmapping_table.lua"):read("*a"))
print([[
or
]])
print(io.open(gtdata_doc_dir.."regionmapping_function.lua"):read("*a"))
print([[
The first form defines a Lua (http://www.lua.org) table named ``mapping''
which maps each sequence region to the corresponding sequence file.
The second one defines a Lua function ``mapping'', which has to return the
sequence file name when it is called with the `sequence_region` as argument.]])