Skip to content

Commit fe24a7a

Browse files
committed
Merge branch 'hotfix/v2.1.3'
2 parents 82d28a8 + 4a94ff0 commit fe24a7a

4 files changed

Lines changed: 31 additions & 24 deletions

File tree

docs.tar.gz

514 Bytes
Binary file not shown.

lib/PCAP.pm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use base 'Exporter';
2626
use FindBin qw($Bin);
2727
use File::Which qw(which);
2828

29-
our $VERSION = '2.1.2';
29+
our $VERSION = '2.1.3';
3030
our @EXPORT = qw($VERSION _which);
3131

3232
const my $LICENSE =>
@@ -72,9 +72,10 @@ const my %UPGRADE_PATH => ( # all earlier versions need full upgrade
7272
'1.13.2' => 'biobambam,samtools',
7373
'1.14.0' => 'biobambam,samtools',
7474
'2.0.0' => 'biobambam',
75-
'2.0.1' => '',
76-
'2.1.0' => '',
77-
'2.1.2' => '',
75+
'2.0.1' => 'biobambam,samtools',
76+
'2.1.0' => 'biobambam,samtools',
77+
'2.1.2' => 'biobambam,samtools',
78+
'2.1.3' => 'biobambam,samtools',
7879
);
7980

8081
sub license {

setup.sh

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
SOURCE_BWA="https://github.com/lh3/bwa/archive/0.7.12.tar.gz"
44

5-
SOURCE_SAMTOOLS="https://github.com/samtools/samtools/releases/download/1.3/samtools-1.3.tar.bz2"
5+
SOURCE_SAMTOOLS="https://github.com/samtools/samtools/releases/download/1.3.1/samtools-1.3.1.tar.bz2"
66

77
# for bamstats
8-
SOURCE_HTSLIB="https://github.com/samtools/htslib/archive/1.2.1.tar.gz"
8+
SOURCE_HTSLIB="https://github.com/samtools/htslib/archive/1.3.1.tar.gz"
99

1010
# for bigwig
1111
SOURCE_JKENT_BIN="https://github.com/ENCODE-DCC/kentUtils/raw/master/bin/linux.x86_64"
1212

1313
# for biobambam
14-
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"
14+
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"
1515

1616
BIODBHTS_INSTALL="https://raw.githubusercontent.com/Ensembl/Bio-HTS/master/INSTALL.pl"
1717

@@ -50,7 +50,14 @@ fi
5050

5151
set -e
5252

53-
CPU=`cat /proc/cpuinfo | egrep "^processor" | wc -l`
53+
CPU=`grep -c ^processor /proc/cpuinfo`
54+
if [ $? -eq 0 ]; then
55+
if [ "$CPU" -gt "6" ]; then
56+
CPU=6
57+
fi
58+
else
59+
CPU=1
60+
fi
5461
echo "Max compilation CPUs set to $CPU"
5562

5663
INST_PATH=$1
@@ -175,22 +182,21 @@ fi
175182
if [[ ",$COMPILE," == *,biobambam,* ]] ; then
176183
echo -n "Building biobambam ..."
177184
if [ -e $SETUP_DIR/biobambam.success ]; then
178-
echo -n " previously installed ..."
185+
echo " previously installed ..."
179186
else
180-
cd $SETUP_DIR
181-
get_distro "biobambam" $SOURCE_BBB_BIN_DIST
182-
mkdir -p biobambam
183-
tar --strip-components 1 -C biobambam -zxf biobambam.tar.gz
184-
mkdir -p $INST_PATH/bin $INST_PATH/etc $INST_PATH/lib $INST_PATH/share
185-
rm -f biobambam/bin/curl # don't let this file in SSL doesn't work
186-
cp -r biobambam/bin/* $INST_PATH/bin/.
187-
cp -r biobambam/etc/* $INST_PATH/etc/.
188-
cp -r biobambam/lib/* $INST_PATH/lib/.
189-
cp -r biobambam/share/* $INST_PATH/share/.
190-
touch $SETUP_DIR/biobambam.success
187+
cd $SETUP_DIR
188+
get_distro "biobambam" $SOURCE_BBB_BIN_DIST
189+
mkdir -p biobambam
190+
tar --strip-components 1 -C biobambam -zxf biobambam.tar.gz
191+
mkdir -p $INST_PATH/bin $INST_PATH/etc $INST_PATH/lib $INST_PATH/share
192+
rm -f biobambam/bin/curl # don't let this file in SSL doesn't work
193+
cp -r biobambam/bin/* $INST_PATH/bin/.
194+
cp -r biobambam/etc/* $INST_PATH/etc/.
195+
cp -r biobambam/lib/* $INST_PATH/lib/.
196+
cp -r biobambam/share/* $INST_PATH/share/.
197+
touch $SETUP_DIR/biobambam.success
198+
echo
191199
fi
192-
export PERL5LIB="$PERLROOT"
193-
echo
194200
else
195201
echo "biobambam - No change between PCAP versions"
196202
fi

t/3_external_progs.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ use Data::Dumper;
1313
use version 0.77;
1414

1515
const my @REQUIRED_PROGRAMS => qw(bamcollate2 bammarkduplicates2 bamsort bwa samtools);
16-
const my $BIOBAMBAM2_VERSION => '2.0.33';
16+
const my $BIOBAMBAM2_VERSION => '2.0.40';
1717
const my $BWA_VERSION => '0.7.12';
18-
const my $SAMTOOLS_VERSION => '1.3';
18+
const my $SAMTOOLS_VERSION => '1.3.1';
1919

2020
# can't put regex in const
2121
my %EXPECTED_VERSION = (

0 commit comments

Comments
 (0)