Skip to content

Commit dab56a8

Browse files
author
David Jones
committed
Merge branch 'hotfix/2.2.2'
2 parents 1535249 + cea880e commit dab56a8

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGES
22

3+
## 2.2.2
4+
5+
* Change tabix query call to query_full
6+
37
## 2.2.1
48

59
* Handle files not being written by tophat-fusion-post when no events generated.

perl/bin/compare_CN_and_fusion.pl

+8-13
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@ sub get_start_end {
114114
sub search_break_point_annotations {
115115
my($chr,$start,$end,$tabix,$transcript1,$transcript2,$fusion_line)=@_;
116116
my $results=undef;
117-
my $iter = $tabix->query(sprintf '%s:%d-%d', $chr,$start,$end);
118-
while(my $record = $iter->next){
119-
my ($lgene,$rgene)=(split "/", (split "\t",$record)[12]);
120-
my($matched)=compare_transcripts($transcript1,$transcript2,$lgene,$rgene);
121-
push(@$results,"$matched\t$fusion_line\t$record\n") if($matched );
122-
}
117+
my $iter = $tabix->query_full($chr,$start,$end);
118+
if(defined($iter)){
119+
while(my $record = $iter->next){
120+
my ($lgene,$rgene)=(split "/", (split "\t",$record)[12]);
121+
my($matched)=compare_transcripts($transcript1,$transcript2,$lgene,$rgene);
122+
push(@$results,"$matched\t$fusion_line\t$record\n") if($matched );
123+
}
124+
}
123125
return $results;
124126
}
125127

@@ -146,10 +148,3 @@ sub compare_gene {
146148
}
147149
return $matched;
148150
}
149-
150-
151-
152-
153-
154-
155-

perl/lib/Sanger/CGP/CgpRna.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use strict;
3636
use Const::Fast qw(const);
3737
use base 'Exporter';
3838

39-
our $VERSION = '2.2.1';
39+
our $VERSION = '2.2.2';
4040
our @EXPORT = qw($VERSION);
4141

4242
1;

0 commit comments

Comments
 (0)