# HG changeset patch # User davidvanzessen # Date 1424781036 18000 # Node ID 0940835d259c06c0aecdcd2e26421d5cbd2c705f # Parent b662fdc7eff4d21c273c957b4b84dbbc9cb2faea Uploaded diff -r b662fdc7eff4 -r 0940835d259c wrapper.sh --- a/wrapper.sh Mon Feb 23 10:37:28 2015 -0500 +++ b/wrapper.sh Tue Feb 24 07:30:36 2015 -0500 @@ -186,6 +186,7 @@ echo "" >> "$html" echo "" >> "$html" echo "" >> "$html" + scatterplot_tab="
" while read locus j_segment v_segment cut_off_value all one two three one_two one_three two_three do if [ "$locus" != "$oldLocus" ] ; then @@ -219,23 +220,26 @@ fi if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then - echo "
" >> "$html" + echo "" >> "$html" else echo "" >> "$html" fi if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then - echo "" >> "$html" + echo "" >> "$html" else echo "" >> "$html" fi if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then - echo "" >> "$html" + echo "" >> "$html" else echo "" >> "$html" fi echo "" >> "$html" - oldLocus="$locus" + oldLocus="$locus" + if [ "${cut_off_value}" == "0" ] ; then + scatterplot_tab="${scatterplot_tab}
" + fi done < tmp.txt echo "
Ig/TCR gene rearrangement typeProximal gene segmentDistal gene segmentCut off valueNumber of sequences ${patient}_AllNumber of sequences_$sample1Number of sequences_$sample2Number of sequences_$sample3Number of sequences_${sample1}_${sample2}Number of sequences_${sample1}_${sample3}Number of sequences_${sample2}_${sample3}
${one_two}${one_two}${one_two}${one_three}${one_three}${one_three}${two_three}${two_three}${two_three}
" >> "$html" echo "
" >> "$html" @@ -243,6 +247,7 @@ echo "
" >> "$html" echo "
" >> "$html" echo "
" >> "$html" + echo "${scatterplot_tab}" >> "$html" tail -n+2 ${patient}_reads.txt | sed "s/>//" > tmp.txt echo "
" >> "$html" @@ -250,6 +255,7 @@ echo "" >> "$html" echo "" >> "$html" echo "" >> "$html" + scatterplot_tab="
" while read locus j_segment v_segment cut_off_value all one two three one_two one_three two_three do if [ "$locus" != "$oldLocus" ] ; then @@ -283,23 +289,26 @@ fi if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then - echo "
" >> "$html" + echo "" >> "$html" else echo "" >> "$html" fi if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then - echo "" >> "$html" + echo "" >> "$html" else echo "" >> "$html" fi if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then - echo "" >> "$html" + echo "" >> "$html" else echo "" >> "$html" fi echo "" >> "$html" oldLocus="$locus" + if [ "${cut_off_value}" == "0" ] ; then + scatterplot_tab="${scatterplot_tab}
" + fi done < tmp.txt echo "
Ig/TCR gene rearrangement typeProximal gene segmentDistal gene segmentCut off valueNumber of sequences ${patient}_AllNumber of sequences_$sample1Number of sequences_$sample2Number of sequences_$sample3Number of sequences_${sample1}_${sample2}Number of sequences_${sample1}_${sample3}Number of sequences_${sample2}_${sample3}
${one_two}${one_two}${one_two}${one_three}${one_three}${one_three}${two_three}${two_three}${two_three}
" >> "$html" echo "
" >> "$html" @@ -307,6 +316,7 @@ echo "
" >> "$html" echo "
" >> "$html" echo "
" >> "$html" + echo "${scatterplot_tab}
" >> "$html" echo "" >> "$html" echo "" >> "$html" echo "" >> "$html" @@ -319,3 +329,4 @@ echo "" >> "$html" echo "" >> "$html" +