From: Colin <col...@gm...> - 2018-08-08 14:50:07
|
The DebugEvents is a good reference for what you might do as it has the "globalHighlightChanged" event that you can subscribe to. Creating a small plugin is probably a good model for developing this feature too. As far as DebugEvents not being turned on, plugins should generally be only declared in one config file, not a mix of different config files (e.g. some in trackList.json, some in jbrowse.conf, etc). This is probably the reason for you not seeing the DebugEvents being turned on. This bug tracks this as an issue https://github.com/GMOD/jbrowse/issues/897 It was also mentioned recently that maybe after highlighting a region there should be a context menu to help users with tasks such as "save sequence in region" or other types of features (these features to export highlighted region already exist, but having a context menu to easily offer this after a highlight operation might be helpful :)) -Colin On Wed, Apr 4, 2018 at 5:33 PM Michael Axtell <mj...@ps...> wrote: > Hello jbrowse folks, thanks for such a great tool! > > My javascript skills are poor and so forgive a simple question -- I'd > love some quick advice or perhaps a code snippet for this. > > I'd like to have a user-highlighted region trigger a new window for a > custom search page. I'd need the event to pass on the highlighted > genome coordinates in the url string to the target page. I can see > from the config guide that dojo/topic can be used to subscribe to > events, but I don't have the skills to implement this without a bit of > help. Can anyone make a suggestion on how to edit this in? i.e. what > would a callback look like, and how should it be implemented? > > Related note: I tried to activate the DebugEvents plugin by adding > this to the jbrowse.conf :: > > [ plugins.DebugEvents ] > location = plugins/DebugEvents > > , but even after doing so, clearing history and cache on my browser, I > didn't see any event messages showing up on the console when I > navigated and highlighted regions. I have other plugins working and > can see their console messages; just nothing from DebugEvents. > > JBrowse version 1.12.4 > > Thanks! > > Mike Axtell > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gmod-ajax mailing list > Gmo...@li... > https://lists.sourceforge.net/lists/listinfo/gmod-ajax > |