Frédéric Sapet | 5 May 2009 14:06
Picon

Re: Use of # in GGB configuration file.

OK, sorry, I just found the search tool in mailing list archive.

Fred

Le 5 mai 2009 12:40, Peter <biopython <at> maubp.freeserve.co.uk> a écrit :
2009/5/5 Frédéric Sapet <frederic.sapet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Hello
>
> I have just installed the latest version of Gbrowse using CVS ($VERSION   =
> 1.69.03).
>
> Now, I have got a broken configuration file.
>
> I noticed two problems :
>
> An error occurred while evaluating the callback at section='MPSSFlower',
> option='fgcolor'
>
> The reason is the use of # in a sub which defined fgcolor of the track. The
> line involved is :
>
> [...]
> my $c = ['#C6EFF7', '#94D6E7', '#63C6DE', '#31B5D6', '#00A5C6', '#0084A5',
> '#006B84', '#005263', '#00394A', '#003139'];
> [...]
>
> The use of # if a problem in header definition too. I have got a usemap im
> my header, and it's now broken because # is now view as a comment block.
>
> [...]
> header=sub {my $header .= q[<center><img src="/gbrowse/images/arabido.png"
> usemap="#chrsBrowser" style="color: white;"/></center>
> [...]
>
> Is this a bug or a new way of thinking ?
> How can I retrieve a working configuration file ?

This has been reported before, e.g.

Using named anchor links in header/footer (Dec 2008):
http://sourceforge.net/mailarchive/forum.php?thread_name=320fb6e00812110912h46c9453asc7ab4b9b8f733b7c%40mail.gmail.com&forum_name=gmod-gbrowse

The suggested work around was to wrap the text in a subroutine,
replacing the # with a chr(35) call.  For the HTML colors there are
also named colors which might work.  For the header/footer you might
be able to use the header_template and
footer_template system instead.

Peter

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

Gmane