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.
In
packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/stateModel/getGlyph.ts
, instead of checkingfeature.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
. Seepackages/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
.