# HG changeset patch # User davidvanzessen # Date 1424704994 18000 # Node ID d980e2493657ca456f460aa95a0117f32ab28a4a # Parent d938aef605899d709a0af35f047d23dd7c2dc41e Uploaded diff -r d938aef60589 -r d980e2493657 wrapper.sh --- a/wrapper.sh Mon Feb 23 10:22:59 2015 -0500 +++ b/wrapper.sh Mon Feb 23 10:23:14 2015 -0500 @@ -184,9 +184,9 @@ echo "
" >> "$html" echo "
" >> "$html" echo "" >> "$html" - echo "" >> "$html" + echo "" >> "$html" echo "" >> "$html" - while read locus j_segment v_segment cut_off_value all one read_count1 two read_count2 three read_count3 + 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 echo "" >> "$html" @@ -206,20 +206,34 @@ echo "" >> "$html" else echo "" >> "$html" - fi - echo "" >> "$html" + fi if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then echo "" >> "$html" else echo "" >> "$html" fi - echo "" >> "$html" if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then echo "" >> "$html" else echo "" >> "$html" fi - echo "" >> "$html" + + if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then + echo "" >> "$html" + else + echo "" >> "$html" + fi + if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then + echo "" >> "$html" + else + echo "" >> "$html" + fi + if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then + echo "" >> "$html" + else + echo "" >> "$html" + fi + echo "" >> "$html" oldLocus="$locus" done < tmp.txt @@ -234,9 +248,9 @@ echo "
" >> "$html" echo "
Ig/TCR gene rearrangement typeProximal gene segmentDistal gene segmentCut off valueNumber of sequences ${patient}_AllNumber of sequences_$sample1Read Count $sample1Number of sequences_$sample2Read Count $sample2Number of sequences_$sample3Read Count $sample3
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$one$read_count1$two$two$read_count2$three$three$read_count3${one_two}${one_two}${one_three}${one_three}${two_three}${two_three}
" >> "$html" echo "" >> "$html" - echo "" >> "$html" + echo "" >> "$html" echo "" >> "$html" - while read locus j_segment v_segment cut_off_value all one read_count1 two read_count2 three read_count3 + 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 echo "" >> "$html" @@ -257,19 +271,33 @@ else echo "" >> "$html" fi - echo "" >> "$html" if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then echo "" >> "$html" else echo "" >> "$html" fi - echo "" >> "$html" if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then echo "" >> "$html" else echo "" >> "$html" fi - echo "" >> "$html" + + if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then + echo "" >> "$html" + else + echo "" >> "$html" + fi + if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then + echo "" >> "$html" + else + echo "" >> "$html" + fi + if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then + echo "" >> "$html" + else + echo "" >> "$html" + fi + echo "" >> "$html" oldLocus="$locus" done < tmp.txt
Ig/TCR gene rearrangement typeProximal gene segmentDistal gene segmentCut off valueNumber of sequences ${patient}_AllNumber of sequences_$sample1Read Count $sample1Number of sequences_$sample2Read Count $sample2Number of sequences_$sample3Read Count $sample3
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$read_count1$two$two$read_count2$three$three$read_count3${one_two}${one_two}${one_three}${one_three}${two_three}${two_three}