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

Check equivalent terms in getGlyph #396

Open
garrettjstevens opened this issue Jun 5, 2024 · 0 comments
Open

Check equivalent terms in getGlyph #396

garrettjstevens opened this issue Jun 5, 2024 · 0 comments
Assignees

Comments

@garrettjstevens
Copy link
Contributor

In packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/getGlyph.ts, instead of checking feature.type === 'gene', use the ontology store to check for types that are equivalent to 'gene' (such as 'protein_coding_gene').

We'll have to pass either the session or the ontology store from the session to getGlyph. See packages/jbrowse-plugin-apollo/src/components/OntologyTermAutocomplete.tsx for an example of how to get the ontology store from the session.

I think the ontology store method we'll want to use for this check is getTermsWithLabelOrSynonym.

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

No branches or pull requests

2 participants