annotate tassel/tassel.sh @ 0:0aeea77b924a draft

Uploaded
author dereeper
date Thu, 26 Feb 2015 01:15:36 -0500
parents
children d8a46ae7ee8a
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
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
10
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
11 mkdir $galaxyOutDir
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
12
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
13 # Suppression des 6 premiers arguments de la liste des arguments $@
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
14 shift; shift; shift; shift; shift; shift;
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
15
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
16 if [[ $analyseType == glm ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
17 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
18 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
19 mv "$galaxyOutDir/TASSELGLM1.txt" $out1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
20 mv "$galaxyOutDir/TASSELGLM2.txt" $out2
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
21 fi
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
22
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
23 if [[ $analyseType == mlm ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
24 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
25 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
26 mv "$galaxyOutDir/TASSELMLM1.txt" $out1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
27 mv "$galaxyOutDir/TASSELMLM2.txt" $out2
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
28 mv "$galaxyOutDir/TASSELMLM3.txt" $out3
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
29 fi
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
30
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
31 if [[ $analyseType == ld ]]
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
32 then
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
33 run_pipeline.pl $* >> $log1 2>&1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
34 fi
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
35
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
36
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
37 if [[ $analyseType == ck ]]
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 mv "$galaxyOutDir/kinship.txt" $out1
0aeea77b924a Uploaded
dereeper
parents:
diff changeset
41 fi