Skip to content

Commit

Permalink
Fix bug parsing GFF3 data on chromosomes where data is empty (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin authored Jun 4, 2024
1 parent 02a751b commit 286aa90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/gff3/src/Gff3Adapter/Gff3Adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class Gff3Adapter extends BaseFeatureDataAdapter {
header: string
intervalTreeMap: Record<
string,
(sc?: (arg: string) => void) => IntervalTree
((sc?: (arg: string) => void) => IntervalTree) | undefined
>
}>

Expand Down Expand Up @@ -132,7 +132,7 @@ export default class Gff3Adapter extends BaseFeatureDataAdapter {
try {
const { start, end, refName } = query
const { intervalTreeMap } = await this.loadData(opts)
intervalTreeMap[refName](opts.statusCallback)
intervalTreeMap[refName]?.(opts.statusCallback)
?.search([start, end])
.forEach(f => observer.next(f))
observer.complete()
Expand Down

0 comments on commit 286aa90

Please sign in to comment.