config file: limit features by source; set feature label
-
Alexie Papanicolaou
Hello
I've troubleshooted this and it was a stupid mistake from my end (+ some Drupalesque nonsense of escaping -> arrows)
For posterity: To troubleshoot I used this function:
'extraData'=>array('test'=>'sub {shift->some Bio::SeqFeatureI::method();}') and the urlTemplate to print out the {test}
Would it be possible to somehow change the feature label (description)? That would help a bit with troubleshooting (wouldn't have to hover :-) )
thank you (pls feel free to close the ticket)
a -
Mitch
- State changed from new to resolved
You can create a custom feature label with the "label" setting in the config file. It should be a perl sub; it gets the bioperl object as its first argument, and it should return a string. For example, here's one config file entry that creates a custom label:
{ "track": "ExampleFeatures", "key": "Example Features", "feature": ["remark"], "autocomplete": "all", "class": "feature2", "label": "sub { $_[0]->source . \" - \" . $_[0]->display_name }" }, -
JBrowse
(from [2e77792938d1ef192c558bfae59e931974c79df9]) merge htmlfeature_layout branch, closes #67 config file: limit features by source; set feature label, closes #122 https://github.com/GMOD/jbrowse/commit/2e77792938d1ef192c558bfae59e...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
