Skip to content

Commit 83dd402

Browse files
committed
Merge branch 'hotfix/v6.2.1'
2 parents bcb3b6d + 86354fc commit 83dd402

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ addons:
2828
- time
2929
- unzip
3030
- zlib1g-dev
31+
- libgd-dev
32+
- libdb-dev
3133

3234
install:
3335
- git clone --depth 1 --single-branch --branch develop https://github.com/cancerit/cgpBigWig.git

CHANGES.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Changes
22

3+
## v6.2.1
4+
5+
* Fixes #80 - allow RGID == 0
6+
* Resolves #84 - use helper threads where possible
7+
38
## v6.2.0
9+
410
* Fixed bug where subset of intervals does not have reads -issue#65
511
* Informative error when .bas file is absent - issue#71
612
* temp file were now kept after running filter step - issue#73
7-
* Fixed issue#66
8-
* Added script to process centro/telomere data - issue#70
13+
* Fixed issue#66
14+
* Added script to process centro/telomere data - issue#70
915
* Fixed bug where intermediate file name matches with one of the sample
1016

1117
## v6.1.2

perl/bin/brassI_prep_bam.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/perl
22

33
########## LICENCE ##########
4-
# Copyright (c) 2014-2018 Genome Research Ltd.
4+
# Copyright (c) 2014-2019 Genome Research Ltd.
55
#
66
# Author: CASM/Cancer IT <[email protected]>
77
#
@@ -143,8 +143,7 @@ sub process_header {
143143
$rg_id = $1 if($row =~ /\tID:([^\t]+)/);
144144

145145
# die horribly if RG ids don't match
146-
unless ($bas_ob->get($rg_id, 'readgroup')) { die "Readgroup $rg_id in bam file but not in bas file $!"; }
147-
146+
unless (defined $bas_ob->get($rg_id, 'readgroup')) { die "Readgroup $rg_id in bam file but not in bas file $!"; }
148147

149148
# The script needs use the information in the *.bas file to augment the Reagd-group line with the 'MI:' tag.
150149
# This holds the 'maximum insert' size, this should be calculated as:

perl/lib/Bio/Brass.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package Bio::Brass;
22

33
########## LICENCE ##########
4-
# Copyright (c) 2014-2018 Genome Research Ltd.
4+
# Copyright (c) 2014-2019 Genome Research Ltd.
55
#
66
# Author: CASM/Cancer IT <[email protected]>
77
#
@@ -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.2.0';
49+
our $VERSION = '6.2.1';
5050

5151
=head1 NAME
5252

perl/lib/Sanger/CGP/Brass/Implement.pm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package Sanger::CGP::Brass::Implement;
22

33
########## LICENCE ##########
4-
# Copyright (c) 2014-2018 Genome Research Ltd.
4+
# Copyright (c) 2014-2019 Genome Research Ltd.
55
#
66
# Author: CASM/Cancer IT <[email protected]>
77
#
@@ -63,7 +63,7 @@ const my $BAMCOLLATE => q{ outputformat=sam exclude= classes=F,F2 T=%s/bamcollat
6363
# tmpdir, iter, file
6464
const my $PREP_BAM => q{ -b %s -p %s};
6565
# basfile[ -e exclude chrs]
66-
const my $BAMSORT => q{ tmpfile=%s/bamsort_%s inputformat=sam verbose=0 index=1 md5=1 md5filename=%s.md5 indexfilename=%s.bai O=%s};
66+
const my $BAMSORT => q{ tmpfile=%s/bamsort_%s inputformat=sam verbose=0 index=1 md5=1 md5filename=%s.md5 indexfilename=%s.bai O=%s outputthreads=%d sortthreads=%d};
6767
# out_bamname, out_bamname, out_bamname
6868

6969
#genome.fa.fai gc_windows.bed[.gz] in.bam out_path [chr_idx] sample_type
@@ -124,6 +124,9 @@ sub input {
124124
$rg_prefix = 'N';
125125
}
126126

127+
my $helper_threads = int $options->{'threads'}/2 || 1;
128+
$helper_threads = 6 if($helper_threads > 6);
129+
127130
my $command = _which('samtools');
128131
$command .= ' view -F 3854 -q 6 -u '.$input;
129132
$command .= ' | ';
@@ -139,7 +142,7 @@ sub input {
139142
$command .= " -i ".join(',', valid_seqs($options));
140143
$command .= ' | ';
141144
$command .= _which('bamsort');
142-
$command .= sprintf $BAMSORT, $tmp, $index, $outbam, $outbam, $outbam;
145+
$command .= sprintf $BAMSORT, $tmp, $index, $outbam, $outbam, $outbam, $helper_threads, $helper_threads;
143146

144147
PCAP::Threaded::external_process_handler(File::Spec->catdir($tmp, 'logs'), qq{bash -c 'set -o pipefail; $command'}, $index);
145148

0 commit comments

Comments
 (0)