" >> $outputFile
cat $dir/naive_cdr3_char.htm >> $outputFile
@@ -278,36 +280,67 @@
#hasJunctionData="$(if head -n 1 $inputFile | grep -qE '3V.REGION.trimmed.nt.nb'; then echo 'Yes'; else echo 'No'; fi)"
#if [[ "$hasJunctionData" == "Yes" ]] ; then
-if [ -a "$outputDir/junctionAnalysisProd_mean.csv" ] ; then
+if [ -a "$outputDir/junctionAnalysisProd_mean_wD.txt" ] ; then
echo "
" >> $outputFile
echo "
" >> $outputFile
+ echo "
Unique rearrangements with a V, D and J gene assigned
" >> $outputFile
echo "
Productive meanDonor | Number of sequences | V.DEL | P1 | N1 | P2 | DEL.D | D.DEL | P3 | N2 | P4 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
- while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
+ while read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
do
echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELD | $DDEL | $P3 | $N2 | $P4 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
- done < $outputDir/junctionAnalysisProd_mean.csv
+ done < $outputDir/junctionAnalysisProd_mean_wD.txt
echo "
" >> $outputFile
echo "
Unproductive meanDonor | Number of sequences | V.DEL | P1 | N1 | P2 | DEL.D | D.DEL | P3 | N2 | P4 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
- while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
+ while read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
do
echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELD | $DDEL | $P3 | $N2 | $P4 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
- done < $outputDir/junctionAnalysisUnProd_mean.csv
+ done < $outputDir/junctionAnalysisUnProd_mean_wD.txt
echo "
" >> $outputFile
echo "
Productive medianDonor | Number of sequences | V.DEL | P1 | N1 | P2 | DEL.D | D.DEL | P3 | N2 | P4 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
- while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
+ while read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
do
echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELD | $DDEL | $P3 | $N2 | $P4 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
- done < $outputDir/junctionAnalysisProd_median.csv
+ done < $outputDir/junctionAnalysisProd_median_wD.txt
echo "
" >> $outputFile
echo "
Unproductive medianDonor | Number of sequences | V.DEL | P1 | N1 | P2 | DEL.D | D.DEL | P3 | N2 | P4 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
- while IFS=, read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
+ while read Sample unique VDEL P1 N1 P2 DELD DDEL P3 N2 P4 DELJ TotalDel TotalN TotalP median
do
echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELD | $DDEL | $P3 | $N2 | $P4 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
- done < $outputDir/junctionAnalysisUnProd_median.csv
+ done < $outputDir/junctionAnalysisUnProd_median_wD.txt
+ echo "
" >> $outputFile
+
+ # again for no-d
+ echo "
Unique rearrangements with only a V and J gene assigned
" >> $outputFile
+ echo "
Productive meanDonor | Number of sequences | V.DEL | P1 | N | P2 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
+ while read Sample unique VDEL P1 N1 P2 DELJ TotalDel TotalN TotalP median
+ do
+ echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
+ done < $outputDir/junctionAnalysisProd_mean_nD.txt
+ echo "
" >> $outputFile
+
+ echo "
Unproductive meanDonor | Number of sequences | V.DEL | P1 | N | P2 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
+ while read Sample unique VDEL P1 N1 P2 DELJ TotalDel TotalN TotalP median
+ do
+ echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
+ done < $outputDir/junctionAnalysisUnProd_mean_nD.txt
+ echo "
" >> $outputFile
+
+ echo "
Productive medianDonor | Number of sequences | V.DEL | P1 | N | P2 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
+ while read Sample unique VDEL P1 N1 P2 DELJ TotalDel TotalN TotalP median
+ do
+ echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
+ done < $outputDir/junctionAnalysisProd_median_nD.txt
+ echo "
" >> $outputFile
+
+ echo "
Unproductive medianDonor | Number of sequences | V.DEL | P1 | N | P2 | DEL.J | Total.Del | Total.N | Total.P | Median.CDR3 |
" >> $outputFile
+ while read Sample unique VDEL P1 N1 P2 DELJ TotalDel TotalN TotalP median
+ do
+ echo "$Sample | $unique | $VDEL | $P1 | $N1 | $P2 | $DELJ | $TotalDel | $TotalN | $TotalP | $median |
" >> $outputFile
+ done < $outputDir/junctionAnalysisUnProd_median_nD.txt
echo "
" >> $outputFile
cat $dir/naive_junction.htm >> $outputFile
@@ -319,9 +352,7 @@
echo "
" >> $outputFile
echo "Description | Link |
" >> $outputFile
echo "The filtered dataset | Download |
" >> $outputFile
-echo "The dataset used to calculate clonality score (Unique based on clonaltype, $clonalType) | Download |
" >> $outputFile
-
-echo "The dataset used to generate the CDR3 length frequency graph | Download |
" >> $outputFile
+echo "Gene frequencies |
" >> $outputFile
echo "The dataset used to generate the distribution of V gene families graph | Download |
" >> $outputFile
if [[ "$useD" == "true" ]] ; then
@@ -333,19 +364,38 @@
echo "The dataset used to generate the relative frequency of D gene usage graph | Download |
" >> $outputFile
fi
echo "The dataset used to generate the relative frequency of J gene usage graph | Download |
" >> $outputFile
+echo "The dataset used to generate the relative frequency of the D reading frame graph | Download |
" >> $outputFile
+
+echo "CDR3 Characteristics |
" >> $outputFile
+echo "The dataset used to generate the CDR3 length frequency graph | Download |
" >> $outputFile
echo "The dataset used to generate the Amino Acid Composition in the CDR3 graph | Download |
" >> $outputFile
+echo "Heatmaps |
" >> $outputFile
for sample in $samples; do
if [[ "$useD" == "true" ]] ; then
- echo "The data used to generate the VD heatmap for $sample. | Download |
" >> $outputFile
+ echo "The data used to generate the VD heatmap for $sample. | Download |
" >> $outputFile
fi
- echo "The data used to generate the VJ heatmap for $sample. | Download |
" >> $outputFile
+ echo "The data used to generate the VJ heatmap for $sample. | Download |
" >> $outputFile
if [[ "$useD" == "true" ]] ; then
- echo "The data used to generate the DJ heatmap for $sample. | Download |
" >> $outputFile
+ echo "The data used to generate the DJ heatmap for $sample. | Download |
" >> $outputFile
fi
done
-echo "A frequency count of V Gene + J Gene + CDR3 | Download |
" >> $outputFile
+echo "Circos |
" >> $outputFile
+for sample in $samples; do
+ if [[ "$useD" == "true" ]] ; then
+ echo "The data used to generate the VD Circos plots for $sample. | Download |
" >> $outputFile
+ fi
+ echo "The data used to generate the VJ Circos plots for $sample. | Download |
" >> $outputFile
+ if [[ "$useD" == "true" ]] ; then
+ echo "The data used to generate the DJ Circos plots for $sample. | Download |
" >> $outputFile
+ fi
+done
+
+#echo "A frequency count of V Gene + J Gene + CDR3 | Download |
" >> $outputFile
+
+echo "Clonality |
" >> $outputFile
+echo "The dataset used to calculate clonality score (Unique based on clonaltype, $clonalType) | Download |
" >> $outputFile
echo "
" >> $outputFile