[gt-users] where is the example styles file?

James Casbon casbon at gmail.com
Tue Apr 21 15:56:49 CEST 2009


Hi,

I'm trying to use gt through the python bindings to produce a sketch.
However, I cannot seem to get it to use a style file.  It needs to be
a table apparently (see below).   Any clues on what I am supposed to
be doing here?

thanks,
James

Flapjack:tranche2 james$ cat styles.lua
config = {
exon = {
  fill               = {red=0.9, green=0.9, blue=0.0},
},
}
Flapjack:tranche2 james$ python
ext/genometools-1.3.0/testdata/gtpython/style.py styles.lua
Traceback (most recent call last):
  File "ext/genometools-1.3.0/testdata/gtpython/style.py", line 42, in <module>
    clone = style.clone()
  File "/Users/james/Src/tranche2/ext/genometools-1.3.0/testdata/gtpython/style.py",
line 74, in clone
    raise TestFailedException
  File "/Users/james/Src/tranche2/ext/genometools-1.3.0/testdata/gtpython/style.py",
line 70, in to_str

  File "gt/core/error.py", line 67, in gterror
gt.core.error.GTError: GenomeTools error: 'style' must be a table


More information about the gt-users mailing list