@@ -28,20 +28,20 @@ set -o pipefail
2828pyver=$( python3 --version | & sed ' s/Python //' )
2929# required cython version
3030if [ $( echo $pyver | grep -o " \.4\." ) ]
31- then
32- cyver=0.20.2
33- else
34- cyver=0.18
31+ then
32+ cyver=0.22
33+ else
34+ cyver=0.18
3535fi
3636# URLs:
3737seqclean_url=" http://sourceforge.net/projects/seqclean/files/seqclean-x86_64.tgz/download"
3838mira_url=" http://sourceforge.net/projects/mira-assembler/files/MIRA/stable/mira_4.0.2_linux-gnu_x86_64_static.tar.bz2/download"
3939blast_url=" ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.28/ncbi-blast-2.2.28+-x64-linux.tar.gz"
4040p7zip_url=" http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_x86_linux_bin.tar.bz2/download"
41- # Temporary for pysam:
41+ # URLs for pysam and it's dependencies :
4242setuptools_url=" https://bootstrap.pypa.io/ez_setup.py"
4343cython_url=" https://github.com/cython/cython/archive/$cyver .tar.gz"
44- pysam_url=" https://github.com/pysam-developers/pysam.git "
44+ pysam_url=" https://github.com/pysam-developers/pysam/archive/v0.8.2.tar.gz "
4545
4646
4747# Create a dir for your new programs (change this to your preference):
@@ -58,6 +58,7 @@ wget -c -t inf $mira_url -O $dldir/mira_4.0rc4_linux-gnu_x86_64_static.tar.bz2
5858wget -c -t inf $blast_url -P $dldir /
5959wget -c -t inf $p7zip_url -O $dldir /p7zip_9.20.1_x86_linux_bin.tar.bz2
6060wget -c -t inf $cython_url -P $dldir /
61+ wget -c -t inf $pysam_url -O $dldir /pysam-0.8.2.tar.gz
6162
6263
6364# Extract and prepare the downloaded programs:
@@ -74,7 +75,7 @@ tar xfj $dldir/$i -C $workdir
7475done
7576
7677
77- # Temporary for pysam
78+ # Handling pysam and dependencies
7879# Build setuptools
7980cd $dldir
8081wget --no-check-certificate $setuptools_url -O - | python3 - --user
@@ -83,19 +84,18 @@ wget --no-check-certificate $setuptools_url -O - | python3 - --user
8384cd $workdir /cython-$cyver
8485python3 setup.py install --user
8586
86- # Download and build pysam
87- git clone $pysam_url $workdir /pysam
88- cd $workdir /pysam
87+ # Build pysam
88+ cd $workdir /pysam-0.8.2
8989# Patch to disable automated cython
9090sed -i ' /cython/d' setup.py
9191# install
9292python3 setup.py install --user
9393
9494
9595echo " "
96- echo " If no errors occurred, (dead links, etc..) all of the software required \
97- to run 4Pipe4 is now installed in userspace (except Blast2GO and emboss). \
98- Please add the correct paths to your 4Pipe4rc file."
96+ echo " If you are reading this, than no errors occurred and all of the software \
97+ required to run 4Pipe4 is now installed in userspace (except Blast2GO and \
98+ emboss). Please add the correct paths to your 4Pipe4rc file."
9999echo " You may now run emboss-user-installer.sh to download, compile and \
100100install the required emboss programs."
101101echo " "
0 commit comments