-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathrunRAxML.sh
More file actions
executable file
·42 lines (36 loc) · 1.22 KB
/
runRAxML.sh
File metadata and controls
executable file
·42 lines (36 loc) · 1.22 KB
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
#!/bin/bash
module load raxml
if [ $# -lt 2 ] ; then
echo "usage: runRAxML.sh <alignment_file> <AA|NT>"
echo ""
echo "run rapid Bootstrap analysis and find the best scoring ML tree from alignment file"
echo "if alignment is protein, use AA; if nucleotide use NT"
echo "for AA it uses use Automatic protein model assignment, and for NT it is GTRGAMMA model"
echo ""
exit 0
fi
if [ "$2" -eq "AA" ] then
MOD="PROTGAMMAAUTO"
elif ["$2" -eq "NT" ] then
MOD="GTRGAMMA"
fi
fi
ALN="$1"
SUF=$(basename ${ALN} |cut -f 1 -d "_")
raxmlHPC-PTHREADS \
-T 16 \
-f a \
-m ${MOD} \
-p 12345 \
-x 12345 \
-# 100 \
-s ${ALN} \
-n ${SUF}
# -T 16 : number of threads set to 16 (condo)
# -f a : rapid Bootstrap analysis and search for best-scoring ML tree in one program run
# -m PROTGAMMAAUTO : use Automatic protein model assignment algorithm based on ML scores
# -p 12345 : random number seed for the parsimony inferences
# -x 12345 : random seed for rapid bootstrap
# -# 100 : number of bootstraps set to 100
# -s ${ALN}: alignment file in fasta or phylip format
# -n ${SUF}: naming suffix for files generated for a individual run