# 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 "Ig/TCR gene rearrangement type | Proximal gene segment | Distal gene segment | Cut off value | Number of sequences ${patient}_All | Number of sequences_$sample1 | Read Count $sample1 | Number of sequences_$sample2 | Read Count $sample2 | Number of sequences_$sample3 | Read Count $sample3 | " >> "$html"
+ echo "Ig/TCR gene rearrangement type | Proximal gene segment | Distal gene segment | Cut off value | Number of sequences ${patient}_All | Number of sequences_$sample1 | Number of sequences_$sample2 | Number of sequences_$sample3 | Number of sequences_${sample1}_${sample2} | Number of sequences_${sample1}_${sample3} | Number of sequences_${sample2}_${sample3} | " >> "$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 "$one | " >> "$html"
else
echo "$one | " >> "$html"
- fi
- echo "$read_count1 | " >> "$html"
+ fi
if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
echo "$two | " >> "$html"
else
echo "$two | " >> "$html"
fi
- echo "$read_count2 | " >> "$html"
if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then
echo "$three | " >> "$html"
else
echo "$three | " >> "$html"
fi
- echo "$read_count3 | " >> "$html"
+
+ if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
+ echo "${one_two} | " >> "$html"
+ else
+ echo "${one_two} | " >> "$html"
+ fi
+ if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
+ echo "${one_three} | " >> "$html"
+ else
+ echo "${one_three} | " >> "$html"
+ fi
+ if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
+ echo "${two_three} | " >> "$html"
+ else
+ echo "${two_three} | " >> "$html"
+ fi
+
echo " " >> "$html"
oldLocus="$locus"
done < tmp.txt
@@ -234,9 +248,9 @@
echo "" >> "$html"
echo " " >> "$html"
echo "" >> "$html"
- echo "Ig/TCR gene rearrangement type | Proximal gene segment | Distal gene segment | Cut off value | Number of sequences ${patient}_All | Number of sequences_$sample1 | Read Count $sample1 | Number of sequences_$sample2 | Read Count $sample2 | Number of sequences_$sample3 | Read Count $sample3 | " >> "$html"
+ echo "Ig/TCR gene rearrangement type | Proximal gene segment | Distal gene segment | Cut off value | Number of sequences ${patient}_All | Number of sequences_$sample1 | Number of sequences_$sample2 | Number of sequences_$sample3 | Number of sequences_${sample1}_${sample2} | Number of sequences_${sample1}_${sample3} | Number of sequences_${sample2}_${sample3} | " >> "$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 "$one | " >> "$html"
fi
- echo "$read_count1 | " >> "$html"
if [ "$two" != "0" ] && [ "$cut_off_value" != "0" ] ; then
echo "$two | " >> "$html"
else
echo "$two | " >> "$html"
fi
- echo "$read_count2 | " >> "$html"
if [ "$three" != "0" ] && [ "$cut_off_value" != "0" ] ; then
echo "$three | " >> "$html"
else
echo "$three | " >> "$html"
fi
- echo "$read_count3 | " >> "$html"
+
+ if [ "${one_two}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
+ echo "${one_two} | " >> "$html"
+ else
+ echo "${one_two} | " >> "$html"
+ fi
+ if [ "${one_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
+ echo "${one_three} | " >> "$html"
+ else
+ echo "${one_three} | " >> "$html"
+ fi
+ if [ "${two_three}" != "0" ] && [ "$cut_off_value" != "0" ] ; then
+ echo "${two_three} | " >> "$html"
+ else
+ echo "${two_three} | " >> "$html"
+ fi
+
echo " " >> "$html"
oldLocus="$locus"
done < tmp.txt
|
|