Skip to content

Commit d5fd43f

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
install script updates and docs v0.1.7
1 parent 91d8a4e commit d5fd43f

File tree

3 files changed

+34
-21
lines changed

3 files changed

+34
-21
lines changed

docs/mac_install.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ brew install funannotate
4747
```
4848
#download RepeatMasker libraries and install
4949
wget --user name --password pass http://www.girinst.org/server/RepBase/protected/repeatmaskerlibraries/repeatmaskerlibraries-20150807.tar.gz
50-
tar zxvf repeatmaskerlibraries-20150807.tar.gz -C /usr/local/Cellar/repeatmasker/4.0.5/libexec
50+
tar zxvf repeatmaskerlibraries-20150807.tar.gz -C /usr/local/opt/repeatmasker/libexec
5151
5252
#now setup RepeatMasker
53-
cd /usr/local/Cellar/repeatmasker/4.0.5/libexec
53+
cd /usr/local/opt/repeatmasker/libexec
5454
./configure <config.txt
5555
5656
#softlink GFF script to bin in path
57-
ln /usr/local/Cellar/repeatmasker/4.0.5/libexec/util/rmOutToGFF3.pl /usr/local/bin
57+
ln /usr/local/opt/repeatmasker/libexec/util/rmOutToGFF3.pl /usr/local/bin
5858
```
5959

6060
7) Download and install GeneMark-ES/ET [here](http://exon.gatech.edu/GeneMark/license_download.cgi)
@@ -73,16 +73,16 @@ cp $HOME/Downloads/gm_key ~/.gm_key
7373
export PATH="/usr/local/gmes_petap:$PATH"
7474
7575
#add environmental variables
76-
export AUGUSTUS_CONFIG_PATH=/usr/local/Cellar/opt/augustus/libexec/config
77-
export EVM_HOME=/usr/local/Cellar/evidencemodeler/1.1.2
76+
export AUGUSTUS_CONFIG_PATH=/usr/local/opt/augustus/libexec/config
77+
export EVM_HOME=/usr/local/opt/evidencemodeler
7878
export GENEMARK_PATH=/usr/local/gmes_petap
79-
export BAMTOOLS_PATH=/usr/local/Cellar/bamtools/2.4.0/bin
79+
export BAMTOOLS_PATH=/usr/local/opt/bamtools/bin
8080
```
8181

8282
9) Re-launch a terminal window (or type `source ~/.bash_profile`). Finally run funannotate setup script to download databases and identify any problems.
8383
```
8484
#navigate into funannotate install directory
85-
cd /usr/local/Cellar/funannotate/version#/libexec
85+
cd /usr/local/opt/funannotate/libexec
8686
8787
#run setup script, might need sudo here
8888
./setup.sh

docs/ubuntu_install.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ brew install funannotate
5858
6) Download RepeatMasker libraries from [RepBase](http://www.girinst.org/repbase/) you will need to register
5959
```
6060
wget --user name --password pass http://www.girinst.org/server/RepBase/protected/repeatmaskerlibraries/repeatmaskerlibraries-20150807.tar.gz
61-
tar zxvf repeatmaskerlibraries-20150807.tar.gz -C $HOME/.linuxbrew/Cellar/repeatmasker/4.0.5/libexec
61+
tar zxvf repeatmaskerlibraries-20150807.tar.gz -C $HOME/.linuxbrew/opt/repeatmasker/libexec
6262
6363
#now setup RepeatMasker
64-
cd $HOME/.linuxbrew/repeatmasker/4.0.5/libexec
64+
cd $HOME/.linuxbrew/opt/repeatmasker/libexec
6565
./configure <config.txt
6666
6767
#softlink GFF script to bin
68-
ln -s $HOME/.linuxbrew/Cellar/repeatmasker/4.0.5/libexec/util/rmOutToGFF3.pl $HOME/.linuxbrew/bin
68+
ln -s $HOME/.linuxbrew/opt/repeatmaskerlibexec/util/rmOutToGFF3.pl $HOME/.linuxbrew/bin
6969
```
7070

7171
7) Download and install GeneMark-ES/ET [here](http://exon.gatech.edu/GeneMark/license_download.cgi)
@@ -89,18 +89,18 @@ export PATH="/usr/local/gmes_petap:$PATH"
8989
9090
#add environmental variables
9191
export AUGUSTUS_CONFIG_PATH=$HOME/.linuxbrew/opt/augustus/libexec/config
92-
export EVM_HOME=$HOME/.linuxbrew/Cellar/evidencemodeler/1.1.2
92+
export EVM_HOME=$HOME/.linuxbrew/opt/evidencemodeler
9393
export GENEMARK_PATH=/usr/local/gmes_petap
94-
export BAMTOOLS_PATH=$HOME/.linuxbrew/Cellar/bamtools/2.4.0/bin
94+
export BAMTOOLS_PATH=$HOME/.linuxbrew/opt/bamtools/bin
9595
```
9696

9797
9) Re-launch a terminal window (or type `source ~/.bash_aliases`). Finally run funannotate setup script to download databases and identify any problems.
9898
```
9999
#navigate into funannotate install directory
100-
cd $HOME/.linuxbrew/Cellar/funannotate/version#/libexec
100+
cd $HOME/.linuxbrew/opt/funannotate/libexec
101101
102-
#run setup script, note you need sudo here to copy over the proper ProteinOrtho version
103-
sudo ./setup.sh
102+
#run setup script
103+
./setup.sh
104104
```
105105
The script will download and format necessary databases and then check all of the dependencies of funannotate - any tool not properly installed will be flagged by the script.
106106

setup.sh

+19-6
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,29 @@ else
3232
if [[ $dir == *"libexec"* ]]; then
3333
echo "HomeBrew installation detected, looking for any previous versions"
3434
pre_vers=$(ls ../../ | sort | tail -2 | head -1)
35-
if [[ "$OSTYPE" == "darwin"* ]]; then
36-
outputdir=$(readlink ../../$pre_vers/libexec/DB)
35+
curr_vers=$(ls ../../ | sort | tail -1 | head -1)
36+
if [ "$pre_vers" == "$curr_vers" ]; then
37+
echo "This is the first HomeBrew install detected."
38+
outputdir='/usr/local/share/funannotate'
39+
echo -n "Default DB directory set to ($outputdir), continue [y/n]: "
40+
read question1
41+
if [ $question1 == 'n' ]; then
42+
echo -n "Enter path to DB directory: "
43+
read dbname
44+
outputdir=$dbname
45+
fi
3746
else
38-
outputdir=$(readlink -f ../../$pre_vers/libexec/DB)
39-
fi
40-
echo "Symlink found to $outputdir, setting up DB"
47+
if [[ "$OSTYPE" == "darwin"* ]]; then
48+
outputdir=$(readlink ../../$pre_vers/libexec/DB)
49+
else
50+
outputdir=$(readlink -f ../../$pre_vers/libexec/DB)
51+
fi
52+
echo "Symlink found to $outputdir, setting up DB"
53+
fi
4154
else
4255
echo "HomeBrew installation not detected, specify DB installation directory"
4356
outputdir='/usr/local/share/funannotate'
44-
echo -n "DB directory set to ($outputdir), continue [y/n]: "
57+
echo -n "Default DB directory set to ($outputdir), continue [y/n]: "
4558
read question1
4659
if [ $question1 == 'n' ]; then
4760
echo -n "Enter path to DB directory: "

0 commit comments

Comments
 (0)