Skip to content

Commit

Permalink
Merge branch 'hotfix/2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
David Jones committed Mar 26, 2018
2 parents 1535249 + cea880e commit dab56a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGES

## 2.2.2

* Change tabix query call to query_full

## 2.2.1

* Handle files not being written by tophat-fusion-post when no events generated.
Expand Down
21 changes: 8 additions & 13 deletions perl/bin/compare_CN_and_fusion.pl
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ sub get_start_end {
sub search_break_point_annotations {
my($chr,$start,$end,$tabix,$transcript1,$transcript2,$fusion_line)=@_;
my $results=undef;
my $iter = $tabix->query(sprintf '%s:%d-%d', $chr,$start,$end);
while(my $record = $iter->next){
my ($lgene,$rgene)=(split "/", (split "\t",$record)[12]);
my($matched)=compare_transcripts($transcript1,$transcript2,$lgene,$rgene);
push(@$results,"$matched\t$fusion_line\t$record\n") if($matched );
}
my $iter = $tabix->query_full($chr,$start,$end);
if(defined($iter)){
while(my $record = $iter->next){
my ($lgene,$rgene)=(split "/", (split "\t",$record)[12]);
my($matched)=compare_transcripts($transcript1,$transcript2,$lgene,$rgene);
push(@$results,"$matched\t$fusion_line\t$record\n") if($matched );
}
}
return $results;
}

Expand All @@ -146,10 +148,3 @@ sub compare_gene {
}
return $matched;
}







2 changes: 1 addition & 1 deletion perl/lib/Sanger/CGP/CgpRna.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use strict;
use Const::Fast qw(const);
use base 'Exporter';

our $VERSION = '2.2.1';
our $VERSION = '2.2.2';
our @EXPORT = qw($VERSION);

1;

0 comments on commit dab56a8

Please sign in to comment.