Commit e89e6103 authored by Hermann Zellner's avatar Hermann Zellner

Container image:

 Updated InterProScan version
 Extracted InterProScan version to variable
 Create version independenct symlink to InterProScan root folder
 Default image version: 2021.1
parent 91072078
......@@ -24,7 +24,7 @@ outdir=""
workdir=""
cleanworkdir=0
container_software="docker"
docker_version="2020.6"
docker_version="2021.1"
predictionfiles="predictions_unirule.out predictions_arba.out predictions_unirule-pirsr.out"
function usage() {
......
......@@ -21,17 +21,18 @@ set -u
ROOT_FOLDER="/opt"
DOWNLOAD_FOLDER="/opt/download"
IPRS_VERSION="5.48-83.0"
mkdir -p ${DOWNLOAD_FOLDER}
cd ${DOWNLOAD_FOLDER}
echo "Downloading InterProScan..."
wget -q ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/5.47-82.0/interproscan-5.47-82.0-64-bit.tar.gz
wget -q ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/${IPRS_VERSION}/interproscan-${IPRS_VERSION}-64-bit.tar.gz
echo "Done."
wget -q ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/5.47-82.0/interproscan-5.47-82.0-64-bit.tar.gz.md5
wget -q ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/${IPRS_VERSION}/interproscan-${IPRS_VERSION}-64-bit.tar.gz.md5
ipr_check=`md5sum -c interproscan-5.47-82.0-64-bit.tar.gz.md5`
ipr_check=`md5sum -c interproscan-${IPRS_VERSION}-64-bit.tar.gz.md5`
if [[ ${ipr_check} != "interproscan-5.47-82.0-64-bit.tar.gz: OK" ]]
if [[ ${ipr_check} != "interproscan-${IPRS_VERSION}-64-bit.tar.gz: OK" ]]
then
exit 11
fi
......@@ -39,14 +40,15 @@ fi
mkdir -p ${ROOT_FOLDER}
cd ${ROOT_FOLDER}
echo "Extracting InterProScan..."
tar -pxzf ${DOWNLOAD_FOLDER}/interproscan-5.47-82.0-64-bit.tar.gz
tar -pxzf ${DOWNLOAD_FOLDER}/interproscan-${IPRS_VERSION}-64-bit.tar.gz
ln -s interproscan-5.48-83.0 interproscan
echo "Done."
echo "Initializing InerProScan..."
cd /opt/interproscan-5.47-82.0
cd /opt/interproscan
python3 initial_setup.py
echo "Done iitializing InterProScan"
# Clean up tar to reduce the size of the image
rm -f ${DOWNLOAD_FOLDER}/interproscan-5.47-82.0-64-bit.tar.gz
rm -f ${DOWNLOAD_FOLDER}/interproscan-5.47-82.0-64-bit.tar.gz.md5
rm -f ${DOWNLOAD_FOLDER}/interproscan-${IPRS_VERSION}-64-bit.tar.gz
rm -f ${DOWNLOAD_FOLDER}/interproscan-${IPRS_VERSION}-64-bit.tar.gz.md5
......@@ -17,7 +17,7 @@
############################################################################
UNIFIRE_REPO="/opt/git/unifire"
INTERPROSCAN_REPO="/opt/interproscan-5.47-82.0"
INTERPROSCAN_REPO="/opt/interproscan"
ETE3FOLDER="/opt/ete3"
VOLUME=/volume
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment