annotate tassel/tassel.sh @ 2:d8a46ae7ee8a draft

Uploaded
author dereeper
date Fri, 03 Jul 2015 04:37:26 -0400
parents 0aeea77b924a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
1 #!/bin/bash
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
2
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
3 analyseType=$1;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
4 out1=$2;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
5 out2=$3;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
6 out3=$4;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
7 log1=$5;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
8 galaxyOutDir=$6;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
9
2
d8a46ae7ee8a Uploaded
dereeper
parents: 0
diff changeset
10 version=$(java -version 2>&1 | grep version)
d8a46ae7ee8a Uploaded
dereeper
parents: 0
diff changeset
11 if [[ ! $version =~ 1.8 ]]; then
d8a46ae7ee8a Uploaded
dereeper
parents: 0
diff changeset
12 echo "Java found: $version. Tassel 5.0 requires java 1.8..." >&2
d8a46ae7ee8a Uploaded
dereeper
parents: 0
diff changeset
13 exit 1
d8a46ae7ee8a Uploaded
dereeper
parents: 0
diff changeset
14 fi
0
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
15
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
16 mkdir $galaxyOutDir
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
17
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
18 # Suppression des 6 premiers arguments de la liste des arguments $@
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
19 shift; shift; shift; shift; shift; shift;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
20
2
d8a46ae7ee8a Uploaded
dereeper
parents: 0
diff changeset
21
0
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
22 if [[ $analyseType == glm ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
23 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
24 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
25 mv "$galaxyOutDir/TASSELGLM1.txt" $out1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
26 mv "$galaxyOutDir/TASSELGLM2.txt" $out2
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
27 fi
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
28
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
29 if [[ $analyseType == mlm ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
30 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
31 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
32 mv "$galaxyOutDir/TASSELMLM1.txt" $out1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
33 mv "$galaxyOutDir/TASSELMLM2.txt" $out2
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
34 mv "$galaxyOutDir/TASSELMLM3.txt" $out3
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
35 fi
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
36
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
37 if [[ $analyseType == ld ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
38 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
39 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
40 fi
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
41
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
42
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
43 if [[ $analyseType == ck ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
44 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
45 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
46 mv "$galaxyOutDir/kinship.txt" $out1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
47 fi