How to access the dbxrefs in the subfeatures? #3603
-
Hi JBrowse2 developers, Our group has started working on a plugin to handle linkouts for dbxrefs in features and subfeatures. https://github.com/Chi-HsienChang/jbrowse-plugin-template Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
@Chi-HsienChang How is your plugin being used in e.g. your config file? I see it defines custom jexl functions but how are they used |
Beta Was this translation helpful? Give feedback.
-
Hi @cmdcolin , Thank you for your guidance and help!
Thank you! |
Beta Was this translation helpful? Give feedback.
-
@Chi-HsienChang Here is an alternative solution that handles multiple dbxref types in a single callback, and importantly handles MULTIPLE dbxrefs in a single feature. before, the usage of "find" would find the single dbxref type we were looking for and ignore others, but then the others wouldn't get printed in the feature details. This new callback will properly handle multiple Example
Config
Screenshot You can see on the subfeature it correctly has multiple dbxref links for that entry |
Beta Was this translation helpful? Give feedback.
@Chi-HsienChang How is your plugin being used in e.g. your config file? I see it defines custom jexl functions but how are they used