-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.sh.example
41 lines (35 loc) · 1.26 KB
/
env.sh.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## This is an example for the env.sh file that is meant to be
## source'd (not executed!) before using the scripts in this directory.
## It sets the PERLLIB and PATH to use for the scripts in this repo so
## that you don't have to rely on hard-wired paths.
##
## Copy it to env.sh and adjust to needs. If all your git checkouts are
## contained in one directory (e.g. $HOME/git), just adjust variable
## gitroot below and you should be fine. Some scripts rely on the
## demultiplex library ( github.com/plijnzaad/demultiplex ); paths for
## this are set as well (again using $HOME/git as the root of all git checkouts)
##
## Source (don't run) the script as
##
## source ./env.sh
##
## prior to using the scripts.
if [ $(dirname $BASH_SOURCE) != '.' ]; then
echo "sourcing $BASH_SOURCE found on \$PATH, be sure this is right " >&2
fi
gitroot=$HOME/git
repo=scseq
h=$gitroot/$repo
export PERLLIB=$h:$PERLLIB
PATH=$h:$PATH
## mismatch tools (from https://[email protected]/plijnzaad/phtools.git)
repo=demultiplex
dmx=$gitroot/$repo
PERLLIB=$dmx:$PERLLIB
PATH=$dmx:$PATH
if [ ! -z $(printenv PERL5LIB ) ]; then
PERL5LIB=$PERLLIB
fi
unset gitroot repo h
### Also make sure that bwa (the mapper) can be found. If you use the
### lmod system, this would look like module load bwa