@cmdcolin on #2554 you said something interesting I hope you could expand on here. you mention lazy parsing of genotypes. As noted above, we have a VCF with ~2400 samples. We previously never had code that did anything with samples until the details panel was opened. We are trying to implement code that lets the user filter sites based on specific samples having non-WT genotypes, and so we're starting to access genotype data much earlier and do this for all variants. What governs whether genotypes are parsed or not?
Colin Diesh
@cmdcolin
in the current code, the genotypes are always parsed and serialized to json, which is fairly slow
with #2554 , if you were accessing the genotypes for filtering, it would parse the genotypes but would not necessarily serialize to json
bbimber
@bbimber
ok
Colin Diesh
@cmdcolin
in some cases it could also (not implemented now, but if and when) only parse a specific genotype column perhaps
Colin Diesh
@cmdcolin
at some point might be interesting to make a bcf adapter too...
(binary vcf format)
bbimber
@bbimber
One more VCF question: in JBrowse 1 we could look up the VCF header, which is useful since it can translate from the INFO field keys into their labels. Can one do this in JB2? If so, is there by chance an example?
Another possibly dumb question: when making a plugin/widget, the component is rendered as a modal. Can I call something to close that window? if the user clicks off the modal it closes, but I dont see how to close it with code
Colin Diesh
@cmdcolin
possibly something like getSession(widgetModel).hideWidget(widgetModel.id)
bbimber
@bbimber
hideWidget(model) works, rather than model.id
Scott Cain
@scottcain
@rbuels@hawrobin@cmdcolin : outreach call? I’m in google hangout
Robert Buels
@rbuels
yep coming
Robin Haw
@hawrobin
Sorry I have a clash today!
Scott Cain
@scottcain
@rbuels@cmdcolin are we really having an outreach call Monday at 9:00am? It’s in my calendar, but I am doubting it.
Hey - i have a question on plugin config. We have a plugin that lets a user choose a custom coloring scheme. This include a custom renderer. By default, renders support the property 'color1', which can be JEXL to set feature color. Our custom renderer has another simple string property called 'palette'. If palette is non-null, we run code that takes that string, builds a JEXL expression, and then sets color1. This works fine if the user picks that interactively. However, I'd like to hook into somewhere such that if the initial rendererConfig JSON has 'palette', we execute code to set color1 right away. Is there a point where I can hook to add this kind of code?
4 replies
bbimber
@bbimber
Is there a way to remove a default menu item from a VCF track? we are currently adding menu items by overriding trackMenuItems() in a custom VariantDisplay class, but it's not clear whether i can remove default items
7 replies
_
Another question: our user base seems to have a hard time recognizing the track selector icon (we're using ReactLinearGenomeView). Has anyone encountered this and/or looked into more obvious ways to signal to users what to do? In our case, we load with one track pre-displayed, so there isnt the central 'Open Track Selector' button. For comparison, in JBrowse 1 the side panel was considerably more obvious
opps, thx @cmdcolin. You are correct, it would be from a data viz or workflow persective. I was just looking over the tutorials from last year and they did not reflect a software demo style.
i was also surprised too see a relatively shortlist of tutorials! In previous years, their had been more.
Colin Diesh
@cmdcolin
i suppose if we want to focus more on jbrowse, probably go for a technology track like the link says
1 reply
Junjun Zhang
@junjun-zhang
anyone knows why we use a particular version of the mst library: "mobx-state-tree": "3.14.1", latest release is 5.1.0
Garrett Stevens
@garrettjstevens
I think it's because we use mobx v5, and mobx-state-tree >=v4 requires mobx v6. There are some breaking changes in mobx v6 and we haven't made it a priority to get things working with that version.
Also, we re-export mobx, mobx-state-tree, react, material-ui, and others for plugins to use, so if we upgrade them we risk breaking plugins. Those breaking changes may have to happen someday, but we'll have to plan for it.
Junjun Zhang
@junjun-zhang
thanks @garrettjstevens in terms of plugin, in the isoform inspector I am trying to use the same major versions of the main libraries as you listed, but still try to make sure it works with newer ones
@scottcain@cmdcolin - in view of rob being away, are we still meeting at 1?
Colin Diesh
@cmdcolin
hmm
i do want to try to make more progress on the pag workshop if possible. i dunno
Scott Cain
@scottcain
I’ve had no time this week to work on it unfortunately. AGR and WormBase releases have soaked up all my time, so I’d vote for putting it off
bbimber
@bbimber
Hey - I wanted to re-ask a question from earlier: does anyone have suggestions on coaxing an embedded LGV to make itself full page height? This would both be aesthetically preferable to us (otherwise we just have this white space), and at least in our hands it doesnt reliably auto-expand itself. The user can manually drag to open it, but that's not ideal here. Thanks for any ideas.
Colin Diesh
@cmdcolin
@scottcain@hawrobin ok. i suppose we can skip
@bbimber if you have a link that shows what you mean by not autoexpanding it may be useful
11 replies
bbimber
@bbimber
That screenshot is related to the thread above about autoexpanding LGV
Robin Haw
@hawrobin
@cmdcolin@scottcain can we meet sometime later next week?
Colin Diesh
@cmdcolin
@hawrobin we have a meeting scheduled again dec 17 if that helps
Colin Diesh
@cmdcolin
since christmas and new years will basically prevent us from meeting for awhile, would be good if we can flesh out that google doc before that dec 17 meeting