Skip to content

Commit d9b7daf

Browse files
author
David Jones
committedNov 19, 2019
Merge branch 'release/3.5.0'
2 parents 0a85f0b + 67d3167 commit d9b7daf

10 files changed

+303
-284
lines changed
 

‎CHANGES.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
# Changes
22

3+
## 3.5.0
4+
5+
* Changes required for use with GRCh38 compatible Battenberg R
6+
* **some reference files for for chromosome X will require renaming in GRCh37**
7+
* `mv 1000_genomes_GC_corr_chr_23.txt.gz 1000_genomes_GC_corr_chr_X.txt.gz`
8+
* `mv 1000genomesAlleles2012_chr23.txt 1000genomesAlleles2012_chrX.txt`
9+
* `mv 1000genomesloci2012_chr23.txt 1000genomesloci2012_chrX.txt`
10+
* This release points to cancerit fork of core battenberg algorithm [here](https://github.com/cancerit/battenberg/feature/grch38)
11+
312
## 3.4.0
413

514
* Placed into a container.
615

7-
816
## 3.3.1
917

1018
* Fixed bug when creating split loci files which would occasionally count wrongly due to rounding errors. Fixed the cause of the rounding error and added a sort to the hash.
1119
* Added check that the number of split loci files is at least the number of required contigs
1220

13-
1421
## 3.3.0
1522

1623
* Upgrade to Battenberg [v2.2.8](https://github.com/Wedge-Oxford/battenberg/releases/tag/v2.2.8).

‎README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,17 @@ Some required data files are not included in the distribution but a script is in
8484
* Included: ``files/probloci.txt.gz``
8585

8686
Additionally, the wgs_gc_correction_1000g files need to be downloaded. These can be obtained from the Battenberg R code site [here][bb-ref].
87+
* The chr X wgs_gc_correction_1000g will require renaming. `mv 1000_genomes_GC_corr_chr_23.txt.gz 1000_genomes_GC_corr_chr_X.txt.gz`
8788

8889
## Program Run Instructions
8990

9091
For the most up to date usage instructions for the wrapper code please see the command line help:
9192

92-
battenberg.pl -h
93+
`battenberg.pl -h`
9394

9495
Please check the [wiki][cgpbb-wiki] for common problems before raising any issues.
9596

96-
# LICENCE
97+
## LICENCE
9798

9899
```
99100
Copyright (c) 2014-2018 Genome Research Ltd.

‎Rsupport/setupR.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ INST_PATH=$1
4141
BUILD_R=$2
4242

4343
VERSION_ASCAT='2.5.1' # no 'v', not a project archive an artifact
44-
VERSION_BB='v2.2.8' # with 'v', this is a project archive
44+
VERSION_BB='v2.3.0' # with 'v', this is a project archive
4545

4646
CPU=`grep -c ^processor /proc/cpuinfo`
4747
if [ $? -eq 0 ]; then
@@ -85,7 +85,7 @@ if [ "x$BUILD_R" != "x" ]; then
8585
fi
8686

8787
curl -sSL https://github.com/Crick-CancerGenomics/ascat/releases/download/v${VERSION_ASCAT}/ASCAT_${VERSION_ASCAT}.tar.gz > ascat_R.tar.gz
88-
curl -sSL https://github.com/Wedge-Oxford/battenberg/archive/$VERSION_BB.tar.gz > BB_R.tar.gz
88+
curl -sSL https://github.com/cancerit/battenberg/archive/$VERSION_BB.tar.gz > BB_R.tar.gz
8989

9090
Rscript $INIT_DIR/libInstall.R $R_LIBS_USER ascat_R.tar.gz BB_R.tar.gz 2>&1 | grep '^\*'
9191

‎perl/bin/battenberg.pl

+3-2
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: Cancer Genome Project <cgphelp@sanger.ac.uk>
77
#
@@ -283,8 +283,9 @@ sub setup {
283283
}
284284
PCAP::Cli::file_for_reading('reference',$opts{'reference'});
285285

286-
my $no_of_jobs = Sanger::CGP::Battenberg::Implement::file_line_count_with_ignore($opts{'reference'},$opts{'ignored_contigs'});
286+
my ($no_of_jobs, $contig_list) = Sanger::CGP::Battenberg::Implement::file_line_count_with_ignore($opts{'reference'},$opts{'ignored_contigs'});
287287
$opts{'job_count'} = $no_of_jobs;
288+
$opts{'contig_list'} = $contig_list;
288289

289290
#Set number of loci files to be the number of chromosomes if not set
290291
my $loci_files_defined = 1;

‎perl/bin/battenberg_CN_to_VCF.pl

+1-1
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: David Jones <cgphelp@sanger.ac.uk>
77
#

‎perl/bin/battenberg_version.pl

+1-1
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: Cancer Genome Project <cgphelp@sanger.ac.uk>
77
#

‎perl/bin/bb_vcf_to_ascat_cn.pl

+1-1
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: David Jones <cgphelp@sanger.ac.uk>
77
#

0 commit comments

Comments
 (0)