Skip to content
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

Add jexl links for linkout service to tracks #16

Open
ctcncgr opened this issue Mar 9, 2023 · 0 comments
Open

Add jexl links for linkout service to tracks #16

ctcncgr opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ctcncgr
Copy link
Member

ctcncgr commented Mar 9, 2023

The formatDetails attribute of the jbrowse2 track config can be used to set linkouts for the gene details panel in jbrowse2. We should add this and figure out how we want to generate linkouts in jbrowse2.

This is currently done at:

https://cicer.legumeinfo.org/tools/jbrowse2/

Example with hardcoded refs from the link above:

"formatDetails": {
    "feature": "jexl:{GCV:'<a href=https://cicer.legumeinfo.org/tools/gcv/gene;cicer='+feature.id+'>'+feature.name+'</a>',Intermine:'<a href=https://lis.ncgr.org/cicermine/gene:'+feature.id+'>'+feature.name+'</a>',Phylotree:'<a href=https://funnotate.legumeinfo.org/?family='+feature.genefamily+'>'+feature.genefamily+'</a>'}"
}

Concept example using components from our kit (this needs to be discussed more):

"formatDetails": {
    "feature": "jexl:{Linkouts:'<a class=uk-button uk-button-default href=#modal-linkout uk-toggle>Linkouts</a><lis-modal-element modalId=modal-linkout><lis-linkout-search-element linkoutQuery='+feature.name+'></lis-linkout-search-element></lis-modal-element>'}"
}
@ctcncgr ctcncgr added the enhancement New feature or request label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants