diff --git a/docs.tar.gz b/docs.tar.gz index 94f8011..5201807 100644 Binary files a/docs.tar.gz and b/docs.tar.gz differ diff --git a/lib/PCAP.pm b/lib/PCAP.pm index 7f3cebe..24cdb61 100644 --- a/lib/PCAP.pm +++ b/lib/PCAP.pm @@ -26,7 +26,7 @@ use base 'Exporter'; use FindBin qw($Bin); use File::Which qw(which); -our $VERSION = '2.1.2'; +our $VERSION = '2.1.3'; our @EXPORT = qw($VERSION _which); const my $LICENSE => @@ -72,9 +72,10 @@ const my %UPGRADE_PATH => ( # all earlier versions need full upgrade '1.13.2' => 'biobambam,samtools', '1.14.0' => 'biobambam,samtools', '2.0.0' => 'biobambam', - '2.0.1' => '', - '2.1.0' => '', - '2.1.2' => '', + '2.0.1' => 'biobambam,samtools', + '2.1.0' => 'biobambam,samtools', + '2.1.2' => 'biobambam,samtools', + '2.1.3' => 'biobambam,samtools', ); sub license { diff --git a/setup.sh b/setup.sh index 3b60647..4270a19 100755 --- a/setup.sh +++ b/setup.sh @@ -2,16 +2,16 @@ SOURCE_BWA="https://github.com/lh3/bwa/archive/0.7.12.tar.gz" -SOURCE_SAMTOOLS="https://github.com/samtools/samtools/releases/download/1.3/samtools-1.3.tar.bz2" +SOURCE_SAMTOOLS="https://github.com/samtools/samtools/releases/download/1.3.1/samtools-1.3.1.tar.bz2" # for bamstats -SOURCE_HTSLIB="https://github.com/samtools/htslib/archive/1.2.1.tar.gz" +SOURCE_HTSLIB="https://github.com/samtools/htslib/archive/1.3.1.tar.gz" # for bigwig SOURCE_JKENT_BIN="https://github.com/ENCODE-DCC/kentUtils/raw/master/bin/linux.x86_64" # for biobambam -SOURCE_BBB_BIN_DIST="https://github.com/gt1/biobambam2/releases/download/2.0.35-release-20160330111451/biobambam2-2.0.35-release-20160330111451-x86_64-etch-linux-gnu.tar.gz" +SOURCE_BBB_BIN_DIST="https://github.com/gt1/biobambam2/releases/download/2.0.40-release-20160425112514/biobambam2-2.0.40-release-20160425112514-x86_64-etch-linux-gnu.tar.gz" BIODBHTS_INSTALL="https://raw.githubusercontent.com/Ensembl/Bio-HTS/master/INSTALL.pl" @@ -50,7 +50,14 @@ fi set -e -CPU=`cat /proc/cpuinfo | egrep "^processor" | wc -l` +CPU=`grep -c ^processor /proc/cpuinfo` +if [ $? -eq 0 ]; then + if [ "$CPU" -gt "6" ]; then + CPU=6 + fi +else + CPU=1 +fi echo "Max compilation CPUs set to $CPU" INST_PATH=$1 @@ -175,22 +182,21 @@ fi if [[ ",$COMPILE," == *,biobambam,* ]] ; then echo -n "Building biobambam ..." if [ -e $SETUP_DIR/biobambam.success ]; then - echo -n " previously installed ..." + echo " previously installed ..." else - cd $SETUP_DIR - get_distro "biobambam" $SOURCE_BBB_BIN_DIST - mkdir -p biobambam - tar --strip-components 1 -C biobambam -zxf biobambam.tar.gz - mkdir -p $INST_PATH/bin $INST_PATH/etc $INST_PATH/lib $INST_PATH/share - rm -f biobambam/bin/curl # don't let this file in SSL doesn't work - cp -r biobambam/bin/* $INST_PATH/bin/. - cp -r biobambam/etc/* $INST_PATH/etc/. - cp -r biobambam/lib/* $INST_PATH/lib/. - cp -r biobambam/share/* $INST_PATH/share/. - touch $SETUP_DIR/biobambam.success + cd $SETUP_DIR + get_distro "biobambam" $SOURCE_BBB_BIN_DIST + mkdir -p biobambam + tar --strip-components 1 -C biobambam -zxf biobambam.tar.gz + mkdir -p $INST_PATH/bin $INST_PATH/etc $INST_PATH/lib $INST_PATH/share + rm -f biobambam/bin/curl # don't let this file in SSL doesn't work + cp -r biobambam/bin/* $INST_PATH/bin/. + cp -r biobambam/etc/* $INST_PATH/etc/. + cp -r biobambam/lib/* $INST_PATH/lib/. + cp -r biobambam/share/* $INST_PATH/share/. + touch $SETUP_DIR/biobambam.success + echo fi - export PERL5LIB="$PERLROOT" - echo else echo "biobambam - No change between PCAP versions" fi diff --git a/t/3_external_progs.t b/t/3_external_progs.t index da6d135..c17ac4f 100644 --- a/t/3_external_progs.t +++ b/t/3_external_progs.t @@ -13,9 +13,9 @@ use Data::Dumper; use version 0.77; const my @REQUIRED_PROGRAMS => qw(bamcollate2 bammarkduplicates2 bamsort bwa samtools); -const my $BIOBAMBAM2_VERSION => '2.0.33'; +const my $BIOBAMBAM2_VERSION => '2.0.40'; const my $BWA_VERSION => '0.7.12'; -const my $SAMTOOLS_VERSION => '1.3'; +const my $SAMTOOLS_VERSION => '1.3.1'; # can't put regex in const my %EXPECTED_VERSION = (