GMOD / Apollo3

JBrowse 2 plugin for editing annotations on an Apollo server
Apache License 2.0
7 stars 4 forks source link

Check equivalent terms in getGlyph #396

Open garrettjstevens opened 4 months ago

garrettjstevens commented 4 months ago

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.