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

Tripal Field: embedded JBrowse on Feature pages showing region #8

Open
laceysanderson opened this issue Dec 2, 2018 · 1 comment
Open

Comments

@laceysanderson
Copy link
Member

It would be nice to have an embedded version of a JBrowse on a feature-based page. This should be able to be specific to the organism at the least (e.g. Show the Lentil JBrowse if on a Lentil Marker page and show a Chickpea JBrowse if on a Chickpea page).

@laceysanderson
Copy link
Member Author

laceysanderson commented Feb 25, 2022

To provide good integration with this module, you would likely want to add this field in the tripal_jbrowse_page sub-module. This allows you to use a similar approach to that used in the current page integration.

Specifically, here is the code that builds the URL for embedding a specific JBrowse instance created through the management module. This would go in the Tripal field class.

Then this page template renders the JBrowse metadata and iFrame. This would go in the Tripal field formatter class.

There is also some CSS here which controls the iFrame size.

You'll likely want some extra methods in the field class to determine the organism_id or analysis_id based on the given page. Personally, I would do this by looking at the base chado table associated with the Tripal content type the field is attached to. Then you can set up rules based on that table and use the Chado Schema Documentation to determine what information is available to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant