You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
die "ERROR: Unsorted GTF input (line $.). Must be sorted by chr, then start, then stop. Can't continue.\n" if ($chr eq $previous_chr && $start < $previous_start);
die "Inconsistent strand for transcript $GTFtranscript_id in input file. Can't continue.\n";
296
+
die "ERROR: Inconsistent strand for transcript $GTFtranscript_id in input file. Can't continue.\n";
297
297
}
298
298
$transcript_strand{$transcript_id}=$strand;
299
299
if (exists $transcript_chr{$transcript_id} && $transcript_chr{$transcript_id} ne $chr){
300
-
die "Inconsistent chr for transcript $GTFtranscript_id in input file. Can't continue.\n";
300
+
die "ERROR: Inconsistent chr for transcript $GTFtranscript_id in input file. Can't continue.\n";
301
301
302
302
}
303
303
$transcript_chr{$transcript_id}=$chr;
@@ -361,7 +361,7 @@ while (<GFF>){
361
361
}
362
362
close GFF;
363
363
print STDERR "Done. Found $nr_exons exons and $read_count transcripts.\n";
364
-
my $million_read_count=1000000/$read_count;
364
+
my $million_read_count=1000000/($read_count+1);
365
365
%transcript_seen=();
366
366
%transcript_rev_index=();
367
367
@@ -567,7 +567,7 @@ CONTIGS: foreach my $contig (keys %contig_to_transcripts){
567
567
if($intronTr1Index > $#{$transcript_introns{$tr1}} #we've reached the last intron of tr1.
568
568
&& $j < $#{$transcript_introns{$tr2}} #we've not reached the last intron of tr2.
569
569
&& ${$transcript_introns{$tr1}}[0][1] == ${$transcript_introns{$tr2}}[0][1] #tr1 and tr2's respective intron chains start at the same coord
570
-
&& ${$transcript_introns{$tr2}}[$j+1][1] >= ${$transcript_exons{$tr1}}[-1][2] - $exonOverhangTolerance){ #tr1's last exon does not overhang too much inside tr2's next intron
570
+
&& ${$transcript_introns{$tr2}}[$j+1][1] > ${$transcript_exons{$tr1}}[-1][2] - $exonOverhangTolerance){ #tr1's last exon does not overhang too much inside tr2's next intron
571
571
#Transfer remaining exons of tr2 to tr1, if they're compatible
572
572
$lastTr1IntronMatchedToTr2=$i;
573
573
print STDERR "DEBUG: reached last tr1 intron\n" if $debug;
die "Program died due to a bug (in endDistances subroutine: $containedLeftStart < ${${$transcript_exons{$container}}[$i]}[1])\nsorry. Please contact author.\n";
1060
+
die "ERROR: Program died due to a bug (in endDistances subroutine: $containedLeftStart < ${${$transcript_exons{$container}}[$i]}[1])\nsorry. Please contact author.\n";
die "Program died due to a bug (in endDistances subroutine: $containedRightEnd > ${${$transcript_exons{$container}}[$i]}[2])\n, sorry. Please contact author.\n";
1080
+
die "ERROR: Program died due to a bug (in endDistances subroutine: $containedRightEnd > ${${$transcript_exons{$container}}[$i]}[2])\n, sorry. Please contact author.\n";
0 commit comments