Skip to content

Commit 1c91c63

Browse files
committed
Merge branch 'release/v3.2.0'
2 parents f064a87 + bd4700a commit 1c91c63

12 files changed

Lines changed: 77 additions & 762 deletions

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ language: perl
2929
perl:
3030
- "5.22"
3131

32+
before_script:
33+
- git clone --depth 1 --single-branch --branch develop https://github.com/cancerit/cgpBigWig.git
34+
- cd cgpBigWig
35+
- ./setup.sh $HOME/wtsi-opt
36+
- cd ../
37+
3238
script:
3339
- ./setup.sh ~/wtsi-opt
3440
- ~/wtsi-opt/bin/samtools view # dump usage to show intact

CHANGES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
### 3.2.0
2+
* Move from legacy kent bigwig manipulation code and to [`cgpBigWig`](https://github.com/cancerit/cgpBigWig)
3+
* Faster and handles the huge number of contigs in many new reference builds.
4+
* Resulting changes to underlying installed tools is `bwcat` now `bwjoin` to be more descriptive of actual function.
5+
6+
### 3.1.1
7+
Handle recent changes to BioPerl structure
8+
9+
### 3.1.0
10+
* Use BWA default for `-T` previously hard coded to `-T 0`.
11+
* Can be passed through `bwa_mem.pl` other ags to bwa via the `-b` option.
12+
* Fix `bam2bedgraph` compilation since changes to underlying libraries
13+
* `bamToBw.pl` - expose read flag filters
14+
* Drop dependancy on `Bio::DB::HTS INSTALL.pl` as can't fix to known good version.
15+
* Added travis CI
16+
* Add support for output directly to CRAM
17+
* `bwa` version upgraded to [0.7.15](https://github.com/lh3/bwa/releases/tag/v0.7.15)
18+
119
### 3.0.0
220
* Threading module now converts currently running step to bash script for following reasons:
321
* Changes logging to use file redirects instead of Capture::Tiny - prevent log bleed into wrong files

MANIFEST

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ bin/gnos_pull.pl
1010
bin/monitor.pl
1111
bin/xam_coverage_bins.pl
1212
bin/xml_to_bas.pl
13-
c/bam2bedgraph.c
1413
c/bam_access.c
1514
c/bam_access.h
1615
c/bam_stats.c
1716
c/bam_stats_calcs.c
1817
c/bam_stats_calcs.h
1918
c/bam_stats_output.c
2019
c/bam_stats_output.h
21-
c/bwcat.c
2220
c/c_tests/01_bam_stats_output_tests.c
2321
c/c_tests/02_bam_access_tests.c
2422
c/c_tests/03_bam_stats_calcs_tests.c

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,22 @@ Please see the [wiki](https://github.com/ICGC-TCGA-PanCancer/PCAP-core/wiki) for
1818
---
1919

2020
###Dependencies/Install
21-
Some of the code included in this package has dependencies on external packages:
2221

23-
* [biobambam](https://github.com/gt1/biobambam)
24-
* [bwa](https://github.com/lh3/bwa)
25-
* [samtools](https://github.com/samtools/samtools)
26-
* [kentUtils](https://github.com/ENCODE-DCC/kentUtils)
22+
Please install the following before running `setup.sh`:
23+
24+
* [cgpBigWig](https://github.com/cancerit/cgpBigWig/releases)
25+
26+
Dependancies installed by `setup.sh`:
27+
28+
* [biobambam](https://github.com/gt1/biobambam)
29+
* [bwa](https://github.com/lh3/bwa)
30+
* [samtools](https://github.com/samtools/samtools)
2731

2832
And various perl modules.
2933

3034
Please see the respective licence for each before use.
3135

32-
Please use `setup.sh` to install the dependencies. Please be aware that this expects basic C
33-
compilation libraries and tools to be available, most are listed in `INSTALL`.
36+
Please be aware that this expects basic C compilation libraries and tools to be available, most are listed in `INSTALL`.
3437

3538
---
3639

bin/bamToBw.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@
4747
{
4848
my $options = setup();
4949

50+
$options->{'ctg_lengths'} = PCAP::ref_lengths($options->{'reference'}.'.fai');
51+
5052
my $threads = PCAP::Threaded->new($options->{'threads'});
51-
&PCAP::Threaded::disable_out_err if(exists $options->{'index'});
53+
&PCAP::Threaded::disable_out_err unless(exists $options->{'index'});
5254

5355
# register processes
5456
$threads->add_function('bamToBw', \&PCAP::BigWig::bamToBw);

c/Makefile

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,13 @@ CFLAGS = -Wall
1414

1515
HTSLOC?=$(HTSLIB)
1616

17-
#if test -z "$$LIBBIGWIG"
18-
#LIBBIGWIGLOC?=$(LIBBIGWIG)
19-
#echo "*******DEFINED"
20-
#endif
21-
2217
HTSTMP?=./htslib_tmp
2318
prefix=?/usr/local/
2419

2520
#Define locations of header files
2621
OPTINC?= -I$(HTSLOC)/
2722
INCLUDES= -I./ $(OPTINC) -rdynamic
2823

29-
ifdef LIBBIGWIG
30-
CAT_INCLUDES= -I$(LIBBIGWIG)
31-
CAT_LFLAGS= -L$(LIBBIGWIG)
32-
endif
33-
3424
CAT_INCLUDES+= -I$(prefix)/include
3525
CAT_LFLAGS+= -L$(prefix)/lib
3626

@@ -64,9 +54,7 @@ MD := mkdir
6454

6555
#Build target executable
6656
BAM_STATS_TARGET=../bin/bam_stats
67-
CAT_TARGET=../bin/bwcat
6857
SQ_TARGET=../bin/reheadSQ
69-
BAM2BG_TARGET=../bin/bam2bedgraph
7058

7159
#
7260
# The following part of the makefile is generic; it can be used to
@@ -78,18 +66,12 @@ BAM2BG_TARGET=../bin/bam2bedgraph
7866

7967
.NOTPARALLEL: test
8068

81-
all: clean pre make_htslib_tmp $(BAM_STATS_TARGET) $(BAM2BG_TARGET) test remove_htslib_tmp $(CAT_TARGET) $(SQ_TARGET)
82-
@echo bam_stats, reheadSQ and bwcat compiled.
69+
all: clean pre make_htslib_tmp $(BAM_STATS_TARGET) $(BAM2BG_TARGET) $(BAM2BW_TARGET) test remove_htslib_tmp $(CAT_TARGET) $(SQ_TARGET)
70+
@echo bam_stats and reheadSQ compiled.
8371

8472
$(BAM_STATS_TARGET): $(OBJS)
8573
$(CC) $(CFLAGS) $(INCLUDES) -o $(BAM_STATS_TARGET) $(OBJS) $(LFLAGS) $(LIBS) ./bam_stats.c
8674

87-
$(CAT_TARGET):
88-
$(CC) $(CAT_INCLUDES) $(CFLAGS) ./bwcat.c $(CAT_LFLAGS) -lBigWig -lz -lcurl -lm -lgnutls -ltasn1 -lhogweed -lnettle -lgmp -lp11-kit -o $(CAT_TARGET)
89-
90-
$(BAM2BG_TARGET): $(OBJS)
91-
$(CC) $(CFLAGS) $(INCLUDES) -o $(BAM2BG_TARGET) $(OBJS) $(LFLAGS) $(LIBS) ./bam2bedgraph.c
92-
9375
$(SQ_TARGET):
9476
$(CC) $(CFLAGS) ./reheadSQ.c -o $(SQ_TARGET)
9577

@@ -104,9 +86,6 @@ test: $(TESTS)
10486
coverage: CFLAGS += --coverage
10587
coverage: test
10688

107-
make_bigwigcat: $(CAT_TARGET)
108-
@echo $(CAT_TARGET) done
109-
11089
make_htslib_tmp:
11190
$(MD) $(HTSTMP)
11291
#Do some magic to ensure we compile BAM_STATS with the static libhts.a rather than libhts.so
@@ -118,7 +97,7 @@ remove_htslib_tmp:
11897

11998
copyscript:
12099
cp ./scripts/* ./bin/
121-
chmod a+x $(BAM_STATS_TARGET) $(CAT_TARGET) $(SQ_TARGET)
100+
chmod a+x $(BAM_STATS_TARGET) $(CAT_TARGET) $(SQ_TARGET) $(BAM2BW_TARGET) $(BAM2BG_TARGET)
122101

123102
valgrind:
124103
VALGRIND="valgrind --log-file=/tmp/valgrind-%p.log" $(MAKE)
@@ -133,7 +112,7 @@ valgrind:
133112

134113
clean:
135114
@echo clean
136-
$(RM) ./*.o *~ $(BAM_STATS_TARGET) $(SQ_TARGET) $(CAT_TARGET) ./tests/tests_log $(TESTS) ./*.gcda ./*.gcov ./*.gcno *.gcda *.gcov *.gcno ./tests/*.gcda ./tests/*.gcov ./tests/*.gcno
115+
$(RM) ./*.o *~ $(BAM_STATS_TARGET) $(SQ_TARGET) ./tests/tests_log $(TESTS) ./*.gcda ./*.gcov ./*.gcno *.gcda *.gcov *.gcno ./tests/*.gcda ./tests/*.gcov ./tests/*.gcno
137116
-rm -rf $(HTSTMP)
138117

139118
depend: $(SRCS)

0 commit comments

Comments
 (0)