annotate tools/rgenetics/rgtest_one_tool.sh @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 #!/bin/sh
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 # script to generate all functional test outputs for each rgenetics tool
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 # could be run at installation to ensure all dependencies are in place?
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 case $# in 0) echo "USAGE: ${0##*/} TooltoTest galaxyRoot outRoot"; exit 1;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 [1-2]*) echo "Need ToolToTest and paths for galaxyRoot outRoot as parameters"; exit 2;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 [5-10]*) echo "Too many arguments - ToolToTest and paths for galaxyRoot outRoot as parameters"; exit 2;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 *)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 esac
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 GALAXYROOT=$2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 OUTROOT=$3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 echo "using $GALAXYROOT"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 # change this as needed for your local install
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 INPATH="${GALAXYROOT}/test-data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 JARPATH="${GALAXYROOT}/tool-data/shared/jars"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 TOOLPATH="${GALAXYROOT}/tools/rgenetics"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 OROOT="${OUTROOT}/test-data/rgtestouts"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 NORMALOROOT="${OUTROOT}/test-data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 case "$1" in
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 'rgManQQ')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 TOOL="rgManQQ"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 CL="python $TOOLPATH/$TOOL.py "$INPATH/smallwgaP.xls" $NPRE ${OUTPATH}/${NPRE}.html $OUTPATH 1 2 7 0"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 # rgManQQ.py '$input_file' "$name" '$out_html' '$out_html.files_path' '$chrom_col' '$offset_col'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 # '$pval_col'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 #python /opt/galaxy/tools/rgenetics/rgManQQ.py /opt/galaxy/test-data/smallwgaP.xls rgManQQtest1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 #/opt/galaxy/test-data/rgtestouts/rgManQQ/rgManQQtest1.html /opt/galaxy/test-data/rgtestouts/rgManQQ 1 2 5,7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 echo "Testing $TOOL using $CL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 python $TOOLPATH/$TOOL.py "$INPATH/smallwgaP.xls" $NPRE ${OUTPATH}/${NPRE}.html $OUTPATH 1 2 7 0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 'rgfakePhe')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 TOOL="rgfakePhe"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 PSSCRIPT="$OUTPATH/script_file"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 echo "{'pN':'normtest','pT':'rnorm','pP':\"{'Mean':'100', 'SD':'10'}\"}" > $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 echo "{'pN':'cattest','pT':'cat','pP':\"{'values':'red,green,blue'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 echo "{'pN':'uniftest','pT':'$f.series.phetype','pP':\"{'low':'1','hi':'100'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 echo "{'pN':'gammatest','pT':'rgamma','pP':\"{'Alpha':'1', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 echo "{'pN':'poissontest','pT':'poisson','pP':\"{'lamb':'1.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 echo "{'pN':'exptest','pT':'exponential','pP':\"{'Mean':'100.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 echo "{'pN':'weibtest','pT':'weibull','pP':\"{'Alpha':'1.0', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 python $TOOLPATH/$TOOL.py ${INPATH}/tinywga $NPRE $NPRE.pphe $OUTPATH $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 # <command interpreter="python">rgfakePhe.py '$infile1.extra_files_path/$infile1.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 # "$title1" '$ppheout' '$ppheout.files_path' '$script_file'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 'rgQC')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 TOOL="rgQC"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 CMD="python $TOOLPATH/$TOOL.py -i $INPATH/tinywga -o $NPRE -s ${OUTPATH}/${NPRE}.html -p $OUTPATH"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 echo "doing $CMD"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 $CMD
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 # rgQC.py -i '$input_file.extra_files_path/$input_file.metadata.base_name' -o "$out_prefix"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 # -s '$html_file' -p '$html_file.files_path'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 'rgGRR')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 TOOL="rgGRR"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 cmd="$TOOLPATH/$TOOL.py "$INPATH/tinywga" "tinywga" $OUTPATH/${NPRE}.html $OUTPATH "$NPRE" '100' '6' 'true'"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 echo "Doing $cmd"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 python $TOOLPATH/$TOOL.py "$INPATH/tinywga" "tinywga" $OUTPATH/${NPRE}.html $OUTPATH "$NPRE" '100' '6'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 # rgGRR.py $i.extra_files_path/$i.metadata.base_name "$i.metadata.base_name"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 #'$out_file1' '$out_file1.files_path' "$title" '$n' '$Z'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 'rgLDIndep')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 TOOL="rgLDIndep"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 python $TOOLPATH/$TOOL.py "$INPATH" "tinywga" "$NPRE" 1 1 0 0 1 1 $OUTPATH/${NPRE}.pbed $OUTPATH 10000 5000 0.1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 #rgLDIndep.py '$input_file.extra_files_path' '$input_file.metadata.base_name' '$title' '$mind'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 # '$geno' '$hwe' '$maf' '$mef' '$mei' '$out_file1'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 #'$out_file1.files_path' '$window' '$step' '$r2'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 'rgPedSub')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 TOOL="rgPedSub"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 PSSCRIPT="$OUTPATH/pedsub.script"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 echo "title~~~~$NPRE" > $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 echo "output1~~~~${OUTPATH}/${NPRE}.lped" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 echo "outformat~~~~lped" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 echo "basename~~~~tinywga" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 echo "inped~~~~$INPATH/tinywga" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 echo "outdir~~~~$OUTPATH" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 echo "region~~~~" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 echo "relfilter~~~~all" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 echo "rslist~~~~rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 python $TOOLPATH/$TOOL.py $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 rm -rf $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 'rgfakePhe')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 TOOL="rgfakePhe"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 PSSCRIPT="$OUTPATH/script_file"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 echo "{'pN':'normtest','pT':'rnorm','pP':\"{'Mean':'100', 'SD':'10'}\"}" > $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 echo "{'pN':'cattest','pT':'cat','pP':\"{'values':'red,green,blue'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 echo "{'pN':'uniftest','pT':'$f.series.phetype','pP':\"{'low':'1','hi':'100'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 echo "{'pN':'gammatest','pT':'rgamma','pP':\"{'Alpha':'1', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 echo "{'pN':'poissontest','pT':'poisson','pP':\"{'lamb':'1.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 echo "{'pN':'exptest','pT':'exponential','pP':\"{'Mean':'100.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 echo "{'pN':'weibtest','pT':'weibull','pP':\"{'Alpha':'1.0', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 python $TOOLPATH/$TOOL.py $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 'rgClean')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 TOOL="rgClean"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 python $TOOLPATH/$TOOL.py $INPATH "tinywga" "$NPRE" 1 1 0 0 1 1 $OUTPATH/${NPRE}.pbed $OUTPATH 0 0 0 0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 # rgClean.py '$input_file.extra_files_path' '$input_file.metadata.base_name' '$title' '$mind'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136 # '$geno' '$hwe' '$maf' '$mef' '$mei' '$out_file1' '$out_file1.files_path'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 # '${GALAXY_DATA_INDEX_DIR}/rg/bin/plink' '$relfilter' '$afffilter' '$sexfilter' '$fixaff'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141 'rgEigPCA')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 TOOL="rgEigPCA"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
144 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
145 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
146 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
147 python $TOOLPATH/$TOOL.py "$INPATH/tinywga" "$NPRE" ${OUTPATH}/${NPRE}.html $OUTPATH 4 2 2 2 $OUTPATH/rgEigPCAtest1.txt
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
148 # rgEigPCA.py "$i.extra_files_path/$i.metadata.base_name" "$title" "$out_file1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
149 # "$out_file1.files_path" "$k" "$m" "$t" "$s" "$pca"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
150 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
151 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
152
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
153 'rgfakePed')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
154 TOOL="rgfakePed"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
155 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
156 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
157 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
158 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
159 python $TOOLPATH/$TOOL.py --title "$NPRE" -o $OUTPATH/${NPRE}.lped -p $OUTPATH -c "20" -n "40" -s "10" -w "0" -v "0" -l "pbed" -d "T" -m "0" -M "0"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
160 #rgfakePed.py --title '$title1'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
161 # -o '$out_file1' -p '$out_file1.extra_files_path' -c '$ncases' -n '$ntotal'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
162 # -s '$nsnp' -w '$lowmaf' -v '$missingValue' -l '$outFormat'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
163 # -d '$mafdist' -m '$missingRate' -M '$mendelRate'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
164 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
165
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
166 'rgHaploView')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
167
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
168 TOOL="rgHaploView"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
169 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
170 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
171 rm -rf $OUTPATH/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
172 CL="python $TOOLPATH/$TOOL.py '' 'rs2283802 rs2267000 rs16997606 rs4820537 rs3788347 rs756632 rs4820539 rs2283804 rs2267006 rs4822363' '$NPRE' $OUTPATH/${NPRE}.html '$INPATH' 'tinywga' 0.0 200000 'RSQ' 'lo' '2048' '$OUTPATH' 'noinfo' '0.8' 'YRI' $JARPATH/haploview.jar"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
173 echo "Testing $TOOL using $CL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
174 python $TOOLPATH/$TOOL.py "" "rs2283802 rs2267000 rs16997606 rs4820537 rs3788347 rs756632 rs4820539 rs2283804 rs2267006 rs4822363" \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
175 "$NPRE" $OUTPATH/${NPRE}.html "$INPATH" "tinywga" 0.0 200000 "RSQ" "lo" "2048" "$OUTPATH" "noinfo" "0.8" "YRI" $JARPATH/haploview.jar
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
176 # rgHaploView.py "$ucsc_region" "$rslist" "$title" "$output1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
177 # "$lhistIn.extra_files_path" "$lhistIn.metadata.base_name"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
178 # "$minmaf" "$maxdist" "$ldtype" "$hires" "$memsize" "$output1.files_path"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
179 # "$infoTrack" "$tagr2" "$hmpanel" ${GALAXY_DATA_INDEX_DIR}/rg/bin/haploview.jar
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
180 # note these statistical tools do NOT generate composite outputs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
181 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
182
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
183 'rgGLM')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
184 TOOL="rgGLM"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
185 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
186 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
187 python $TOOLPATH/$TOOL.py "$INPATH/tinywga" $INPATH/tinywga "$NPRE" "c1" "" $OUTPATH/${NPRE}_GLM.xls \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
188 $OUTPATH/${NPRE}_GLM_log.txt "tinywga" "" "" "" 1 1 0 0 $OUTPATH/${NPRE}_GLM_topTable.gff
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
189 ## rgGLM.py '$i.extra_files_path/$i.metadata.base_name' '$phef.extra_files_path/$phef.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
190 ## "$title1" '$predvar' '$covar' '$out_file1' '$logf' '$dbkey' '$i.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
191 ## '$inter' '$cond' '$gender' '$mind' '$geno' '$maf' '$logistic' '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
192 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
193
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
194 'rgTDT')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
195 TOOL="rgTDT"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
196 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
197 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
198 python $TOOLPATH/$TOOL.py -i "$INPATH/tinywga" -o "$NPRE" -r $OUTPATH/${NPRE}_TDT.xls \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
199 -l $OUTPATH/${NPRE}_TDT_log.txt -g $OUTPATH/${NPRE}_TDT_topTable.gff
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
200 ## rgTDT.py -i '$infile.extra_files_path/$infile.metadata.base_name' -o '$title'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
201 ## -r '$out_file1' -l '$logf' -x '${GALAXY_DATA_INDEX_DIR}/rg/bin/plink'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
202 ## -g '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
203 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
204
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
205 'rgCaCo')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
206 TOOL="rgCaCo"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
207 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
208 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
209 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
210 python $TOOLPATH/rgCaCo.py $INPATH/tinywga "$NPRE" $OUTPATH/${NPRE}_CaCo.xls $OUTPATH/${NPRE}_CaCo_log.txt $OUTPATH $OUTPATH/${NPRE}_CaCo_topTable.gff
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
211 # rgCaCo.py '$i.extra_files_path/$i.metadata.base_name' "$name" '$out_file1' '$logf' '$logf.files_path' '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
212 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
213
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
214 'rgQQ')
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
215 TOOL="rgQQ"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
216 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
217 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
218 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
219 CL="python $TOOLPATH/$TOOL.py "$INPATH/tinywga.pphe" "$NPRE" 1 3 $OUTPATH/$NPRE.pdf 8 10 "false" 1 $OUTPATH"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
220 echo "running $TOOL using $CL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
221 python $TOOLPATH/$TOOL.py "$INPATH/tinywga.pphe" "$NPRE" 1 3 $OUTPATH/$NPRE.pdf 8 10 "false" 1 $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
222 # rgQQ.py "$input1" "$name" $sample "$cols" $allqq $height $width $log $allqq.id $__new_file_path__
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
223 ;;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
224 esac