From: Vaneet L. <van...@uc...> - 2024-03-27 16:37:31
|
Thanks guys for the detailed explanation. So for sessions....isn't that saved local to my browser or is it possible to share it with another user? If so how long can the session be shared for before it's removed from the server? Do you have to create a session JSON file to properly store it in the server to make sure it doesn't get deleted before sharing it with someone? Vaneet ________________________________ From: Colin <col...@gm...> Sent: March 27, 2024 9:10 AM To: Scott Cain <sc...@sc...> Cc: Vaneet Lotay <van...@uc...>; gmo...@li... <gmo...@li...> Subject: Re: [Gmod-ajax] JBrowse2 dynamically changing URL? [△EXTERNAL] Basically what Scott says, but just to add a little more perspective As a comparison, JBrowse 1 did have the auto-updating url, and it was a relatively simple system that just stored the current "&loc=chr:1-100" type location that you are viewing in the url. That was pretty much all that was stored...that and tracks and data directory... With JBrowse 2, we have the ability to have multiple views, and all sorts of 2 just became a kind of complex app with multiple views, and each view can have subviews (think synteny view) and so it became hard to port over the notion of having a simple URL. I know this is a little unfortunate that the URL bar is not copyable at any time, but as Scott said, we do have the "Share" button that lets you get shareable URL. If the Share button was undesirable, and someone really wanted live updating URLs they could conceivably.... a) make a plugin that keeps a minimal set of url params in the url, so it can always be copied b) use the @jbrowse/react-app package, which does not assume anything about the URL, and custom code that feature -Colin On Tue, Mar 26, 2024 at 10:07 PM Scott Cain <sc...@sc...<mailto:sc...@sc...>> wrote: Hi Vaneet, A JBrowse 2 url puts everything in the session into it, so it is *very* long. You can get that url from hitting the share link at the top of the page and selecting the “long url” option (the short option makes use of a url shortener at jbrowse.org<http://jbrowse.org>) but generally speaking, that long url isn’t too useful. It’s possible to write urls that go into JBrowse 2 that tell it what tracks to open and what assembly to use but that gets immediately converted to a session. I hope that helps, Scott On Mar 26, 2024, at 2:36 PM, Vaneet Lotay <van...@uc...<mailto:van...@uc...>> wrote: Hello all, I was just wondering in JBrowse2, is it possible for the URL in my browser to dynamically change when I’m selecting different tracks, changing location, or even entering different views like the linear synteny view? So far it just stays the same once I start from my default session. It would be nice if there’s at least a button that can reveal the true long form URL at any point but not sure if that’s possible. JBrowse 1 had the changing URL so that’s why I’m wondering if it’s still accessible somehow. This would be a nice feature as it to have as it will make easier to share URLs for specific track arrangements with other users. Thanks, Vaneet _______________________________________________ Gmod-ajax mailing list Gmo...@li...<mailto:Gmo...@li...> https://lists.sourceforge.net/lists/listinfo/gmod-ajax _______________________________________________ Gmod-ajax mailing list Gmo...@li...<mailto:Gmo...@li...> https://lists.sourceforge.net/lists/listinfo/gmod-ajax |