Skip to content

Commit 52e402f

Browse files
committed
Merge branch 'hotfix/v3.1.2'
2 parents 5077315 + db7010c commit 52e402f

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGES
22

3+
## 3.1.2
4+
5+
* 3.0.5 introduced species parsing bug causing single word species names to be invalid.
6+
37
## 3.1.1
48

59
* Fix regression - ability to cope with chromosomes with no events.

perl/bin/pindel.pl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ sub setup {
110110
'i|index=i' => \$opts{'index'},
111111
'v|version' => \$opts{'version'},
112112
# these are specifically for pin2vcf
113-
'sp|species=s{0,}' => \@{$opts{'sp'}},
113+
'sp|species=s{0,}' => \@{$opts{'species'}},
114114
'as|assembly=s' => \$opts{'assembly'},
115115
'st|seqtype=s' => \$opts{'seqtype'},
116116
'sg|skipgerm' => \$opts{'skipgerm'},
@@ -205,8 +205,11 @@ sub setup {
205205

206206
$opts{'tmp'} = $tmpdir;
207207

208-
if(scalar @{$opts{'sp'}} > 0 ){
209-
$opts{'sp'}="@{$opts{'sp'}}";
208+
if(scalar @{$opts{'species'}} > 0 ){
209+
$opts{'species'}="@{$opts{'species'}}";
210+
}
211+
else {
212+
delete $opts{'species'};
210213
}
211214

212215
return \%opts;

perl/bin/pindel_2_combined_vcf.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,10 @@ sub setup{
272272
pod2usage(-message => "\nERROR: r|ref |".$opts{'r'}."| must be a valid file.\n", -verbose => 1, -output => \*STDERR) unless(-f $opts{'r'});
273273

274274
if(scalar @{$opts{'sp'}} > 0 ){
275-
$opts{'sp'}="@{$opts{'sp'}}";
275+
$opts{'sp'}="@{$opts{'sp'}}";
276+
}
277+
else {
278+
delete $opts{'sp'};
276279
}
277280

278281
return \%opts;

perl/lib/Sanger/CGP/Pindel.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use strict;
2626
use Const::Fast qw(const);
2727

2828
use base 'Exporter';
29-
our $VERSION = '3.1.1';
29+
our $VERSION = '3.1.2';
3030
our @EXPORT = qw($VERSION);
3131

3232
1;

0 commit comments

Comments
 (0)