-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing additional query parameters #2
Comments
Thanks for bringing this up. There are some things to keep in mind that, which could get hairy:
|
Mainly, the motivation behind this request is to expose the functionality of the Instead of requiring the user to set up a higlass container object and send a I think the absolute genomic extent of the view is more useful for jumping to a location via the URL. The zoom level is, I think, more of a JSON property that I don't think translates to a genome range directly, or would be difficult for the end user to translate by hand. I may misunderstand what the zoom level is used for or how it translates to an extent, however. To answer item 3, the |
The motivation makes total sense but I would not replicate the functionality of I would keep it simple and only allow setting the location for all views at once. For more advanced use cases one can use the JS API. Or simply create a viewconf that already contains the locations for every view. I chatted with Pete about this a few days ago and we looked into Google Maps which provides 3 parameters for setting a specific location: longitude, latitude, and zoomlevel (https://www.google.com/maps/@42.3765752,-71.1196475,16.27z). To me this makes a lot of sense because when I look at a loop for example and want to send its location to my friends, specifying the x-y extent can dramatically change the zoom level depending on their screen size (e.g., 27" vs a tablet) and they might not see the same pattern as I do until they adjust the zoom level. @pkerpedjiev That makes me wonder: should update Either way, feel free to object to my ideas :) |
If all views are zoomed to the specified position and zoom level, then two level context-overview views would get clobbered. You would lose the differential zoom. You're right about the view ids though. Maybe we can do something like specify the index of the view in the viewconf? So one could effectively say something like "move the 2nd view to this position". Of course we have no way of keeping track of the order of the views but it would be easier to try indexes like 0, 1, or 2 rather than uuids. The downside is that that may cause confusion with view_uuids. |
In addition to the
config
parameter, would it be possible to add functionality to parse positional data from the query string?Perhaps some parameters are optional:
The
assembly
key (hg38
, etc.) would be used to look up chromosome sizes, to map coordinates to higlass space. If this key is not specified, it would be extracted from the default or specified viewconf.If
uid
is not specified, it may be useful to extract the default viewconf for the firstview_uid
key. Or, ifuid
is specified andview_uid
is not, parse the viewconf for the first key in its view ID array.If
chr2
/start2
/stop2
are not specified, then they could be copied fromchr1
/start1
/stop1
.The text was updated successfully, but these errors were encountered: