Skip to content

Commit f166c1e

Browse files
author
Rob Patro
committed
rely on tagged pufferfish upstream
1 parent c4513dc commit f166c1e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/fetchPufferfish.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -eu -o pipefail
44
exists()
55
{
66
command -v "$1" >/dev/null 2>&1
7+
78
}
89

910
CURR_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
@@ -22,11 +23,11 @@ if [ -d ${INSTALL_DIR}/src/pufferfish ] ; then
2223
rm -fr ${INSTALL_DIR}/src/pufferfish
2324
fi
2425

25-
#SVER=salmon-v1.6.0
26-
SVER=develop
26+
SVER=salmon-v1.7.0
27+
#SVER=develop
2728
#SVER=sketch-mode
2829

29-
EXPECTED_SHA256=f71b3c08f254200fcdc2eb8fe3dcca8a8e9489e79ef5952a4958d8b9979831dc
30+
EXPECTED_SHA256=5894fabbf6829a3d4a627135edc8326e931eb07fc792bfff3a0714e8fee8bb8b
3031

3132
mkdir -p ${EXTERNAL_DIR}
3233
curl -k -L https://github.com/COMBINE-lab/pufferfish/archive/${SVER}.zip -o ${EXTERNAL_DIR}/pufferfish.zip
@@ -40,9 +41,11 @@ else
4041
unset hashcheck
4142
fi
4243

44+
4345
if [ -z "${hashcheck-}" ]; then
4446
echo "Couldn't find shasum command; can't verify contents of downloaded pufferfish";
4547
else
48+
4649
if [[ $SVER != develop ]]; then
4750
echo "${EXPECTED_SHA256} ${EXTERNAL_DIR}/pufferfish.zip" | ${hashcheck} -c - || { echo "pufferfish.zip did not match expected SHA1! Exiting."; exit 1; }
4851
else
@@ -83,8 +86,10 @@ cp ${EXTERNAL_DIR}/pufferfish/include/MemChainer.hpp ${INSTALL_DIR}/include/puff
8386
cp ${EXTERNAL_DIR}/pufferfish/include/CommonTypes.hpp ${INSTALL_DIR}/include/pufferfish
8487
cp ${EXTERNAL_DIR}/pufferfish/include/SAMWriter.hpp ${INSTALL_DIR}/include/pufferfish
8588
cp ${EXTERNAL_DIR}/pufferfish/include/PufferfishConfig.hpp ${INSTALL_DIR}/include/pufferfish
89+
8690
cp ${EXTERNAL_DIR}/pufferfish/include/BulkChunk.hpp ${INSTALL_DIR}/include/pufferfish
8791
cp ${EXTERNAL_DIR}/pufferfish/include/BinWriter.hpp ${INSTALL_DIR}/include/pufferfish
92+
8893
cp -r ${EXTERNAL_DIR}/pufferfish/include/libdivide ${INSTALL_DIR}/include/pufferfish
8994
cp -r ${EXTERNAL_DIR}/pufferfish/include/ksw2pp ${INSTALL_DIR}/include/pufferfish
9095
cp -r ${EXTERNAL_DIR}/pufferfish/include/compact_vector ${INSTALL_DIR}/include/pufferfish
@@ -116,6 +121,7 @@ cp ${EXTERNAL_DIR}/pufferfish/src/rank9b.cpp ${INSTALL_DIR}/src/pufferfish
116121
#cp -r ${EXTERNAL_DIR}/RapMap/include/*.hpp ${INSTALL_DIR}/include/rapmap
117122
#cp -r ${EXTERNAL_DIR}/RapMap/include/sparsepp ${INSTALL_DIR}/include/rapmap
118123
#cp -r ${EXTERNAL_DIR}/RapMap/include/digestpp ${INSTALL_DIR}/include/rapmap
124+
119125
#cp -r ${EXTERNAL_DIR}/RapMap/include/itlib ${INSTALL_DIR}/include/rapmap
120126
#cp -r ${EXTERNAL_DIR}/RapMap/include/metro ${INSTALL_DIR}/include/rapmap
121127
#cp -r ${EXTERNAL_DIR}/RapMap/include/ksw2pp ${INSTALL_DIR}/include/rapmap
@@ -127,4 +133,5 @@ cp ${EXTERNAL_DIR}/pufferfish/src/rank9b.cpp ${INSTALL_DIR}/src/pufferfish
127133
#rm ${INSTALL_DIR}/include/rapmap/FastxParser.hpp
128134
#rm ${INSTALL_DIR}/include/rapmap/concurrentqueue.h
129135
#rm ${INSTALL_DIR}/include/rapmap/FastxParserThreadUtils.hpp
136+
130137
#rm ${INSTALL_DIR}/src/rapmap/FastxParser.cpp

0 commit comments

Comments
 (0)