Skip to content

Commit 4e4f9b3

Browse files
author
David Jones
committed
Merge branch 'hotfix/v6.1.2'
2 parents ad502b9 + 798433e commit 4e4f9b3

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install:
3535
- ./setup.sh $HOME/wtsi-opt
3636
- cd ../
3737
- rm -rf cgpBigWig
38-
- git clone --depth 1 --single-branch --branch dev https://github.com/ICGC-TCGA-PanCancer/PCAP-core.git
38+
- git clone --depth 1 --single-branch --branch develop https://github.com/cancerit/PCAP-core.git
3939
- cd PCAP-core
4040
- ./setup.sh $HOME/wtsi-opt
4141
- cd ../

CHANGES.md

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

3+
## v6.1.2
4+
5+
* Change tabix->query to tabix->query_full
6+
37
## v6.1.1
48

59
* Reduce I/O for small cpu overhead in coverage step

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.1.1';
49+
our $VERSION = '6.1.2';
5050

5151
=head1 NAME
5252

perl/lib/Bio/Brass/Merge.pm

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,16 @@ sub merge_records {
108108
# always clear the existing groups
109109
$n_grp->clear_group;
110110
# tabix BED now 1 based when queried
111-
my $iter = $brass_np->query(sprintf '%s%s%s%s:%d-%d', $a_grp->low_chr, $a_grp->low_strand, $a_grp->high_chr, $a_grp->high_strand, $a_grp->low_5p, $a_grp->low_3p);
111+
my $iter = $brass_np->query_full(sprintf('%s%s%s%s', $a_grp->low_chr, $a_grp->low_strand, $a_grp->high_chr, $a_grp->high_strand), $a_grp->low_5p, $a_grp->low_3p);
112112
my %overlaps;
113113
my $low_chr=$a_grp->low_chr;
114-
while(my $record = $iter->next){
115-
$record=~s/^[^\t]+/$low_chr/;
116-
$n_grp->new_group($record);
117-
next unless($a_grp->high_3p >= $n_grp->high_5p && $a_grp->high_5p <= $n_grp->high_3p);
118-
$overlaps{"@{$n_grp->{_loc_data}}"} = $record;
114+
if(defined($iter)){
115+
while(my $record = $iter->next){
116+
$record=~s/^[^\t]+/$low_chr/;
117+
$n_grp->new_group($record);
118+
next unless($a_grp->high_3p >= $n_grp->high_5p && $a_grp->high_5p <= $n_grp->high_3p);
119+
$overlaps{"@{$n_grp->{_loc_data}}"} = $record;
120+
}
119121
}
120122
my $overlap = filter_overlaps(\%overlaps, $n_grp->sample_count);
121123
if(defined $overlap) {

0 commit comments

Comments
 (0)