Mercurial > repos > pjbriggs > amplicon_analysis_pipeline
annotate install_tool_deps.sh @ 1:1c1902e12caf draft
Updated to version 1.2.1.0
author | pjbriggs |
---|---|
date | Wed, 25 Apr 2018 03:54:00 -0400 |
parents | 47ec9c6f44b8 |
children | 43d6f81bc667 |
rev | line source |
---|---|
0
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
1 #!/bin/bash -e |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
2 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
3 # Install the tool dependencies for Amplicon_analysis_pipeline.sh for |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
4 # testing from command line |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
5 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
6 function install_python_package() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
7 echo Installing $2 $3 from $4 under $1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
8 local install_dir=$1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
9 local install_dirs="$install_dir $install_dir/bin $install_dir/lib/python2.7/site-packages" |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
10 for d in $install_dirs ; do |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
11 if [ ! -d $d ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
12 mkdir -p $d |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
13 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
14 done |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
15 wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
16 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
17 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
18 wget -q $4 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
19 if [ ! -f "$(basename $4)" ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
20 echo "No archive $(basename $4)" |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
21 exit 1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
22 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
23 tar xzf $(basename $4) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
24 if [ ! -d "$5" ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
25 echo "No directory $5" |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
26 exit 1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
27 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
28 cd $5 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
29 /bin/bash <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
30 export PYTHONPATH=$install_dir:$PYTHONPATH && \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
31 export PYTHONPATH=$install_dir/lib/python2.7/site-packages:$PYTHONPATH && \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
32 python setup.py install --prefix=$install_dir --install-scripts=$install_dir/bin --install-lib=$install_dir/lib/python2.7/site-packages >>$INSTALL_DIR/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
33 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
34 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
35 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
36 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
37 } |
1 | 38 function install_amplicon_analysis_pipeline_1_2_1() { |
39 install_amplicon_analysis_pipeline $1 1.2.1 | |
40 } | |
0
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
41 function install_amplicon_analysis_pipeline_1_1() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
42 install_amplicon_analysis_pipeline $1 1.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
43 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
44 function install_amplicon_analysis_pipeline_1_0() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
45 install_amplicon_analysis_pipeline $1 1.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
46 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
47 function install_amplicon_analysis_pipeline() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
48 version=$2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
49 echo Installing Amplicon_analysis $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
50 install_dir=$1/amplicon_analysis_pipeline/$version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
51 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
52 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
53 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
54 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
55 echo Moving to $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
56 pushd $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
57 wget -q https://github.com/MTutino/Amplicon_analysis/archive/v${version}.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
58 tar zxf v${version}.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
59 mv Amplicon_analysis-${version} Amplicon_analysis |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
60 rm -rf v${version}.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
61 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
62 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
63 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
64 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
65 # Source this to setup Amplicon_analysis/$version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
66 echo Setting up Amplicon analysis pipeline $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
67 export PATH=$install_dir/Amplicon_analysis:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
68 ## AMPLICON_ANALYSIS_REF_DATA_PATH should be set in |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
69 ## config/local_env.sh or in the job_conf.xml file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
70 ## - see the README |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
71 ##export AMPLICON_ANALYSIS_REF_DATA_PATH= |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
72 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
73 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
74 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
75 function install_amplicon_analysis_pipeline_1_0_patched() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
76 version="1.0-patched" |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
77 echo Installing Amplicon_analysis $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
78 install_dir=$1/amplicon_analysis_pipeline/$version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
79 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
80 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
81 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
82 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
83 echo Moving to $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
84 pushd $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
85 # Clone and patch analysis pipeline scripts |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
86 git clone https://github.com/pjbriggs/Amplicon_analysis.git |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
87 cd Amplicon_analysis |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
88 git checkout -b $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
89 branches= |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
90 if [ ! -z "$branches" ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
91 for branch in $branches ; do |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
92 git checkout -b $branch origin/$branch |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
93 git checkout $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
94 git merge -m "Merge $branch into $version" $branch |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
95 done |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
96 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
97 cd .. |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
98 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
99 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
100 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
101 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
102 # Source this to setup Amplicon_analysis/$version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
103 echo Setting up Amplicon analysis pipeline $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
104 export PATH=$install_dir/Amplicon_analysis:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
105 ## AMPLICON_ANALYSIS_REF_DATA_PATH should be set in |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
106 ## config/local_env.sh or in the job_conf.xml file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
107 ## - see the README |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
108 ##export AMPLICON_ANALYSIS_REF_DATA_PATH= |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
109 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
110 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
111 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
112 function install_cutadapt_1_11() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
113 echo Installing cutadapt 1.11 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
114 INSTALL_DIR=$1/cutadapt/1.11 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
115 if [ -f $INSTALL_DIR/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
116 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
117 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
118 mkdir -p $INSTALL_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
119 install_python_package $INSTALL_DIR cutadapt 1.11 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
120 https://pypi.python.org/packages/47/bf/9045e90dac084a90aa2bb72c7d5aadefaea96a5776f445f5b5d9a7a2c78b/cutadapt-1.11.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
121 cutadapt-1.11 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
122 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
123 cat > $INSTALL_DIR/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
124 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
125 # Source this to setup cutadapt/1.11 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
126 echo Setting up cutadapt 1.11 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
127 #if [ -f $1/python/2.7.10/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
128 # . $1/python/2.7.10/env.sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
129 #fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
130 export PATH=$INSTALL_DIR/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
131 export PYTHONPATH=$INSTALL_DIR:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
132 export PYTHONPATH=$INSTALL_DIR/lib:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
133 export PYTHONPATH=$INSTALL_DIR/lib/python2.7:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
134 export PYTHONPATH=$INSTALL_DIR/lib/python2.7/site-packages:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
135 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
136 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
137 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
138 function install_sickle_1_33() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
139 echo Installing sickle 1.33 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
140 INSTALL_DIR=$1/sickle/1.33 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
141 if [ -f $INSTALL_DIR/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
142 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
143 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
144 mkdir -p $INSTALL_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
145 mkdir -p $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
146 wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
147 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
148 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
149 wget -q https://github.com/najoshi/sickle/archive/v1.33.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
150 tar zxf v1.33.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
151 cd sickle-1.33 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
152 make >$INSTALL_DIR/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
153 mv sickle $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
154 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
155 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
156 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
157 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
158 cat > $INSTALL_DIR/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
159 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
160 # Source this to setup sickle/1.33 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
161 echo Setting up sickle 1.33 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
162 export PATH=$INSTALL_DIR/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
163 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
164 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
165 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
166 function install_bioawk_27_08_2013() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
167 echo Installing bioawk 27-08-2013 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
168 INSTALL_DIR=$1/bioawk/27-08-2013 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
169 if [ -f $INSTALL_DIR/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
170 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
171 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
172 mkdir -p $INSTALL_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
173 mkdir -p $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
174 wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
175 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
176 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
177 wget -q https://github.com/lh3/bioawk/archive/v1.0.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
178 tar zxf v1.0.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
179 cd bioawk-1.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
180 make >$INSTALL_DIR/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
181 mv bioawk $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
182 mv maketab $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
183 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
184 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
185 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
186 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
187 cat > $INSTALL_DIR/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
188 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
189 # Source this to setup bioawk/2013-07-13 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
190 echo Setting up bioawk 2013-07-13 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
191 export PATH=$INSTALL_DIR/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
192 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
193 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
194 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
195 function install_pandaseq_2_8_1() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
196 # Taken from https://github.com/fls-bioinformatics-core/galaxy-tools/blob/master/local_dependency_installers/pandaseq.sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
197 echo Installing pandaseq 2.8.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
198 local install_dir=$1/pandaseq/2.8.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
199 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
200 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
201 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
202 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
203 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
204 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
205 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
206 wget -q https://github.com/neufeld/pandaseq/archive/v2.8.1.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
207 tar xzf v2.8.1.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
208 cd pandaseq-2.8.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
209 ./autogen.sh >$install_dir/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
210 ./configure --prefix=$install_dir >>$install_dir/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
211 make; make install >>$install_dir/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
212 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
213 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
214 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
215 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
216 cat > $1/pandaseq/2.8.1/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
217 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
218 # Source this to setup pandaseq/2.8.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
219 echo Setting up pandaseq 2.8.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
220 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
221 export LD_LIBRARY_PATH=$install_dir/lib:\$LD_LIBRARY_PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
222 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
223 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
224 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
225 function install_spades_3_5_0() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
226 # See http://spades.bioinf.spbau.ru/release3.5.0/manual.html |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
227 echo Installing spades 3.5.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
228 local install_dir=$1/spades/3.5.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
229 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
230 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
231 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
232 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
233 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
234 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
235 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
236 wget -q http://spades.bioinf.spbau.ru/release3.5.0/SPAdes-3.5.0-Linux.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
237 tar zxf SPAdes-3.5.0-Linux.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
238 cd SPAdes-3.5.0-Linux |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
239 mv bin $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
240 mv share $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
241 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
242 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
243 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
244 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
245 cat > $1/spades/3.5.0/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
246 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
247 # Source this to setup spades/3.5.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
248 echo Setting up spades 3.5.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
249 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
250 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
251 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
252 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
253 function install_fastqc_0_11_3() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
254 echo Installing fastqc 0.11.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
255 local install_dir=$1/fastqc/0.11.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
256 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
257 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
258 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
259 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
260 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
261 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
262 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
263 wget -q http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.3.zip |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
264 unzip -qq fastqc_v0.11.3.zip |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
265 cd FastQC |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
266 chmod 0755 fastqc |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
267 mv * $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
268 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
269 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
270 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
271 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
272 cat > $1/fastqc/0.11.3/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
273 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
274 # Source this to setup fastqc/0.11.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
275 echo Setting up fastqc 0.11.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
276 export PATH=$install_dir:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
277 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
278 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
279 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
280 function install_qiime_1_8_0() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
281 # See http://qiime.org/1.8.0/install/install.html |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
282 echo Installing qiime 1.8.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
283 INSTALL_DIR=$1/qiime/1.8.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
284 if [ -f $INSTALL_DIR/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
285 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
286 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
287 mkdir -p $INSTALL_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
288 # Atlas 3.10 (precompiled) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
289 # NB this stolen from galaxyproject/iuc-tools |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
290 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
291 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
292 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
293 wget -q https://depot.galaxyproject.org/software/atlas/atlas_3.10.2_linux_x64.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
294 tar zxvf atlas_3.10.2_linux_x64.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
295 mv lib $INSTALL_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
296 command -v gfortran || return 0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
297 BUNDLED_LGF_CANON=$INSTALL_DIR/lib/libgfortran.so.3.0.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
298 BUNDLED_LGF_VERS=`objdump -p $BUNDLED_LGF_CANON | grep GFORTRAN_1 | sed -r 's/.*GFORTRAN_1\.([0-9])+/\1/' | sort -n | tail -1` |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
299 echo 'program test; end program test' > test.f90 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
300 gfortran -o test test.f90 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
301 LGF=`ldd test | grep libgfortran | awk '{print $3}'` |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
302 LGF_CANON=`readlink -f $LGF` |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
303 LGF_VERS=`objdump -p $LGF_CANON | grep GFORTRAN_1 | sed -r 's/.*GFORTRAN_1\.([0-9])+/\1/' | sort -n | tail -1` |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
304 if [ $LGF_VERS -gt $BUNDLED_LGF_VERS ]; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
305 cp -p $BUNDLED_LGF_CANON ${BUNDLED_LGF_CANON}.bundled |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
306 cp -p $LGF_CANON $BUNDLED_LGF_CANON |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
307 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
308 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
309 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
310 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
311 # Atlas 3.10 (build from source) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
312 # NB this stolen from galaxyproject/iuc-tools |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
313 ##local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
314 ##echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
315 ##pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
316 ##wget -q https://depot.galaxyproject.org/software/atlas/atlas_3.10.2+gx0_src_all.tar.bz2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
317 ##wget -q https://depot.galaxyproject.org/software/lapack/lapack_3.5.0_src_all.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
318 ##wget -q https://depot.galaxyproject.org/software/atlas/atlas_patch-blas-lapack-1.0_src_all.diff |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
319 ##wget -q https://depot.galaxyproject.org/software/atlas/atlas_patch-shared-lib-1.0_src_all.diff |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
320 ##wget -q https://depot.galaxyproject.org/software/atlas/atlas_patch-cpu-throttle-1.0_src_all.diff |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
321 ##tar -jxvf atlas_3.10.2+gx0_src_all.tar.bz2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
322 ##cd ATLAS |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
323 ##mkdir build |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
324 ##patch -p1 < ../atlas_patch-blas-lapack-1.0_src_all.diff |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
325 ##patch -p1 < ../atlas_patch-shared-lib-1.0_src_all.diff |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
326 ##patch -p1 < ../atlas_patch-cpu-throttle-1.0_src_all.diff |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
327 ##cd build |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
328 ##../configure --prefix="$INSTALL_DIR" -D c -DWALL -b 64 -Fa alg '-fPIC' --with-netlib-lapack-tarfile=../../lapack_3.5.0_src_all.tar.gz -v 2 -t 0 -Si cputhrchk 0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
329 ##make |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
330 ##make install |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
331 ##popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
332 ##rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
333 ##rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
334 export ATLAS_LIB_DIR=$INSTALL_DIR/lib |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
335 export ATLAS_INCLUDE_DIR=$INSTALL_DIR/include |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
336 export ATLAS_BLAS_LIB_DIR=$INSTALL_DIR/lib/atlas |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
337 export ATLAS_LAPACK_LIB_DIR=$INSTALL_DIR/lib/atlas |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
338 export ATLAS_ROOT_PATH=$INSTALL_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
339 export LD_LIBRARY_PATH=$INSTALL_DIR/lib:$LD_LIBRARY_PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
340 export LD_LIBRARY_PATH=$INSTALL_DIR/lib/atlas:$LD_LIBRARY_PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
341 # Numpy 1.7.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
342 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
343 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
344 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
345 wget -q https://depot.galaxyproject.org/software/numpy/numpy_1.7_src_all.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
346 tar -zxvf numpy_1.7_src_all.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
347 cd numpy-1.7.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
348 cat > site.cfg <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
349 [DEFAULT] |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
350 library_dirs = $ATLAS_LIB_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
351 include_dirs = $ATLAS_INCLUDE_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
352 [blas_opt] |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
353 libraries = blas, atlas |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
354 [lapack_opt] |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
355 libraries = lapack, atlas |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
356 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
357 export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python2.7 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
358 export ATLAS=$ATLAS_ROOT_PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
359 python setup.py install --install-lib $INSTALL_DIR/lib/python2.7 --install-scripts $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
360 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
361 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
362 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
363 # Python packages |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
364 ##install_python_package $INSTALL_DIR numpy 1.7.1 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
365 ## https://pypi.python.org/packages/84/fb/5e9dfeeb5d8909d659e6892c97c9aa66d3798fad50e1d3d66b3c614a9c35/numpy-1.7.1.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
366 ## numpy-1.7.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
367 install_python_package $INSTALL_DIR matplotlib 1.3.1 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
368 https://pypi.python.org/packages/d4/d0/17f17792a4d50994397052220dbe3ac9850ecbde0297b7572933fa4a5c98/matplotlib-1.3.1.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
369 matplotlib-1.3.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
370 install_python_package $INSTALL_DIR qiime 1.8.0 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
371 https://github.com/biocore/qiime/archive/1.8.0.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
372 qiime-1.8.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
373 install_python_package $INSTALL_DIR pycogent 1.5.3 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
374 https://pypi.python.org/packages/1f/9f/c6f6afe09a3d62a6e809c7745413ffff0f1e8e04d88ab7b56faedf31fe28/cogent-1.5.3.tgz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
375 cogent-1.5.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
376 install_python_package $INSTALL_DIR pyqi 0.3.1 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
377 https://pypi.python.org/packages/60/f0/a7392f5f5caf59a50ccaddbb35a458514953512b7dd6053567cb02849c6e/pyqi-0.3.1.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
378 pyqi-0.3.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
379 install_python_package $INSTALL_DIR biom-format 1.3.1 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
380 https://pypi.python.org/packages/98/3b/4e80a9a5c4a3c6764aa8c0c994973e7df71eee02fc6b8cc6e1d06a64ab7e/biom-format-1.3.1.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
381 biom-format-1.3.1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
382 install_python_package $INSTALL_DIR qcli 0.1.0 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
383 https://pypi.python.org/packages/9a/9a/9c634aed339a5f063e0c954ae439d03b33a7159aa50c6f21034fe2d48fe8/qcli-0.1.0.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
384 qcli-0.1.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
385 install_python_package $INSTALL_DIR pynast 1.2.2 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
386 https://pypi.python.org/packages/a0/82/f381ff91afd7a2d92e74c7790823e256d87d5cd0a98c12eaac3d3ec64b8f/pynast-1.2.2.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
387 pynast-1.2.2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
388 install_python_package $INSTALL_DIR emperor 0.9.3 \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
389 https://pypi.python.org/packages/cd/f1/5d502a16a348efe1af7a8d4f41b639c9a165bca0b2f9db36bce89ad1ab40/emperor-0.9.3.tar.gz \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
390 emperor-0.9.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
391 # Update the acceptable Python version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
392 sed -i 's/acceptable_version = (2,7,3)/acceptable_version = (2,7,6)/g' $INSTALL_DIR/bin/print_qiime_config.py |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
393 # Non-Python dependencies |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
394 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
395 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
396 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
397 wget -q http://www.microbesonline.org/fasttree/FastTree |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
398 chmod 0755 FastTree |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
399 mv FastTree $INSTALL_DIR/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
400 # Config file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
401 sed -i 's,qiime_scripts_dir,qiime_scripts_dir\t'"$INSTALL_DIR\/bin"',g' $INSTALL_DIR/lib/python2.7/site-packages/qiime/support_files/qiime_config |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
402 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
403 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
404 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
405 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
406 cat > $INSTALL_DIR/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
407 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
408 # Source this to setup qiime/1.8.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
409 echo Setting up qiime 1.8.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
410 #if [ -f $1/python/2.7.10/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
411 # . $1/python/2.7.10/env.sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
412 #fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
413 export QIIME_CONFIG_FP=$INSTALL_DIR/lib/python2.7/site-packages/qiime/support_files/qiime_config |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
414 export PATH=$INSTALL_DIR/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
415 export PYTHONPATH=$INSTALL_DIR:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
416 export PYTHONPATH=$INSTALL_DIR/lib:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
417 export PYTHONPATH=$INSTALL_DIR/lib/python2.7:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
418 export PYTHONPATH=$INSTALL_DIR/lib/python2.7/site-packages:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
419 export LD_LIBRARY_PATH=$ATLAS_LIB_DIR:\$LD_LIBRARY_PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
420 export LD_LIBRARY_PATH=$ATLAS_LIB_DIR/atlas::\$LD_LIBRARY_PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
421 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
422 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
423 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
424 function install_vsearch_1_1_3() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
425 echo Installing vsearch 1.1.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
426 local install_dir=$1/vsearch/1.1.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
427 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
428 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
429 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
430 mkdir -p $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
431 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
432 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
433 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
434 wget -q https://github.com/torognes/vsearch/releases/download/v1.1.3/vsearch-1.1.3-linux-x86_64 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
435 chmod 0755 vsearch-1.1.3-linux-x86_64 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
436 mv vsearch-1.1.3-linux-x86_64 $install_dir/bin/vsearch |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
437 ln -s $install_dir/bin/vsearch $install_dir/bin/vsearch113 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
438 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
439 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
440 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
441 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
442 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
443 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
444 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
445 # Source this to setup vsearch/1.1.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
446 echo Setting up vsearch 1.1.3 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
447 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
448 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
449 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
450 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
451 function install_microbiomeutil_2010_04_29() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
452 # Provides ChimeraSlayer |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
453 echo Installing microbiomeutil 2010-04-29 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
454 local install_dir=$1/microbiomeutil/2010-04-29 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
455 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
456 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
457 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
458 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
459 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
460 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
461 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
462 wget -q https://sourceforge.net/projects/microbiomeutil/files/__OLD_VERSIONS/microbiomeutil_2010-04-29.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
463 tar zxf microbiomeutil_2010-04-29.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
464 cd microbiomeutil_2010-04-29 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
465 make >$install_dir/INSTALLATION.log 2>&1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
466 mv * $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
467 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
468 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
469 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
470 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
471 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
472 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
473 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
474 # Source this to setup microbiomeutil/2010-04-29 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
475 echo Setting up microbiomeutil 2010-04-29 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
476 export PATH=$install_dir/ChimeraSlayer:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
477 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
478 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
479 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
480 function install_blast_2_2_26() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
481 echo Installing blast 2.2.26 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
482 local install_dir=$1/blast/2.2.26 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
483 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
484 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
485 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
486 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
487 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
488 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
489 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
490 wget -q ftp://ftp.ncbi.nlm.nih.gov/blast/executables/legacy/2.2.26/blast-2.2.26-x64-linux.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
491 tar zxf blast-2.2.26-x64-linux.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
492 cd blast-2.2.26 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
493 mv * $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
494 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
495 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
496 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
497 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
498 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
499 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
500 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
501 # Source this to setup blast/2.2.26 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
502 echo Setting up blast 2.2.26 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
503 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
504 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
505 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
506 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
507 function install_fasta_number() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
508 # See http://drive5.com/python/fasta_number_py.html |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
509 echo Installing fasta_number |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
510 # Install to "default" version i.e. essentially a versionless |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
511 # installation (see Galaxy dependency resolver docs) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
512 local install_dir=$1/fasta_number |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
513 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
514 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
515 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
516 # Download and use MD5 as local version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
517 wget -q http://drive5.com/python/python_scripts.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
518 local version=$(md5sum python_scripts.tar.gz | cut -d" " -f1) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
519 # Check for existing installation |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
520 local default_dir=$install_dir/default |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
521 install_dir=$install_dir/$version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
522 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
523 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
524 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
525 # Install scripts and make 'default' link |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
526 mkdir -p $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
527 mkdir -p $install_dir/lib |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
528 tar zxf python_scripts.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
529 mv fasta_number.py $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
530 mv die.py $install_dir/lib |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
531 ln -s $version $default_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
532 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
533 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
534 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
535 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
536 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
537 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
538 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
539 # Source this to setup fasta_number/$version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
540 echo Setting up fasta_number $version |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
541 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
542 export PYTHONPATH=$install_dir/lib:\$PYTHONPATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
543 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
544 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
545 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
546 function install_fasta_splitter_0_2_4() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
547 echo Installing fasta-splitter 0.2.4 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
548 local install_dir=$1/fasta-splitter/0.2.4 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
549 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
550 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
551 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
552 mkdir -p $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
553 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
554 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
555 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
556 # Install Perl packages using cpanm |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
557 mkdir -p $install_dir/lib/perl5 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
558 wget -q -L https://cpanmin.us/ -O cpanm |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
559 chmod +x cpanm |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
560 for package in "File::Util" ; do |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
561 /bin/bash <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
562 export PATH=$install_dir/bin:$PATH PERL5LIB=$install_dir/lib/perl5:$PERL5LIB && \ |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
563 ./cpanm -l $install_dir $package >>$install_dir/INSTALLATION.log |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
564 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
565 done |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
566 # Install fasta-splitter |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
567 wget -q http://kirill-kryukov.com/study/tools/fasta-splitter/files/fasta-splitter-0.2.4.zip |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
568 unzip -qq fasta-splitter-0.2.4.zip |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
569 chmod 0755 fasta-splitter.pl |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
570 mv fasta-splitter.pl $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
571 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
572 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
573 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
574 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
575 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
576 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
577 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
578 # Source this to setup fasta-splitter/0.2.4 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
579 echo Setting up fasta-splitter 0.2.4 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
580 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
581 export PERL5LIB=$install_dir/lib/perl5:\$PERL5LIB |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
582 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
583 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
584 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
585 function install_rdp_classifier_2_2() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
586 echo Installing rdp-classifier 2.2R |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
587 local install_dir=$1/rdp-classifier/2.2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
588 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
589 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
590 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
591 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
592 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
593 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
594 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
595 wget -q https://sourceforge.net/projects/rdp-classifier/files/rdp-classifier/rdp_classifier_2.2.zip |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
596 unzip -qq rdp_classifier_2.2.zip |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
597 cd rdp_classifier_2.2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
598 mv * $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
599 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
600 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
601 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
602 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
603 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
604 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
605 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
606 # Source this to setup rdp-classifier/2.2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
607 echo Setting up RDP classifier 2.2 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
608 export RDP_JAR_PATH=$install_dir/rdp_classifier-2.2.jar |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
609 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
610 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
611 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
612 function install_R_3_2_0() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
613 # Adapted from https://github.com/fls-bioinformatics-core/galaxy-tools/blob/master/local_dependency_installers/R.sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
614 echo Installing R 3.2.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
615 local install_dir=$1/R/3.2.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
616 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
617 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
618 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
619 mkdir -p $install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
620 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
621 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
622 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
623 wget -q http://cran.r-project.org/src/base/R-3/R-3.2.0.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
624 tar xzf R-3.2.0.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
625 cd R-3.2.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
626 ./configure --prefix=$install_dir |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
627 make |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
628 make install |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
629 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
630 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
631 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
632 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
633 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
634 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
635 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
636 # Source this to setup R/3.2.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
637 echo Setting up R 3.2.0 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
638 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
639 export TCL_LIBRARY=$install_dir/lib/libtcl8.4.so |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
640 export TK_LIBRARY=$install_dir/lib/libtk8.4.so |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
641 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
642 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
643 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
644 function install_uc2otutab() { |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
645 # See http://drive5.com/python/uc2otutab_py.html |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
646 echo Installing uc2otutab |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
647 # Install to "default" version i.e. essentially a versionless |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
648 # installation (see Galaxy dependency resolver docs) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
649 local install_dir=$1/uc2otutab/default |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
650 if [ -f $install_dir/env.sh ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
651 return |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
652 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
653 mkdir -p $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
654 local wd=$(mktemp -d) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
655 echo Moving to $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
656 pushd $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
657 wget -q http://drive5.com/python/python_scripts.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
658 tar zxf python_scripts.tar.gz |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
659 mv die.py fasta.py progress.py uc.py $install_dir/bin |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
660 echo "#!/usr/bin/env python" >$install_dir/bin/uc2otutab.py |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
661 cat uc2otutab.py >>$install_dir/bin/uc2otutab.py |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
662 chmod +x $install_dir/bin/uc2otutab.py |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
663 popd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
664 # Clean up |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
665 rm -rf $wd/* |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
666 rmdir $wd |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
667 # Make setup file |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
668 cat > $install_dir/env.sh <<EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
669 #!/bin/sh |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
670 # Source this to setup uc2otutab/default |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
671 echo Setting up uc2otutab \(default\) |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
672 export PATH=$install_dir/bin:\$PATH |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
673 # |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
674 EOF |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
675 } |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
676 ########################################################## |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
677 # Main script starts here |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
678 ########################################################## |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
679 # Fetch top-level installation directory from command line |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
680 TOP_DIR=$1 |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
681 if [ -z "$TOP_DIR" ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
682 echo Usage: $(basename $0) DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
683 exit |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
684 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
685 if [ -z "$(echo $TOP_DIR | grep ^/)" ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
686 TOP_DIR=$(pwd)/$TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
687 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
688 if [ ! -d "$TOP_DIR" ] ; then |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
689 mkdir -p $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
690 fi |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
691 # Install dependencies |
1 | 692 install_amplicon_analysis_pipeline_1_2_1 $TOP_DIR |
0
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
693 install_cutadapt_1_11 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
694 install_sickle_1_33 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
695 install_bioawk_27_08_2013 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
696 install_pandaseq_2_8_1 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
697 install_spades_3_5_0 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
698 install_fastqc_0_11_3 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
699 install_qiime_1_8_0 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
700 install_vsearch_1_1_3 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
701 install_microbiomeutil_2010_04_29 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
702 install_blast_2_2_26 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
703 install_fasta_number $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
704 install_fasta_splitter_0_2_4 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
705 install_rdp_classifier_2_2 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
706 install_R_3_2_0 $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
707 install_uc2otutab $TOP_DIR |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
708 ## |
47ec9c6f44b8
planemo upload for repository https://github.com/pjbriggs/Amplicon_analysis-galaxy commit b63924933a03255872077beb4d0fde49d77afa92
pjbriggs
parents:
diff
changeset
|
709 # |