Re: Balloon click function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Balloon click function

Nathan Weeks
Hi Vaneet,

The issue may be that GBrowse configuration files are in the
Bio::Graphics::FeatureFile format, which needs one or more spaces in
the first column to continue the "value" (in this case, callback
definition) on multiple lines. See:

http://search.cpan.org/dist/Bio-Graphics-2.39/lib/Bio/Graphics/FeatureFile.pm#Formatting_Entries

You would need to indent the closing brace, as well as any code that
appears within:

balloon click = sub{
    }

Regards,

--
Nathan Weeks
IT Specialist
USDA-ARS Corn Insects and Crop Genetics Research Unit
Crop Genome Informatics Laboratory
Iowa State University
http://weeks.public.iastate.edu/

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 23 Mar 2015 22:54:00 +0000
> From: Vaneet Lotay <[hidden email]>
> Subject: [Gmod-gbrowse] Balloon click function
> To: gmod-gbrowse <[hidden email]>
> Message-ID:
>         <[hidden email]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> I'm trying to add some links via tool tip for several tracks or as it's called normally in the code the "balloon click" function.  These tracks are bigwig tracks.  For some reason simply trying to add that code to the respective configuration files causes the whole genome browser page not to be displayed, returns an "Internal Server error" page instead which I've seen before sometimes when some code cannot process properly from the .conf file.
>
> Even when I add an empty function with no code like this it doesn't work:
>
> balloon click = sub{
> }
>
> This function and the same code that I'm trying to paste has worked for other types of tracks like gene model tracks, so I'm just wondering whether the Bigwig tracks simply don't accept 'balloon click' as a function or not?  Is it not possible to add balloons or tool tips to bigwig tracks, if so how is it properly done?
>
> Thanks,
>
> Vaneet
>
>
> Vaneet Lotay
>
> Xenbase Bioinformatician
>
> 724 ICT Building - University of Calgary
>
> 2500 University Drive NW
>
> Calgary AB T2N 1N4
>
> CANADA
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gmod-gbrowse mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse
Reply | Threaded
Open this post in threaded view
|

Re: Balloon click function

Vaneet Lotay
Thanks for replying, you're right about the indent on the closing brace of the balloon function...thats what it was. Gbrowse is pretty finicky about these things clearly. 

Vaneet



Sent from my Samsung device


-------- Original message --------
From: Nathan Weeks <[hidden email]>
Date: 04-03-2015 12:03 PM (GMT-06:00)
To: Vaneet Lotay <[hidden email]>
Cc: [hidden email]
Subject: Re: [Gmod-gbrowse] Balloon click function

Hi Vaneet,

The issue may be that GBrowse configuration files are in the
Bio::Graphics::FeatureFile format, which needs one or more spaces in
the first column to continue the "value" (in this case, callback
definition) on multiple lines. See:

http://search.cpan.org/dist/Bio-Graphics-2.39/lib/Bio/Graphics/FeatureFile.pm#Formatting_Entries

You would need to indent the closing brace, as well as any code that
appears within:

balloon click = sub{
    }

Regards,

--
Nathan Weeks
IT Specialist
USDA-ARS Corn Insects and Crop Genetics Research Unit
Crop Genome Informatics Laboratory
Iowa State University
http://weeks.public.iastate.edu/

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 23 Mar 2015 22:54:00 +0000
> From: Vaneet Lotay <[hidden email]>
> Subject: [Gmod-gbrowse] Balloon click function
> To: gmod-gbrowse <[hidden email]>
> Message-ID:
>         <[hidden email]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> I'm trying to add some links via tool tip for several tracks or as it's called normally in the code the "balloon click" function.  These tracks are bigwig tracks.  For some reason simply trying to add that code to the respective configuration files causes the whole genome browser page not to be displayed, returns an "Internal Server error" page instead which I've seen before sometimes when some code cannot process properly from the .conf file.
>
> Even when I add an empty function with no code like this it doesn't work:
>
> balloon click = sub{
> }
>
> This function and the same code that I'm trying to paste has worked for other types of tracks like gene model tracks, so I'm just wondering whether the Bigwig tracks simply don't accept 'balloon click' as a function or not?  Is it not possible to add balloons or tool tips to bigwig tracks, if so how is it properly done?
>
> Thanks,
>
> Vaneet
>
>
> Vaneet Lotay
>
> Xenbase Bioinformatician
>
> 724 ICT Building - University of Calgary
>
> 2500 University Drive NW
>
> Calgary AB T2N 1N4
>
> CANADA
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gmod-gbrowse mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse