-
Hello, For Example, would it be possible to defined a custom function that would filter/transform the field gene_name (in the picture below) ? I haven't seen code to do that in BaseFeatureDetail.tsx, but maybe it is possible ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Good question. In jbrowse 1 we had this system "fmtFeatureDetail_fieldname" https://jbrowse.org/docs/mouse_configs.html#customizing-parts-of-the-view-details-pop-ups-with-callbacks but I always thought that was a bit hacky. We could try to add somethign sort of like that though but it does not yet exist in jbrowse 2 Note that we do render things that "look like HTML", which is run through the sanitize html package, so we can render some simple things like |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer, I took another look at BaseFeatureDetail.tsx and contrary to what I thought, it was possible to pass a formatting function for the attributes. I guess the problem is to make the link with the config file and the BaseFeatureDetails rendered ? |
Beta Was this translation helpful? Give feedback.
Good question.
In jbrowse 1 we had this system "fmtFeatureDetail_fieldname" https://jbrowse.org/docs/mouse_configs.html#customizing-parts-of-the-view-details-pop-ups-with-callbacks but I always thought that was a bit hacky. We could try to add somethign sort of like that though but it does not yet exist in jbrowse 2
Note that we do render things that "look like HTML", which is run through the sanitize html package, so we can render some simple things like
<a>, <b>, <i> etc
but that implies sort of encoding literal HTML into your gff or similar which isn't that great