Skip to content

Commit c31e2b5

Browse files
committed
misc
1 parent 9f3963c commit c31e2b5

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

src/library/features/FusionTranscript.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ export class FusionTranscript {
138138
// within intron
139139

140140
var exons = this.transcript1.exons;
141+
var i;
141142

142143
if (this.transcript1.strand === '+') {
143-
for (var i = 0; i < exons.length; i++) {
144+
for (i = 0; i < exons.length; i++) {
144145

145146
// get the exon intervals
146147

@@ -165,7 +166,7 @@ export class FusionTranscript {
165166
}
166167
} else {
167168

168-
for (var i = 0; i < exons.length; i++) {
169+
for (i = 0; i < exons.length; i++) {
169170

170171
// get sequence
171172

@@ -195,7 +196,7 @@ export class FusionTranscript {
195196
exons = this.transcript2.exons;
196197

197198
if (this.transcript2.strand === '+') {
198-
for (var i = 0; i < exons.length; i++) {
199+
for (i = 0; i < exons.length; i++) {
199200

200201
// get the exons in the fusion
201202

@@ -216,7 +217,7 @@ export class FusionTranscript {
216217
}
217218
}
218219

219-
for (var i = 0; i < exons.length; i++) {
220+
for (i = 0; i < exons.length; i++) {
220221

221222
// get sequence
222223

@@ -232,7 +233,7 @@ export class FusionTranscript {
232233

233234
// get the exons in the fusion
234235

235-
for (var i = 0; i < exons.length; i++) {
236+
for (i = 0; i < exons.length; i++) {
236237

237238
if (this.gene2Junction <= exons[i][0]) {
238239
continue
@@ -251,7 +252,7 @@ export class FusionTranscript {
251252
}
252253
}
253254

254-
for (var i = 0; i < exons.length; i++) {
255+
for (i = 0; i < exons.length; i++) {
255256
// get sequence
256257

257258
if (this.gene2Junction <= exons[i][0]) {
@@ -277,11 +278,12 @@ export class FusionTranscript {
277278
fetchCds() {
278279

279280
var cds = this.transcript1.cds;
281+
var i;
280282

281283
// 5prime transcript
282284

283285
if (this.transcript1.strand === "+") {
284-
for (var i = 0; i < cds.length; i++) {
286+
for (i = 0; i < cds.length; i++) {
285287
if (this.gene1Junction >= cds[i][1]) {
286288
this.cdsJunctionGene1 += (cds[i][1] - cds[i][0] + 1);
287289
} else if (this.gene1Junction <= cds[i][0]) {
@@ -292,7 +294,7 @@ export class FusionTranscript {
292294
}
293295
}
294296
} else {
295-
for (var i = 0; i < cds.length; i++) {
297+
for (i = 0; i < cds.length; i++) {
296298
if (this.gene1Junction <= cds[i][0]) {
297299
this.cdsJunctionGene1 += (cds[i][1] - cds[i][0] + 1);
298300
} else if (this.gene1Junction >= cds[i][1]) {
@@ -308,7 +310,7 @@ export class FusionTranscript {
308310
cds = this.transcript2.cds;
309311

310312
if (this.transcript2.strand === "+") {
311-
for (var i = 0; i < cds.length; i++) {
313+
for (i = 0; i < cds.length; i++) {
312314
if (this.gene2Junction >= cds[i][1]) {
313315
this.cdsJunctionGene2 += (cds[i][1] - cds[i][0] + 1);
314316
} else if (this.gene2Junction <= cds[i][0]) {
@@ -318,7 +320,7 @@ export class FusionTranscript {
318320
}
319321
}
320322
} else {
321-
for (var i = 0; i < cds.length; i++) {
323+
for (i = 0; i < cds.length; i++) {
322324
if (this.gene2Junction <= cds[i][0]) {
323325
this.cdsJunctionGene2 += (cds[i][1] - cds[i][0] + 1);
324326
} else if (this.gene2Junction >= cds[i][1]) {
@@ -364,8 +366,9 @@ export class FusionTranscript {
364366
var runningSum = 0;
365367
var utrSeq = '';
366368
const revStrand = this.transcript2.strand === "-";
369+
var i;
367370

368-
for (var i = 0; i < exons.length; i++) {
371+
for (i = 0; i < exons.length; i++) {
369372
var exon = exons[i];
370373
var exonLength = exon[1] - exon[0] + 1;
371374

src/library/upload/JAFFA.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ export class JAFFA extends BaseUpload {
4646
this.fusions = this.fusions.filter(val => val);
4747

4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)