annotate tools/rgenetics/rgtest.sh @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
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 if test $# -lt 2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 then
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 echo "We need to agree on 2 parameters - GalaxyRoot and OutRoot - use paths to galaxy and galaxy to re-create all test outputs"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 echo "or more prudently, galaxy and /tmp/foo for checking without updating all your test-data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 echo "Exiting with no changes"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 exit 1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 fi
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 if [ $1 ]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 then
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 GALAXYROOT=$1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 GALAXYROOT=`pwd`
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 fi
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 if [ $2 ]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 then
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 OUTROOT=$2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 OUTROOT=`pwd`
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 OUTROOT="$OUTROOT/test-data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 fi
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 echo "using $GALAXYROOT as galaxyroot and $OUTROOT as outroot"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 # change this as needed for your local install
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 INPATH="${GALAXYROOT}/test-data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 JARPATH="${GALAXYROOT}/tool-data/shared/jars"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 TOOLPATH="${GALAXYROOT}/tools/rgenetics"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 OROOT="${OUTROOT}/test-data/rgtestouts"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 NORMALOROOT="${OUTROOT}/test-data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 mkdir -p $OROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 rm -rf $OROOT/*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 # needed for testing - but tool versions should be bumped if this is rerun?
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 TOOL="rgManQQ"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 CL="python $TOOLPATH/$TOOL.py "$INPATH/smallwgaP.xls" $NPRE ${OUTPATH}/${NPRE}.html $OUTPATH 1 2 7 0"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 # rgManQQ.py '$input_file' "$name" '$out_html' '$out_html.files_path' '$chrom_col' '$offset_col'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 # '$pval_col'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 #python /opt/galaxy/tools/rgenetics/rgManQQ.py /opt/galaxy/test-data/smallwgaP.xls rgManQQtest1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 #/opt/galaxy/test-data/rgtestouts/rgManQQ/rgManQQtest1.html /opt/galaxy/test-data/rgtestouts/rgManQQ 1 2 5,7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 echo "Testing $TOOL using $CL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 python $TOOLPATH/$TOOL.py "$INPATH/smallwgaP.xls" $NPRE ${OUTPATH}/${NPRE}.html $OUTPATH 1 2 7 0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 TOOL="rgfakePhe"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 PSSCRIPT="$OUTPATH/script_file"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 echo "{'pN':'normtest','pT':'rnorm','pP':\"{'Mean':'100', 'SD':'10'}\"}" > $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 echo "{'pN':'cattest','pT':'cat','pP':\"{'values':'red,green,blue'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 echo "{'pN':'uniftest','pT':'$f.series.phetype','pP':\"{'low':'1','hi':'100'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 echo "{'pN':'gammatest','pT':'rgamma','pP':\"{'Alpha':'1', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 echo "{'pN':'poissontest','pT':'poisson','pP':\"{'lamb':'1.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 echo "{'pN':'exptest','pT':'exponential','pP':\"{'Mean':'100.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 echo "{'pN':'weibtest','pT':'weibull','pP':\"{'Alpha':'1.0', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 python $TOOLPATH/$TOOL.py ${INPATH}/tinywga $NPRE $NPRE.pphe $OUTPATH $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 # <command interpreter="python">rgfakePhe.py '$infile1.extra_files_path/$infile1.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 # "$title1" '$ppheout' '$ppheout.files_path' '$script_file'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 TOOL="rgQC"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 python $TOOLPATH/$TOOL.py -i "$INPATH/tinywga" -o $NPRE -s ${OUTPATH}/${NPRE}.html -p $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 # rgQC.py -i '$input_file.extra_files_path/$input_file.metadata.base_name' -o "$out_prefix"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 # -s '$html_file' -p '$html_file.files_path'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 TOOL="rgGRR"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 CMD="python $TOOLPATH/$TOOL.py "$INPATH/tinywga" "tinywga" $OUTPATH/${NPRE}.html $OUTPATH "$NPRE" 100 6 true"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 echo "doing $CMD"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 $CMD
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 # rgGRR.py $i.extra_files_path/$i.metadata.base_name "$i.metadata.base_name"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 #'$out_file1' '$out_file1.files_path' "$title" '$n' '$Z' '$force'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 TOOL="rgLDIndep"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 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
88 #rgLDIndep.py '$input_file.extra_files_path' '$input_file.metadata.base_name' '$title' '$mind'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 # '$geno' '$hwe' '$maf' '$mef' '$mei' '$out_file1'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 #'$out_file1.files_path' '$window' '$step' '$r2'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 TOOL="rgPedSub"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 PSSCRIPT="$OUTPATH/pedsub.script"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 echo "title~~~~$NPRE" > $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 echo "output1~~~~${OUTPATH}/${NPRE}.lped" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 echo "outformat~~~~lped" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 echo "basename~~~~tinywga" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 echo "inped~~~~$INPATH/tinywga" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 echo "outdir~~~~$OUTPATH" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 echo "region~~~~" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 echo "relfilter~~~~all" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 echo "rslist~~~~rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 python $TOOLPATH/$TOOL.py $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 rm -rf $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 TOOL="rgfakePhe"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 PSSCRIPT="$OUTPATH/script_file"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 echo "{'pN':'normtest','pT':'rnorm','pP':\"{'Mean':'100', 'SD':'10'}\"}" > $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 echo "{'pN':'cattest','pT':'cat','pP':\"{'values':'red,green,blue'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 echo "{'pN':'uniftest','pT':'$f.series.phetype','pP':\"{'low':'1','hi':'100'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 echo "{'pN':'gammatest','pT':'rgamma','pP':\"{'Alpha':'1', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 echo "{'pN':'poissontest','pT':'poisson','pP':\"{'lamb':'1.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 echo "{'pN':'exptest','pT':'exponential','pP':\"{'Mean':'100.0',}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 echo "{'pN':'weibtest','pT':'weibull','pP':\"{'Alpha':'1.0', 'Beta':'0.1'}\"}" >> $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 python $TOOLPATH/$TOOL.py $PSSCRIPT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 echo "Now doing rgclean"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 TOOL="rgClean"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 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
130 # rgClean.py '$input_file.extra_files_path' '$input_file.metadata.base_name' '$title' '$mind'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 # '$geno' '$hwe' '$maf' '$mef' '$mei' '$out_file1' '$out_file1.files_path'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 # '${GALAXY_DATA_INDEX_DIR}/rg/bin/plink' '$relfilter' '$afffilter' '$sexfilter' '$fixaff'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 echo "Now doing rgEigPCA"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 TOOL="rgEigPCA"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 OUTPATH="$OROOT/$TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 python $TOOLPATH/$TOOL.py "$INPATH/tinywga" "$NPRE" ${OUTPATH}/${NPRE}.html $OUTPATH 4 2 2 2 $OUTPATH/rgEigPCAtest1.txt
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140 # rgEigPCA.py "$i.extra_files_path/$i.metadata.base_name" "$title" "$out_file1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141 # "$out_file1.files_path" "$k" "$m" "$t" "$s" "$pca"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 TOOL="rgfakePed"
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 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
147 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
148 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
149 #rgfakePed.py --title '$title1'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
150 # -o '$out_file1' -p '$out_file1.extra_files_path' -c '$ncases' -n '$ntotal'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
151 # -s '$nsnp' -w '$lowmaf' -v '$missingValue' -l '$outFormat'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
152 # -d '$mafdist' -m '$missingRate' -M '$mendelRate'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
153 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
154 TOOL="rgHaploView"
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 mkdir $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
158 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
159 python $TOOLPATH/$TOOL.py "" "rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
160 "$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
161 # rgHaploView.py "$ucsc_region" "$rslist" "$title" "$output1"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
162 # "$lhistIn.extra_files_path" "$lhistIn.metadata.base_name"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
163 # "$minmaf" "$maxdist" "$ldtype" "$hires" "$memsize" "$output1.files_path"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
164 # "$infoTrack" "$tagr2" "$hmpanel" ${GALAXY_DATA_INDEX_DIR}/rg/bin/haploview.jar
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
165 # note these statistical tools do NOT generate composite outputs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
166 TOOL="rgGLM"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
167 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
168 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
169 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
170 python $TOOLPATH/$TOOL.py "$INPATH/tinywga" $INPATH/tinywga "$NPRE" "c1" "" $OUTPATH/${NPRE}_GLM.xls \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
171 $OUTPATH/${NPRE}_GLM_log.txt "tinywga" "" "" "" 1 1 0 0 $OUTPATH/${NPRE}_GLM_topTable.gff
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
172 ## rgGLM.py '$i.extra_files_path/$i.metadata.base_name' '$phef.extra_files_path/$phef.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
173 ## "$title1" '$predvar' '$covar' '$out_file1' '$logf' '$dbkey' '$i.metadata.base_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
174 ## '$inter' '$cond' '$gender' '$mind' '$geno' '$maf' '$logistic' '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
175 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
176 TOOL="rgTDT"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
177 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
178 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
179 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
180 python $TOOLPATH/$TOOL.py -i "$INPATH/tinywga" -o "$NPRE" -r $OUTPATH/${NPRE}_TDT.xls \
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
181 -l $OUTPATH/${NPRE}_TDT_log.txt -g $OUTPATH/${NPRE}_TDT_topTable.gff
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
182 ## rgTDT.py -i '$infile.extra_files_path/$infile.metadata.base_name' -o '$title'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
183 ## -r '$out_file1' -l '$logf' -x '${GALAXY_DATA_INDEX_DIR}/rg/bin/plink'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
184 ## -g '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
185 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
186 TOOL="rgCaCo"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
187 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
188 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
189 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
190 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
191 # rgCaCo.py '$i.extra_files_path/$i.metadata.base_name' "$name" '$out_file1' '$logf' '$logf.files_path' '$gffout'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
192 #
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
193 TOOL="rgQQ"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
194 echo "now doing $TOOL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
195 NPRE=${TOOL}test1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
196 OUTPATH=$NORMALOROOT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
197 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
198 echo "running $TOOL using $CL"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
199 python $TOOLPATH/$TOOL.py "$INPATH/tinywga.pphe" "$NPRE" 1 3 $OUTPATH/$NPRE.pdf 8 10 "false" 1 $OUTPATH
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
200 # rgQQ.py "$input1" "$name" $sample "$cols" $allqq $height $width $log $allqq.id $__new_file_path__
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
201 #