diff wrapper.sh @ 94:e39176ccddc8 draft

Uploaded
author davidvanzessen
date Tue, 07 Jun 2016 08:39:08 -0400
parents b869a126e2c4
children a66eb1c5374c
line wrap: on
line diff
--- a/wrapper.sh	Tue Jun 07 04:45:50 2016 -0400
+++ b/wrapper.sh	Tue Jun 07 08:39:08 2016 -0400
@@ -104,7 +104,7 @@
 mkdir $outdir/sequence_overview
 
 #Rscript $dir/sequence_overview.r $outdir/identified_genes.txt $PWD/sequences.txt $outdir/merged.txt $outdir/sequence_overview $classes $outdir/hotspot_analysis_sum.txt 2>&1
-Rscript $dir/sequence_overview.r $outdir/before_unique_filter.txt $outdir/sequence_overview $classes $outdir/hotspot_analysis_sum.txt 2>&1
+Rscript $dir/sequence_overview.r $outdir/before_unique_filter.txt $outdir/merged.txt $outdir/sequence_overview $classes $outdir/hotspot_analysis_sum.txt 2>&1
 
 echo "<table border='1'>" > $outdir/base_overview.html
 
@@ -135,7 +135,7 @@
 
 	echo "---------------- $func table ----------------"
 	
-	cat $outdir/mutations_${func}.txt $outdir/hotspot_analysis_${func}.txt > $outdir/result.txt
+	cat $outdir/mutations_${func}.txt $outdir/hotspot_analysis_${func}.txt > $outdir/data_${func}.txt
 
 	echo "<table border='1' width='100%'><caption><h3>${func} table</h3></caption>" >> $output
 	echo "<tr><th>info</th>" >> $output
@@ -157,13 +157,14 @@
 		else
 			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>${unx}/${uny} (${unz}%)</td><td>${allx}/${ally} (${allz}%)</td></tr>" >> $output
 		fi
-	done < $outdir/result.txt
-
+	done < $outdir/data_${func}.txt
+	echo "</table>" >> $output
+	#echo "<a href='data_${func}.txt'>Download data</a>" >> $output
 done
 
 echo "---------------- download links ----------------"
 
-echo "</table>" >> $output
+
 echo "<a href='unmatched.txt'>unmatched</a><br />" >> $output
 echo "<a href='motif_per_seq.txt'>motif per sequence</a><br />" >> $output
 echo "<a href='merged.txt'>all data</a><br />" >> $output