@@ -103,15 +103,19 @@ export class ExonsChartStore {
103
103
}
104
104
105
105
addExtraFusionProps ( fusion : StructuralVariantExt ) : StructuralVariantExt {
106
+ const m = fusion . monkey ;
107
+ // AARON: PROBLEM IS THAT third argument is undefined
108
+ // it is used internally as "breakpoint" in order to filter exons
109
+ // for addition to the fusions
106
110
const site1Exons = this . getExonsBySite (
107
111
1 ,
108
112
fusion . site1EnsemblTranscriptId ,
109
- fusion . site1Exon
113
+ fusion . site1RegionNumber
110
114
) ;
111
115
const site2Exons = this . getExonsBySite (
112
116
2 ,
113
117
fusion . site2EnsemblTranscriptId ,
114
- fusion . site2Exon
118
+ fusion . site2RegionNumber
115
119
) ;
116
120
const exons = site1Exons . concat ( site2Exons ) ;
117
121
const totalWidth = ExonsChartStore . getTotalWidth (
@@ -300,6 +304,9 @@ export class ExonsChartStore {
300
304
await : ( ) => [ this . transcripts ] ,
301
305
invoke : ( ) => {
302
306
const { result } = this . transcripts ;
307
+
308
+ // each of the fusions in response should have their own exon collection
309
+ // but they are all empty
303
310
const transcripts = ( result || [ ] )
304
311
. map ( ExonsChartStore . addExonProps )
305
312
. filter ( t => t . isReferenceGene ) // get only reference gene transcripts
0 commit comments