forked from genomecuration/JAMg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.sh
executable file
·76 lines (54 loc) · 2.49 KB
/
env.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
echo What is the PATH for JAMg? e.g. `echo "$( dirname "${BASH_SOURCE[0]}" )"`
read JAMG_PATH
echo What directory to use for temporary files? e.g. /dev/shm /tmp `echo $TMPDIR`
read TMPDIR
echo How many CPUs would like to use for some of the multi-threaded scripts? e.g. 5
read LOCAL_CPUS
echo How much memory would you like to be able to use? In Gigabytes e.g. 50
read MAX_MEMORY_G
echo What is the name you want to give to the genome - computer friendly, no spaces?
read GENOME_NAME
echo What is the path to the genome?
read GENOME_PATH
echo What is the maximum intron length? e.g. 70000
read MAX_INTRON_LENGTH
echo "What is the name of the species for Augustus (no spaces, use underscore)?"
read SPECIES
echo "What is a species classification for RepeatMasker (e.g. Insecta, fungi, Viridiplantae, human, primates)?"
read SPECIES_CATEGORY
#system variables
LD_LIBRARY_PATH=$JAMG_PATH/3rd_party/lib:$JAMG_PATH/3rd_party/lib64:$JAMG_PATH/3rd_party/mysql/lib:$JAMG_PATH/3rd_party/lib:$JAMG_PATH/3rd_party/lib64:$JAMG_PATH/3rd_party/mysql/lib:$LD_LIBRARY_PATH
LDFLAGS="$LDFLAGS -L$JAMG_PATH/3rd_party/lib -L$JAMG_PATH/3rd_party/lib64 -L$JAMG_PATH/3rd_party/mysql/lib -L$JAMG_PATH/3rd_party/lib -L$JAMG_PATH/3rd_party/lib64 -L$JAMG_PATH/3rd_party/mysql/lib"
CPPFLAGS="$CPPFLAGS -I$JAMG_PATH/3rd_party/include -I$JAMG_PATH/3rd_party/mysql/include -fPIC -I$JAMG_PATH/3rd_party/include -I$JAMG_PATH/3rd_party/mysql/include -fPIC"
CFLAGS="$CFLAGS -I$JAMG_PATH/3rd_party/include -I$JAMG_PATH/3rd_party/mysql/include -fPIC -I$JAMG_PATH/3rd_party/include -I$JAMG_PATH/3rd_party/mysql/include -fPIC"
PATH=$JAMG_PATH/bin:$JAMG_PATH/3rd_party/bin:$PATH
PERL5LIB=$JAMG_PATH/PerlLib:$PERL5LIB
TMPDIR=$TMPDIR
echo "#!/bin/bash
# system speficic
export JAMG_PATH=$JAMG_PATH
export LOCAL_CPUS=$LOCAL_CPUS
export MAX_MEMORY_G=$MAX_MEMORY_G
export HHLIB=$JAMG_PATH/3rd_party/hhsuite
export TMPDIR=$TMPDIR
# species specific (can edit these)
export GENOME_NAME=$GENOME_NAME
export GENOME_PATH=$GENOME_PATH
export MAX_INTRON_LENGTH=$MAX_INTRON_LENGTH
export SPECIES=$SPECIES
export SPECIES_CATEGORY=$SPECIES_CATEGORY
# compilation variables
export AUGUSTUS_CONFIG_PATH=$JAMG_PATH/3rd_party/augustus/config
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export LDFLAGS=\"$LDFLAGS\"
export CPPFLAGS=\"$CPPFLAGS\"
export CFLAGS=\"$CFLAGS\"
export PATH=$JAMG_PATH/bin:$JAMG_PATH/3rd_party/bin:$PATH
export PERL5LIB=$PERL5LIB
" > env.source
echo Variables exported. In the future you can run this:
echo '
$ source env.source
'
source env.source