Skip to content

Commit

Permalink
Build blat from source
Browse files Browse the repository at this point in the history
  • Loading branch information
glesica committed Dec 16, 2021
1 parent 004d1b5 commit bbfe192
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
5 changes: 4 additions & 1 deletion Dockerfile_build
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ RUN mv ${cmake_name} /opt/cmake
RUN apt-get update && apt-get install -y \
g++ \
gcc \
make && \
libpng-dev \
libpng16-16 \
make \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
1 change: 1 addition & 0 deletions Dockerfile_run
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN cmake . && \
FROM debian:bullseye-slim

RUN apt-get update && apt-get install -y \
libpng16-16 \
perl \
rsync \
wget && \
Expand Down
6 changes: 6 additions & 0 deletions dependencies/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
blatSrc/
hsi-*/
install-test/
spaln*/
tblastn/

Binary file removed dependencies/blat.tgz
Binary file not shown.
Binary file added dependencies/blatSrc36.zip
Binary file not shown.
21 changes: 12 additions & 9 deletions src/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ report_test_start()
}

HSI_BASE=hsi
BLAT_BASE=blat
BLAT_BASE=blatSrc
SPALN_BASE=spaln
TBLASTN_BASE=tblastn

Expand All @@ -58,13 +58,13 @@ TBLASTN_DIR=$DEPS_DIR/$TBLASTN_BASE

TEST_TAR=$TEST_DIR.tgz
HSI_TAR=$HSI_DIR.tgz
BLAT_TAR=$BLAT_DIR.tgz
BLAT_ZIP=${BLAT_DIR}36.zip
SPALN_TAR=$SPALN_DIR.tgz
TBLASTN_TAR=$TBLASTN_DIR.tgz

confirm_file_exists $TEST_TAR
confirm_file_exists $HSI_TAR
confirm_file_exists $BLAT_TAR
confirm_file_exists $BLAT_ZIP
confirm_file_exists $SPALN_TAR
confirm_file_exists $TBLASTN_TAR

Expand Down Expand Up @@ -241,8 +241,11 @@ check_spaln $AA3_NAME $SP3_GENE23_DNA_NAME sp3.g23.spaln.out # test 24


# BLAT
tar -xf $BLAT_TAR -C $DEPS_DIR
BLAT=$BLAT_DIR/blat.linux.x86_64
unzip $BLAT_ZIP -d $DEPS_DIR
cd $BLAT_DIR/lib && make && cd -
cd $BLAT_DIR/jkOwnLib && make && cd -
cd $BLAT_DIR/blat && mkdir -p ../bin && BINDIR=$PWD/../bin make && cd -
BLAT=$BLAT_DIR/bin/blat
check_blat()
{
DNA_NAME=$1
Expand Down Expand Up @@ -292,10 +295,10 @@ check_tblastn $DNA3_NAME $AA3_NAME sp3.tblastn.out # test 30

#
BUILD_DIR=build
mv $HSI_DIR $BUILD_DIR/$HSI_BASE
mv $BLAT_DIR $BUILD_DIR/$BLAT_BASE
mv $SPALN_DIR $BUILD_DIR/$SPALN_BASE
mv $TBLASTN_DIR $BUILD_DIR/$TBLASTN_BASE
mv -f $HSI_DIR $BUILD_DIR/$HSI_BASE
mv -f $BLAT_DIR $BUILD_DIR/$BLAT_BASE
mv -f $SPALN_DIR $BUILD_DIR/$SPALN_BASE
mv -f $TBLASTN_DIR $BUILD_DIR/$TBLASTN_BASE


# Cleanup
Expand Down

0 comments on commit bbfe192

Please sign in to comment.