annotate tassel/tassel.sh @ 24:21d878747ac6 draft default tip

Uploaded
author dereeper
date Mon, 23 Mar 2015 05:53:20 -0400
parents 4027928a1f4c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
1 #!/bin/bash
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
2
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
3 analyseType=$1;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
4 out1=$2;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
5 out2=$3;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
6 out3=$4;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
7 log1=$5;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
8 galaxyOutDir=$6;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
9
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
10
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
11 mkdir $galaxyOutDir
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
12
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
13 # Suppression des 6 premiers arguments de la liste des arguments $@
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
14 shift; shift; shift; shift; shift; shift;
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
15
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
16 if [[ $analyseType == glm ]]
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
17 then
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
18 run_pipeline.pl $* >> $log1 2>&1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
19 mv "$galaxyOutDir/TASSELGLM1.txt" $out1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
20 mv "$galaxyOutDir/TASSELGLM2.txt" $out2
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
21 fi
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
22
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
23 if [[ $analyseType == mlm ]]
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
24 then
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
25 run_pipeline.pl $* >> $log1 2>&1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
26 mv "$galaxyOutDir/TASSELMLM1.txt" $out1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
27 mv "$galaxyOutDir/TASSELMLM2.txt" $out2
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
28 mv "$galaxyOutDir/TASSELMLM3.txt" $out3
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
29 fi
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
30
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
31 if [[ $analyseType == ld ]]
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
32 then
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
33 run_pipeline.pl $* >> $log1 2>&1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
34 fi
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
35
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
36
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
37 if [[ $analyseType == ck ]]
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
38 then
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
39 run_pipeline.pl $* >> $log1 2>&1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
40 mv "$galaxyOutDir/kinship.txt" $out1
4027928a1f4c Uploaded
dereeper
parents:
diff changeset
41 fi