Skip to content

Commit e99491d

Browse files
authored
Merge pull request #197 from LabKey/fb_merge_22.11_to_develop
Merge discvr-22.11 to develop
2 parents 39276e1 + 0f43e06 commit e99491d

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

SequenceAnalysis/pipeline_code/sequence_tools_install.sh

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -686,17 +686,16 @@ cd $LKSRC_DIR
686686
if [[ ! -e ${LKTOOLS_DIR}/lastz || ! -z $FORCE_REINSTALL ]];
687687
then
688688
echo "Cleaning up previous installs"
689-
rm -Rf lastz-1.02.00*
689+
rm -Rf lastz-*
690+
rm -Rf 1.04.22*
690691
rm -Rf $LKTOOLS_DIR/lastz
691692

692-
wget $WGET_OPTS http://www.bx.psu.edu/miller_lab/dist/lastz-1.02.00.tar.gz
693-
gunzip lastz-1.02.00.tar.gz
694-
tar -xf lastz-1.02.00.tar
693+
wget $WGET_OPTS https://github.com/lastz/lastz/archive/refs/tags/1.04.22.tar.gz
694+
gunzip 1.04.22.tar.gz
695+
tar -xf 1.04.22.tar
695696
echo "Compressing TAR"
696-
gzip lastz-1.02.00.tar
697-
cd lastz-distrib-1.02.00
698-
mv src/Makefile src/Makefile.dist
699-
sed 's/-Werror //g' src/Makefile.dist > src/Makefile
697+
gzip 1.04.22.tar
698+
cd lastz-1.04.22
700699
make
701700

702701
install ./src/lastz $LKTOOLS_DIR/lastz
@@ -881,7 +880,15 @@ then
881880
rm -Rf $LKTOOLS_DIR/_preamble.py
882881
rm -Rf $LKTOOLS_DIR/cutadapt_pip
883882

884-
pip install --target ${LKTOOLS_DIR}/cutadapt_pip git+https://github.com/marcelm/cutadapt.git
883+
CUTADAPT_BRANCH=v4.0
884+
pip -V
885+
PIP_VERSION=`pip -V | cut -d '(' -f 2 | sed 's/python //' | cut -c 1 2>1`
886+
887+
if [[ $PIP_VERSION == '2' ]];then
888+
CUTADAPT_BRANCH='v3.4'
889+
fi
890+
891+
pip install --target ${LKTOOLS_DIR}/cutadapt_pip git+https://github.com/marcelm/cutadapt.git@${CUTADAPT_BRANCH}
885892
ln -s ${LKTOOLS_DIR}/cutadapt_pip/bin/cutadapt ${LKTOOLS_DIR}/cutadapt
886893
else
887894
echo "Already installed"

0 commit comments

Comments
 (0)