Skip to content

Commit

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

## 3.0.1

* Update tabix calls to directly use query_full (solves GRCh38 contig name issues).

## 3.0.0

* Germline bed file is now merged for adjacent regions (#31)
Expand Down
2 changes: 1 addition & 1 deletion perl/lib/Sanger/CGP/Pindel.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 = '3.0.0';
our $VERSION = '3.0.1';
our @EXPORT = qw($VERSION);

1;
2 changes: 1 addition & 1 deletion perl/lib/Sanger/CGP/Pindel/InputGen/Read.pm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ sub _good_anchor {

sub _tabix_hit {
my $self = shift;
my $iter = $self->{'tabix'}->query(sprintf '%s:%d-%d', $self->{'rname'}, $self->{'pos'}, $self->{'pos'});
my $iter = $self->{'tabix'}->query_full($self->{'rname'}, $self->{'pos'}, $self->{'pos'});
return 0 unless(defined $iter);
while(my $ret = $iter->next){
return 1;
Expand Down
6 changes: 3 additions & 3 deletions perl/lib/Sanger/CGP/PindelPostProcessing/FilterRules.pm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ sub flag_009 {

my $ret = eval{
# as vcf POS for indels is the previous base pos is 0-based, but the new TABIX requires 1-based
my $iter = $main::VCF_IS_CODING_TABIX->query(sprintf '%s:%d-%d', $CHROM,$POS+1,($POS+$MATCH));
my $iter = $main::VCF_IS_CODING_TABIX->query_full($CHROM,$POS+1,($POS+$MATCH));
return $FAIL if(!defined $iter); # no valid entries (chromosome not in index) so must FAIL
while($iter->next){
return $PASS;
Expand Down Expand Up @@ -337,7 +337,7 @@ sub flag_010 {
$to += $length_off;

my $ret = eval{
my $iter = $vcf_flagging_unmatched_normals_tabix->query(sprintf '%s:%d-%d', $CHROM,$from,$to);
my $iter = $vcf_flagging_unmatched_normals_tabix->query_full($CHROM,$from,$to);
return $PASS if(!defined $iter); # no valid entries (chromosome not in index) so must pass
while($iter->next){
return $FAIL;
Expand Down Expand Up @@ -427,7 +427,7 @@ sub flag_017 {

my $ret = eval{
# as vcf POS for indels is the previous base pos is 0-based, but the new TABIX requires 1-based
my $iter = $vcf_flagging_repeats_tabix->query(sprintf '%s:%d-%d', $CHROM,$from,$to);
my $iter = $vcf_flagging_repeats_tabix->query_full($CHROM,$from,$to);
return $PASS if(!defined $iter); # no valid entries (chromosome not in index) so must pass
while($iter->next){
return $FAIL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ sub flag_009 {

my $ret = eval{
# as vcf POS for indels is the previous base pos is 0-based, but the new TABIX requires 1-based
my $iter = $main::VCF_IS_CODING_TABIX->query(sprintf '%s:%d-%d', $CHROM,$POS+1,($POS+$MATCH));
my $iter = $main::VCF_IS_CODING_TABIX->query_full($CHROM,$POS+1,($POS+$MATCH));
return $FAIL if(!defined $iter); # no valid entries (chromosome not in index) so must FAIL
while($iter->next){
return $PASS;
Expand Down Expand Up @@ -337,7 +337,7 @@ sub flag_010 {
$to += $length_off;

my $ret = eval{
my $iter = $vcf_flagging_unmatched_normals_tabix->query(sprintf '%s:%d-%d', $CHROM,$from,$to);
my $iter = $vcf_flagging_unmatched_normals_tabix->query_full($CHROM,$from,$to);
return $PASS if(!defined $iter); # no valid entries (chromosome not in index) so must pass
while($iter->next){
return $FAIL;
Expand Down Expand Up @@ -423,7 +423,7 @@ sub flag_017 {

my $ret = eval{
# as vcf POS for indels is the previous base pos is 0-based, but the new TABIX requires 1-based
my $iter = $vcf_flagging_repeats_tabix->query(sprintf '%s:%d-%d', $CHROM,$from,$to);
my $iter = $vcf_flagging_repeats_tabix->query_full($CHROM,$from,$to);
return $PASS if(!defined $iter); # no valid entries (chromosome not in index) so must pass
while($iter->next){
return $FAIL;
Expand Down

0 comments on commit 3a1e1b7

Please sign in to comment.