Jexl for additional options in get #3978
-
Is there a jexl command to get the values of elements that are not part of the feature. Similar to get(feature,'start') is there a command to get other aspects of what is being displayed such as the range of the region that is being plotted? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I don't think there is currently a way to access the 'currently displayed region' inside jexl callbacks in the general case. if you can describe your use case i might be able to advise specifically. in general accessing the 'regions being plotted' is something accessible from the 'client side code' for example with linearGenomeViewModel.visibleLocStrings (https://jbrowse.org/jb2/docs/models/lineargenomeview/#getter-visiblelocstrings) however, that code is not available on jexl callbacks because renderers are executed in a different context (the RPC context, see figure describing the RPC boundary here https://jbrowse.org/jb2/docs/developer_guides/creating_renderer/) it requires manual code to 'marshall' data across the RPC boundary. it can be done though, and if you describe your use case, i might be able to help further. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi @LuisSoares
I am not sure if it's what you are using but I created a modification to the LinearArcRenderer code that explicitly can render semi-circles, as the current one indeed tries to fit the arc height to some particular value that is within the display height. With the semi circles, it will just always follow that circular path no matter the 'height' of the arc
code here #3982
its still a pr proposal but you can try out this branch with
jbrowse create --branch arc_renderer_semicircles