diff --git a/plugins/svg/src/SvgFeatureRenderer/components/ProcessedTranscript.tsx b/plugins/svg/src/SvgFeatureRenderer/components/ProcessedTranscript.tsx index bd8e554645..670cea7983 100644 --- a/plugins/svg/src/SvgFeatureRenderer/components/ProcessedTranscript.tsx +++ b/plugins/svg/src/SvgFeatureRenderer/components/ProcessedTranscript.tsx @@ -3,7 +3,7 @@ import { SimpleFeature } from '@jbrowse/core/util' import { observer } from 'mobx-react' import Segments from './Segments' -import { layOutFeature, layOutSubfeatures } from './util' +import { isUTR, layOutFeature, layOutSubfeatures } from './util' import type { ExtraGlyphValidator } from './util' import type { AnyConfigurationModel } from '@jbrowse/core/configuration' @@ -29,12 +29,6 @@ function filterSubpart(feature: Feature, config: AnyConfigurationModel) { return makeSubpartsFilter('subParts', config)(feature) } -function isUTR(feature: Feature) { - return /(\bUTR|_UTR|untranslated[_\s]region)\b/.test( - feature.get('type') || '', - ) -} - function makeUTRs(parent: Feature, subs: Feature[]) { // based on Lincoln's UTR-making code in // Bio::Graphics::Glyph::processed_transcript diff --git a/plugins/svg/src/SvgFeatureRenderer/components/util.ts b/plugins/svg/src/SvgFeatureRenderer/components/util.ts index 4a757033e0..05267efb9a 100644 --- a/plugins/svg/src/SvgFeatureRenderer/components/util.ts +++ b/plugins/svg/src/SvgFeatureRenderer/components/util.ts @@ -172,7 +172,7 @@ export function layOutSubfeatures(args: SubfeatureLayOutArgs) { } export function isUTR(feature: Feature) { - return /(\bUTR|_UTR|untranslated[_\s]region)\b/.test( + return /(\bUTR|_UTR|untranslated[_\s]region)\b/i.test( feature.get('type') || '', ) }