comparison wrapper.sh @ 3:275ab5175fd6 draft

Uploaded
author davidvanzessen
date Thu, 27 Oct 2016 09:40:45 -0400
parents e85fec274cde
children 477e95b098fd
comparison
equal deleted inserted replaced
2:e85fec274cde 3:275ab5175fd6
258 echo "<tr><td>$name</td><td>${cax}/${cay} (${caz}%)</td><td>${ca1x}/${ca1y} (${ca1z}%)</td><td>${ca2x}/${ca2y} (${ca2z}%)</td><td>${cgx}/${cgy} (${cgz}%)</td><td>${cg1x}/${cg1y} (${cg1z}%)</td><td>${cg2x}/${cg2y} (${cg2z}%)</td><td>${cg3x}/${cg3y} (${cg3z}%)</td><td>${cg4x}/${cg4y} (${cg4z}%)</td><td>${cmx}/${cmy} (${cmz}%)</td><td>${allx}/${ally} (${allz}%)</td><td>${unx}/${uny} (${unz}%)</td></tr>" >> $output 258 echo "<tr><td>$name</td><td>${cax}/${cay} (${caz}%)</td><td>${ca1x}/${ca1y} (${ca1z}%)</td><td>${ca2x}/${ca2y} (${ca2z}%)</td><td>${cgx}/${cgy} (${cgz}%)</td><td>${cg1x}/${cg1y} (${cg1z}%)</td><td>${cg2x}/${cg2y} (${cg2z}%)</td><td>${cg3x}/${cg3y} (${cg3z}%)</td><td>${cg4x}/${cg4y} (${cg4z}%)</td><td>${cmx}/${cmy} (${cmz}%)</td><td>${allx}/${ally} (${allz}%)</td><td>${unx}/${uny} (${unz}%)</td></tr>" >> $output
259 fi 259 fi
260 done < $outdir/data_${func}.txt 260 done < $outdir/data_${func}.txt
261 261
262 else 262 else
263 tmp=`cat $outdir/unmatched_${func}_n.txt` 263 tmp=`cat $outdir/all_${func}_n.txt`
264 echo "<th><a href='matched_all_${func}.txt'>all (N = $tmp)</a></th>" >> $output 264 echo "<th><a href='matched_all_${func}.txt'>all (N = $tmp)</a></th>" >> $output
265 265
266 while IFS=, read name cax cay caz ca1x ca1y ca1z ca2x ca2y ca2z cgx cgy cgz cg1x cg1y cg1z cg2x cg2y cg2z cg3x cg3y cg3z cg4x cg4y cg4z cmx cmy cmz unx uny unz allx ally allz 266 while IFS=, read name cax cay caz ca1x ca1y ca1z ca2x ca2y ca2z cgx cgy cgz cg1x cg1y cg1z cg2x cg2y cg2z cg3x cg3y cg3z cg4x cg4y cg4z cmx cmy cmz unx uny unz allx ally allz
267 do 267 do
268 if [ "$name" == "FR R/S (ratio)" ] || [ "$name" == "CDR R/S (ratio)" ] ; then #meh 268 if [ "$name" == "FR R/S (ratio)" ] || [ "$name" == "CDR R/S (ratio)" ] ; then #meh
269 echo "<tr><td>$name</td><td>${unx}/${uny}</td></tr>" >> $output 269 echo "<tr><td>$name</td><td>${allx}/${ally}</td></tr>" >> $output
270 elif [ "$name" == "Median of Number of Mutations (%)" ] ; then 270 elif [ "$name" == "Median of Number of Mutations (%)" ] ; then
271 echo "<tr><td>$name</td><td>${unz}%</td></tr>" >> $output 271 echo "<tr><td>$name</td><td>${allz}%</td></tr>" >> $output
272 else 272 else
273 echo "<tr><td>$name</td><td>${unx}/${uny} (${unz}%)</td></tr>" >> $output 273 echo "<tr><td>$name</td><td>${allx}/${ally} (${allz}%)</td></tr>" >> $output
274 fi 274 fi
275 done < $outdir/data_${func}.txt 275 done < $outdir/data_${func}.txt
276 276
277 fi 277 fi
278 echo "</table>" >> $output 278 echo "</table>" >> $output