Skip to content

Commit 77ac821

Browse files
committed
Merge branch 'hotfix/v6.0.5'
2 parents b69f3e5 + 6838ca3 commit 77ac821

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v6.0.5
2+
* Fix `ssearch36` queries attempting to get sequence beyond start of chromosome/contig.
3+
14
### v6.0.4
25

36
* Modify `Rsupport/libInstall.R` to cope with use of R <3.4 for standard builds

perl/bin/filter_with_microbes_and_remapping.pl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,12 @@
209209
}
210210
else {
211211
# Deal with low end reads
212-
my $target_seq = uc(get_fai_seq($fai, $r->[3], $h-$SLOP_FOR_GENOMIC_REGION, $h+$SLOP_FOR_GENOMIC_REGION, ($r->[8] eq $r->[9] ? 1 : 0)));
213-
my $source_seq = uc(get_fai_seq($fai, $r->[0], $l-$SLOP_FOR_GENOMIC_REGION, $l+$SLOP_FOR_GENOMIC_REGION, 0));
212+
my $h_low = $h-$SLOP_FOR_GENOMIC_REGION;
213+
$h_low = 1 if($h_low < 1);
214+
my $l_low = $l-$SLOP_FOR_GENOMIC_REGION;
215+
$l_low = 1 if($l_low < 1);
216+
my $target_seq = uc(get_fai_seq($fai, $r->[3], $h_low, $h+$SLOP_FOR_GENOMIC_REGION, ($r->[8] eq $r->[9] ? 1 : 0)));
217+
my $source_seq = uc(get_fai_seq($fai, $r->[0], $l_low, $l+$SLOP_FOR_GENOMIC_REGION, 0));
214218
if ($target_seq =~ /N/ || $source_seq =~ /N/) {
215219
push @low_end_remap_score, 'ref_seq_has_N';
216220
push @high_end_remap_score, 'ref_seq_has_N';
@@ -264,8 +268,12 @@
264268
$read_name =~ s/:/_/g;
265269
$rg_id_of_read{$read_name} = $r->[6];
266270
}
267-
$target_seq = get_fai_seq($fai, $r->[0], $l-$SLOP_FOR_GENOMIC_REGION, $l+$SLOP_FOR_GENOMIC_REGION, ($r->[8] eq $r->[9] ? 1 : 0));
268-
$source_seq = get_fai_seq($fai, $r->[3], $h-$SLOP_FOR_GENOMIC_REGION, $h+$SLOP_FOR_GENOMIC_REGION, 0);
271+
$h_low = $h-$SLOP_FOR_GENOMIC_REGION;
272+
$h_low = 1 if($h_low < 1);
273+
$l_low = $l-$SLOP_FOR_GENOMIC_REGION;
274+
$l_low = 1 if($l_low < 1);
275+
$target_seq = get_fai_seq($fai, $r->[0], $l_low, $l+$SLOP_FOR_GENOMIC_REGION, ($r->[8] eq $r->[9] ? 1 : 0));
276+
$source_seq = get_fai_seq($fai, $r->[3], $h_low, $h+$SLOP_FOR_GENOMIC_REGION, 0);
269277
if (@reads >= $MIN_SUPPORT) {
270278
my @high_end_score_diffs = get_remapping_score_differences(
271279
'high_'.$r->[6],

perl/docs.tar.gz

334 Bytes
Binary file not shown.

perl/lib/Bio/Brass.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ our @EXPORT = qw(find_breakpoints find_dusty_vertices
4646
is_dusty get_isolated_bp_alignment get_isolated_bp_surrounding_region
4747
$VERSION);
4848

49-
our $VERSION = '6.0.4';
49+
our $VERSION = '6.0.5';
5050

5151
=head1 NAME
5252

0 commit comments

Comments
 (0)