customizing balloon popup

View: New views
2 Messages — Rating Filter:   Alert me  

customizing balloon popup

by Ryan Golhar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I'm starting to get the hang of how gbrowse works.  I've loadeda GFF
file with gene models including mRNA, exon, UTRs, etc.  I see the
attached screen shoot.

I've managed to add a little code to the description for the protein
coding gene models to display a balloon popup description the mRNA.
Now, I want to have the balloon popup display specific information about
each region when moused over.  For instance, when mousing over an exon,
I want to see is start/stop coordinates and exon number in the balloon
help.  Same thing for UTRs.  How can I do this?  Is there documentation
available description the API?  Here is what my code looks like now:

description     = sub {
                         my $feature = shift;
                         my $n = $feature->name();
                         my $ref = $feature->seq_id();
                         my $start = $feature->start();
                         my $end = $feature->end();
                         return "$n $ref:$start..$end";
                   }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

gbrowse2.png (362K) Download Attachment

Re: customizing balloon popup

by Sheldon McKay-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ryan,

The documentation for using popup balloons is here:
http://gmod.org/wiki/GBrowse_Popup_Balloons

Sheldon

On Sat, Nov 7, 2009 at 4:37 PM, Ryan Golhar <golharam@...> wrote:

> So I'm starting to get the hang of how gbrowse works.  I've loadeda GFF file
> with gene models including mRNA, exon, UTRs, etc.  I see the attached screen
> shoot.
>
> I've managed to add a little code to the description for the protein coding
> gene models to display a balloon popup description the mRNA. Now, I want to
> have the balloon popup display specific information about each region when
> moused over.  For instance, when mousing over an exon, I want to see is
> start/stop coordinates and exon number in the balloon help.  Same thing for
> UTRs.  How can I do this?  Is there documentation available description the
> API?  Here is what my code looks like now:
>
> description     = sub {
>                        my $feature = shift;
>                        my $n = $feature->name();
>                        my $ref = $feature->seq_id();
>                        my $start = $feature->start();
>                        my $end = $feature->end();
>                        return "$n $ref:$start..$end";
>                  }
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gmod-gbrowse mailing list
> Gmod-gbrowse@...
> https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse
>
>



--
Sheldon McKay, PhD
Cold Spring Harbor Laboratory
New! Google Voice:  (203) 701-9204

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse