|
From: Scott C. <sc...@sc...> - 2024-04-10 19:52:16
|
🤷 I don't know--I haven't tried, that's why I was hedging a bit with my
response. It probably will work. If it doesn't, the other option would be
to write a plugin (which is described lower down on the same page).
On Wed, Apr 10, 2024 at 12:34 PM Vaneet Lotay <van...@uc...>
wrote:
> Well by that logic I suppose you can if you can still call the contents of
> the old field you set to null. Like for example would I able to do this in
> the formatDetails section below?
>
>
>
> "formatDetails": {
> "feature": "jexl:{name:undefined, Gene_symbol:feature.name}"
> },
>
>
>
> Does the contents of that nullified field get lost if set to null?
>
>
>
> Thanks,
>
>
> Vaneet
>
>
>
> *From:* Scott Cain <sc...@sc...>
> *Sent:* Wednesday, April 10, 2024 12:35 PM
> *To:* Vaneet Lotay <van...@uc...>
> *Cc:* gmo...@li...
> *Subject:* Re: [Gmod-ajax] JBrowse2 tooltips/mouse-hover for features?
>
>
>
> [△EXTERNAL]
>
>
>
> Hi Vaneet,
>
>
>
> That is documented here:
> https://jbrowse.org/jb2/docs/config_guides/customizing_feature_details/
>
> While you can't (I don't think) "rename" a field, you can remove a field
> by setting it to null, and create a new field with a new label, which is
> (again, I think) functionally the same as renaming.
>
>
>
> Scott
>
>
>
>
>
> On Wed, Apr 10, 2024 at 11:19 AM Vaneet Lotay <van...@uc...>
> wrote:
>
> Thanks Scott. By the way I had another question, how do you change the
> names of the actual fields in the feature details pop up box? I realize
> there’s a way to change their values, but I didn’t see how to do it for the
> field names themselves. I remember doing it in JBrowse1. I didn’t define
> some additional fields in my bed file so they show up as field 11, field
> 12, ..etc.
>
>
>
> Vaneet
>
>
>
> *From:* Scott Cain <sc...@sc...>
> *Sent:* Friday, March 29, 2024 10:34 AM
> *To:* Vaneet Lotay <van...@uc...>
> *Cc:* gmo...@li...
> *Subject:* Re: [Gmod-ajax] JBrowse2 tooltips/mouse-hover for features?
>
>
>
> [△EXTERNAL]
>
>
>
> Hi Vaneet,
>
>
>
> You can change the mouseover by providing jexl in the 'display' block (but
> not in the 'render' block), like this:
>
>
>
> "displays": [
> {
> "type": "LinearBasicDisplay",
> "displayId":
> "Macaca_mulatta_all_genes-LinearBasicDisplay-1711729713263",
> "mouseover": "jexl:get(feature,'gene_biotype')",
> "renderer": {
> "type": "SvgFeatureRenderer",
> "color1": "jexl:get(feature,'strand')<0?'teal':'darkviolet'",
> "color3": "#30332E",
> "maxHeight": 5000
> }
> }
> ]
>
>
>
> Scott
>
>
>
>
>
>
>
>
>
> On Thu, Mar 28, 2024 at 1:35 PM Vaneet Lotay <van...@uc...>
> wrote:
>
> Hello,
>
>
>
> I couldn’t find anything specific in the docs about this but is there
> anyway we can configure what is shown when you hover over a feature in a
> track, like a tooltip? JBrowse1 had the ‘onClick’ method which I used to
> configure mouse hover functionality, so I’m wondering if that can still be
> used or is there another way to configure feature tooltips?
>
>
>
> Thanks,
>
>
>
> Vaneet
>
> _______________________________________________
> Gmod-ajax mailing list
> Gmo...@li...
> https://lists.sourceforge.net/lists/listinfo/gmod-ajax
>
>
>
> --
>
> ------------------------------------------------------------------------
> Scott Cain, Ph. D. scott
> at scottcain dot net
>
> GMOD Project Manager (http://gmod.org/)
> 216-392-3087
>
> WormBase Developer (http://wormbase.org/)
>
> Alliance of Genome Resources Group Leader (http://alliancegenome.org/)
>
> VirusSeq Project Manager (https://virusseq-dataportal.ca/)
>
> Human Cancer Models Initiative Project Manager (
> https://hcmi-searchable-catalog.nci.nih.gov/)
>
>
>
> --
>
> ------------------------------------------------------------------------
> Scott Cain, Ph. D. scott
> at scottcain dot net
>
> GMOD Project Manager (http://gmod.org/)
> 216-392-3087
>
> WormBase Developer (http://wormbase.org/)
>
> Alliance of Genome Resources Group Leader (http://alliancegenome.org/)
>
> VirusSeq Project Manager (https://virusseq-dataportal.ca/)
>
> Human Cancer Models Initiative Project Manager (
> https://hcmi-searchable-catalog.nci.nih.gov/)
>
--
------------------------------------------------------------------------
Scott Cain, Ph. D. scott
at scottcain dot net
GMOD Project Manager (http://gmod.org/)
216-392-3087
WormBase Developer (http://wormbase.org/)
Alliance of Genome Resources Group Leader (http://alliancegenome.org/)
VirusSeq Project Manager (https://virusseq-dataportal.ca/)
Human Cancer Models Initiative Project Manager (
https://hcmi-searchable-catalog.nci.nih.gov/)
|