Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed Aug 11, 2023
1 parent 05cd1b1 commit 4b894a7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ interface AnnotationFeature {
annotationFeature: AnnotationFeatureI
}

interface DiscontinuousLocsFeature {
interface CDSFeatures {
parent: AnnotationFeatureI
cds: AnnotationFeatureI
}

export class CanonicalGeneGlyph extends Glyph {
featuresForRow(feature: AnnotationFeatureI): AnnotationFeature[][] {
const cdsWithDiscontinuousLocs: DiscontinuousLocsFeature[] = []
const cdsFeatures: CDSFeatures[] = []
feature.children?.forEach((child: AnnotationFeatureI) => {
child.children?.forEach((annotationFeature: AnnotationFeatureI) => {
if (annotationFeature.type === 'CDS') {
cdsWithDiscontinuousLocs.push({
cdsFeatures.push({
parent: child,
cds: annotationFeature,
})
Expand All @@ -66,7 +66,7 @@ export class CanonicalGeneGlyph extends Glyph {
})

const features: AnnotationFeature[][] = []
cdsWithDiscontinuousLocs.forEach((f: DiscontinuousLocsFeature) => {
cdsFeatures.forEach((f: CDSFeatures) => {
const childFeatures: AnnotationFeature[] = []
f.parent.children?.forEach((cf: AnnotationFeatureI) => {
if (cf.type === 'CDS' && cf._id !== f.cds._id) {
Expand Down

0 comments on commit 4b894a7

Please sign in to comment.