Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install.sh script take parameters #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ project dir:

Install flo's dependencies in `ext/` directory in the project dir:

/path/to/flo/scripts/install.sh
/path/to/flo/scripts/install.sh ucsc-kent parallel genometools

Now edit `opts.yaml` to indicate:
1. Location of source and target assembly in FASTA format (required).
Expand Down
9 changes: 9 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

# UCSC-Kent
if [[ "$*" == *"ucsc-kent"* ]] ## Check all the argument to the install.sh script
then
mkdir -p ext/kent/bin; cd ext/kent/bin
tools=(liftUp faSplit liftOver axtChain chainNet blat/blat chainSort faToTwoBit
twoBitInfo chainSplit chainMergeSort netChainSubset)
Expand All @@ -11,8 +13,11 @@ esac
for tool in ${tools[@]}; do wget -c "${ftp_dir}/${tool}"; done
chmod +x *
cd -
fi

# GNU parallel
if [[ "$*" == *"parallel"* ]] ## Check all the argument to the install.sh script
then
cd ext
wget -c http://ftp.gnu.org/gnu/parallel/parallel-20150722.tar.bz2
tar xvf parallel-20150722.tar.bz2
Expand All @@ -21,11 +26,15 @@ cd parallel-20150722
./configure
make
cd ../..
fi

# Genometools
if [[ "$*" == *"genometools"* ]] ## Check all the argument to the install.sh script
then
cd ext
wget -c https://github.com/genometools/genometools/archive/refs/tags/v1.6.2.tar.gz -O v1.6.2.tar.gz
tar xvf v1.6.2.tar.gz
rm v1.6.2.tar.gz
cd genometools-1.6.2
make cairo=no errorcheck=no
fi