Skip to content

Commit

Permalink
Merge branch 'hotfix/v4.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
David Jones committed Mar 26, 2018
2 parents e20cfbd + 8553d64 commit 79dab0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## 4.2.1

* Update tabix call to use query_full

## 4.2.0

* Upgrade to core R [ASCAT v2.5.1](https://github.com/Crick-CancerGenomics/ascat/releases/tag/v2.5)
Expand Down
12 changes: 7 additions & 5 deletions perl/bin/utilities/ascatSnpPanelGenerator.pl
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@ sub get_regions {
for my $t_range(@top_ranges) {
my ($c_chr, $c_start, $c_end) = @{$t_range};
if(defined $exclude) {
my $iter = $exclude->query(sprintf "%s:%d-%d", $c_chr, $c_start, $c_end);
while(my $record = $iter->next){
my ($start0, $end1) = (split /\t/, $record)[1..2];
push @refined_regions, [sprintf("%s:%d-%d", $c_chr, $c_start, $start0), $c_chr, $c_start, $start0] unless($start0 == 0);
$c_start = $end1;
my $iter = $exclude->query_full($c_chr, $c_start, $c_end);
if(defined($iter)){
while(my $record = $iter->next){
my ($start0, $end1) = (split /\t/, $record)[1..2];
push @refined_regions, [sprintf("%s:%d-%d", $c_chr, $c_start, $start0), $c_chr, $c_start, $start0] unless($start0 == 0);
$c_start = $end1;
}
}
}
push @refined_regions, [sprintf("%s:%d-%d", $c_chr, $c_start, $c_end), $c_chr, $c_start, $c_end];
Expand Down
2 changes: 1 addition & 1 deletion perl/lib/Sanger/CGP/Ascat.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use strict;
use Const::Fast qw(const);
use base 'Exporter';

our $VERSION = '4.2.0';
our $VERSION = '4.2.1';
our @EXPORT = qw($VERSION);

const my $LICENSE =>
Expand Down

0 comments on commit 79dab0c

Please sign in to comment.