File: luafilter_function.lua

package info (click to toggle)
genometools 1.6.2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 50,504 kB
  • sloc: ansic: 271,868; ruby: 30,327; python: 4,942; sh: 3,230; makefile: 1,214; perl: 219; pascal: 159; haskell: 37; sed: 5
file content (9 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
  function filter(gn)
    target = "exon"
    for curnode in gn:children() do
      if (curnode:get_type() == target) then
        return false
      end
    end
    return true
  end