Skip to content

Commit

Permalink
Merge branch 'hotfix/v3.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranmraine committed Mar 11, 2019
2 parents 5077315 + db7010c commit 52e402f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
@@ -1,5 +1,9 @@
# CHANGES

## 3.1.2

* 3.0.5 introduced species parsing bug causing single word species names to be invalid.

## 3.1.1

* Fix regression - ability to cope with chromosomes with no events.
Expand Down
9 changes: 6 additions & 3 deletions perl/bin/pindel.pl
Expand Up @@ -110,7 +110,7 @@ sub setup {
'i|index=i' => \$opts{'index'},
'v|version' => \$opts{'version'},
# these are specifically for pin2vcf
'sp|species=s{0,}' => \@{$opts{'sp'}},
'sp|species=s{0,}' => \@{$opts{'species'}},
'as|assembly=s' => \$opts{'assembly'},
'st|seqtype=s' => \$opts{'seqtype'},
'sg|skipgerm' => \$opts{'skipgerm'},
Expand Down Expand Up @@ -205,8 +205,11 @@ sub setup {

$opts{'tmp'} = $tmpdir;

if(scalar @{$opts{'sp'}} > 0 ){
$opts{'sp'}="@{$opts{'sp'}}";
if(scalar @{$opts{'species'}} > 0 ){
$opts{'species'}="@{$opts{'species'}}";
}
else {
delete $opts{'species'};
}

return \%opts;
Expand Down
5 changes: 4 additions & 1 deletion perl/bin/pindel_2_combined_vcf.pl
Expand Up @@ -272,7 +272,10 @@ sub setup{
pod2usage(-message => "\nERROR: r|ref |".$opts{'r'}."| must be a valid file.\n", -verbose => 1, -output => \*STDERR) unless(-f $opts{'r'});

if(scalar @{$opts{'sp'}} > 0 ){
$opts{'sp'}="@{$opts{'sp'}}";
$opts{'sp'}="@{$opts{'sp'}}";
}
else {
delete $opts{'sp'};
}

return \%opts;
Expand Down
2 changes: 1 addition & 1 deletion perl/lib/Sanger/CGP/Pindel.pm
Expand Up @@ -26,7 +26,7 @@ use strict;
use Const::Fast qw(const);

use base 'Exporter';
our $VERSION = '3.1.1';
our $VERSION = '3.1.2';
our @EXPORT = qw($VERSION);

1;

0 comments on commit 52e402f

Please sign in to comment.