" >> $outputFile
- else
- echo "
" >> $outputFile
- fi
-
- for sample in $samples; do
- echo "${clonality_method}"
-
- echo "
" >> $outputFile
-
- if [[ "${clonality_method}" == "boyd" ]] ; then
- clonalityScore="$(cat $outputDir/lymphclon_clonality_${sample}.txt)"
- echo "Clonality Score: $clonalityScore " >> $outputFile
- fi
-
- #replicate,reads,squared
- echo "Replicate ID Number of Sequences " >> $outputFile
- while read replicate reads squared
- do
- echo "$replicate $reads " >> $outputFile
- done < $outputDir/ReplicateReads_$sample.txt
-
- #sum of reads and reads squared
- while read readsSum squaredSum
- do
- echo "Sum $readsSum " >> $outputFile
- done < $outputDir/ReplicateSumReads_$sample.txt
-
- echo " " >> $outputFile
-
- #overview
- echo "Number of replicates containing the coincidence Number of sequences shared between replicates " >> $outputFile
- while read type count weight weightedCount
- do
- if [[ "$type" -eq "1" ]]; then
- echo "$type $count " >> $outputFile
- else
- echo "$type $count " >> $outputFile
- fi
- done < $outputDir/ClonalityOverView_$sample.txt
- echo "
" >> $outputFile
- done
-
- cat $dir/naive_clonality.htm >> $outputFile
-
- echo "
" >> $outputFile
-fi
-
-#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_wD.txt" ] ; then
- echo "
" >> $outputFile
- echo "
" >> $outputFile
-
- echo "
Unique rearrangements with a V, D and J gene assigned
" >> $outputFile
- echo "
Productive mean Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
- 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_wD.txt
- echo "
" >> $outputFile
-
- echo "
Unproductive mean Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
- 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 - " >> $outputFile
- done < $outputDir/junctionAnalysisUnProd_mean_wD.txt
- echo "
" >> $outputFile
-
- echo "
Productive median Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
- 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_wD.txt
- echo "
" >> $outputFile
-
- echo "
Unproductive median Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
- 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 - " >> $outputFile
- 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 mean Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 mean Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 - " >> $outputFile
- done < $outputDir/junctionAnalysisUnProd_mean_nD.txt
- echo "
" >> $outputFile
-
- echo "
Productive median Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 median Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 - " >> $outputFile
- done < $outputDir/junctionAnalysisUnProd_median_nD.txt
- echo "
" >> $outputFile
-
- cat $dir/naive_junction.htm >> $outputFile
-
- echo "
" >> $outputFile
-fi
-
-echo "
" >> $outputFile
-echo "
" >> $outputFile
-echo "Description Link " >> $outputFile
-echo "The filtered dataset 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
- echo "The dataset used to generate the distribution of D gene families graph Download " >> $outputFile
-fi
-
-echo "The dataset used to generate the relative frequency of V gene usage graph Download " >> $outputFile
-if [[ "$useD" == "true" ]] ; then
- 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
- fi
- 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
- fi
-done
-
-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 "Sequences that are present in more than one replicate Download " >> $outputFile
-
-echo "
" >> $outputFile
-
-cat $dir/naive_downloads.htm >> $outputFile
-
-echo "
" >> $outputFile
+#!/bin/bash
+
+inputFile=$1
+outputDir=$3
+outputFile=$3/index.html #$2
+clonalType=$4
+species=$5
+locus=$6
+filterproductive=$7
+clonality_method=$8
+
+dir="$(cd "$(dirname "$0")" && pwd)"
+useD="false"
+if grep -q "$species.*${locus}D" "$dir/genes.txt" ; then
+ echo "species D region in reference db"
+ useD="true"
+fi
+echo "$species"
+if [[ "$species" == *"custom"* ]] ; then
+ loci=(${locus//;/ })
+ useD="true"
+ echo "${loci[@]}"
+ if [[ "${#loci[@]}" -eq "2" ]] ; then
+ useD="false"
+ fi
+fi
+mkdir $3
+cp $dir/genes.txt $outputDir
+Rscript --verbose $dir/RScript.r $inputFile $outputDir $outputDir $clonalType "$species" "$locus" $filterproductive ${clonality_method} 2>&1
+cp $dir/tabber.js $outputDir
+cp $dir/style.css $outputDir
+cp $dir/script.js $outputDir
+cp $dir/jquery-1.11.0.min.js $outputDir
+cp $dir/pure-min.css $outputDir
+cp $dir/IGH_junctie_analyse.png $outputDir
+samples=`cat $outputDir/samples.txt`
+
+echo "
Tip: Open it in a new tab (middle mouse button or right mouse button -> 'open in new tab' on the link above) " > $2
+echo "" >> $2
+echo "Donor/Replicate All Productive Unique Productive Unproductive Unique Unproductive " >> $2
+while IFS=, read sample all productive perc_prod productive_unique perc_prod_un unproductive perc_unprod unproductive_unique perc_unprod_un
+ do
+ echo "$sample " >> $2
+ echo "$all " >> $2
+ if [[ "$productive" != "0" ]] ; then
+ echo "$productive (${perc_prod}%) " >> $2
+ echo "$productive_unique (${perc_prod_un}%) " >> $2
+ echo "$unproductive (${perc_unprod}%) " >> $2
+ echo "$unproductive_unique (${perc_unprod_un}%) " >> $2
+ else
+ echo "No productive sequences! " >> $2
+ fi
+done < $outputDir/productive_counting.txt
+echo "
" >> $2
+echo "Table showing the number and percentage of (unique) productive and unproductive sequences per donor and per replicate. " >> $2
+echo "The definition of unique sequences is based on the clonal type definition filter setting chosen. " >> $2
+echo " " >> $2
+
+echo "
Report on:" >> $outputFile
+
+mkdir $outputDir/circos
+cp -R $dir/circos/* $outputDir/circos/
+
+USECIRCOS="no"
+path_to_circos=$(which circos)
+if [ -x "$path_to_circos" ]; then
+ USECIRCOS="yes"
+fi
+
+echo "Using Circos: $USECIRCOS"
+sed -i "s%DATA_DIR%$outputDir/circos%" $outputDir/circos/circos.conf
+for sample in $samples; do #output the samples to a file and create the circos plots with the R script output
+ echo " $sample" >> $outputFile
+
+ if [[ "$USECIRCOS" != "yes" ]]; then
+ continue
+ fi
+
+ circos_file="$outputDir/${sample}_VJ_circos.txt"
+ sed -i -- 's%/%:%g' $circos_file
+ echo -e -n "labels$(cat ${circos_file})" > ${circos_file}
+ echo "Circos tools command:"
+ echo "cat \"${circos_file}\" | parse-table -configfile $dir/circos/parse-table.conf 2>&1 | make-conf -dir $outputDir/circos/"
+ cat "${circos_file}" | parse-table -configfile $dir/circos/parse-table.conf 2>&1 | make-conf -dir $outputDir/circos/
+
+ echo "Circos command:"
+ echo "circos -conf $outputDir/circos/circos.conf 2>&1"
+ circos -conf $outputDir/circos/circos.conf 2>&1
+ mv $outputDir/circos/circos.png $outputDir/circosVJ_${sample}.png
+ mv $outputDir/circos/circos.svg $outputDir/circosVJ_${sample}.svg
+
+
+ if [[ "$useD" == "true" ]] ; then
+ circos_file="$outputDir/${sample}_VD_circos.txt"
+ sed -i -- 's%/%:%g' $circos_file
+ echo -e -n "labels$(cat ${circos_file})" > ${circos_file}
+ cat "${circos_file}" | parse-table -configfile $dir/circos/parse-table.conf 2>&1 | make-conf -dir $outputDir/circos/
+ sed -i -- 's%/%:%g' $outputDir/circos/cells.txt
+ circos -conf $outputDir/circos/circos.conf 2>&1
+ mv $outputDir/circos/circos.png $outputDir/circosVD_${sample}.png
+ mv $outputDir/circos/circos.svg $outputDir/circosVD_${sample}.svg
+
+ circos_file="$outputDir/${sample}_DJ_circos.txt"
+ sed -i -- 's%/%:%g' $circos_file
+ echo -e -n "labels$(cat ${circos_file})" > ${circos_file}
+ cat "${circos_file}" | parse-table -configfile $dir/circos/parse-table.conf 2>&1 | make-conf -dir $outputDir/circos/
+ sed -i -- 's%/%:%g' $outputDir/circos/cells.txt
+ circos -conf $outputDir/circos/circos.conf 2>&1
+ mv $outputDir/circos/circos.png $outputDir/circosDJ_${sample}.png
+ mv $outputDir/circos/circos.svg $outputDir/circosDJ_${sample}.svg
+ fi
+done
+echo " " >> $outputFile
+echo "
" >> $outputFile
+echo "" >> $outputFile
+echo "" >> $outputFile
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+
+
+echo "
" >> $outputFile
+if [[ "$useD" == "true" ]] ; then
+ echo "
" >> $outputFile
+fi
+echo "
" >> $outputFile
+if [[ "$useD" == "true" ]] ; then
+ echo "
" >> $outputFile
+fi
+echo "
" >> $outputFile
+
+echo "
" >> $outputFile
+
+cat $dir/naive_gene_freq.htm >> $outputFile
+
+echo "
" >> $outputFile
+
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+
+
+echo "
" >> $outputFile
+echo "Donor Median CDR3 Length " >> $outputFile
+while read Sample median
+do
+ echo "$Sample $median " >> $outputFile
+done < $outputDir/AAMedianBySample.txt
+echo "
" >> $outputFile
+
+cat $dir/naive_cdr3_char.htm >> $outputFile
+
+echo "
" >> $outputFile
+
+#Heatmaps
+
+count=1
+echo "
" >> $outputFile
+for sample in $samples; do
+ echo "
" >> $outputFile
+ if [[ "$useD" == "true" ]] ; then
+ echo " " >> $outputFile
+ fi
+ echo " " >> $outputFile
+ if [[ "$useD" == "true" ]] ; then
+ echo " " >> $outputFile
+ fi
+ echo "
" >> $outputFile
+ count=$((count+1))
+done
+
+cat $dir/naive_heatmap.htm >> $outputFile
+
+echo "
" >> $outputFile
+
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+
+cat $dir/naive_compare.htm >> $outputFile
+
+echo "
" >> $outputFile
+
+
+#circos
+
+if [[ "$USECIRCOS" == "yes" ]]; then
+
+ echo "
" >> $outputFile
+ for sample in $samples; do
+ echo "
" >> $outputFile
+ if [[ "$useD" == "true" ]] ; then
+ echo "V-D " >> $outputFile
+ fi
+ echo "V-J " >> $outputFile
+ if [[ "$useD" == "true" ]] ; then
+ echo "D-J " >> $outputFile
+ fi
+ echo "
" >> $outputFile
+ count=$((count+1))
+ done
+
+ cat $dir/naive_circos.htm >> $outputFile
+
+ echo "
" >> $outputFile
+fi
+#echo "
" >> $outputFile
+
+hasReplicateColumn="$(if head -n 1 $inputFile | grep -q 'Replicate'; then echo 'Yes'; else echo 'No'; fi)"
+echo "$hasReplicateColumn"
+#if its a 'new' merged file with replicate info
+if [[ "$hasReplicateColumn" == "Yes" && "${clonality_method}" != "none" ]] ; then
+ if [[ "${clonality_method}" == "boyd" ]] ; then
+ echo "
" >> $outputFile
+ else
+ echo "
" >> $outputFile
+ fi
+
+ for sample in $samples; do
+ echo "${clonality_method}"
+
+ echo "
" >> $outputFile
+
+ if [[ "${clonality_method}" == "boyd" ]] ; then
+ clonalityScore="$(cat $outputDir/lymphclon_clonality_${sample}.txt)"
+ echo "Clonality Score: $clonalityScore " >> $outputFile
+ fi
+
+ #replicate,reads,squared
+ echo "Replicate ID Number of Sequences " >> $outputFile
+ while read replicate reads squared
+ do
+ echo "$replicate $reads " >> $outputFile
+ done < $outputDir/ReplicateReads_$sample.txt
+
+ #sum of reads and reads squared
+ while read readsSum squaredSum
+ do
+ echo "Sum $readsSum " >> $outputFile
+ done < $outputDir/ReplicateSumReads_$sample.txt
+
+ echo " " >> $outputFile
+
+ #overview
+ echo "Number of replicates containing the coincidence Number of sequences shared between replicates " >> $outputFile
+ while read type count weight weightedCount
+ do
+ if [[ "$type" -eq "1" ]]; then
+ echo "$type $count " >> $outputFile
+ else
+ echo "$type $count " >> $outputFile
+ fi
+ done < $outputDir/ClonalityOverView_$sample.txt
+ echo "
" >> $outputFile
+ done
+
+ cat $dir/naive_clonality.htm >> $outputFile
+
+ echo "
" >> $outputFile
+fi
+
+#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_wD.txt" ] ; then
+ echo "
" >> $outputFile
+ echo "
" >> $outputFile
+
+ echo "
Unique rearrangements with a V, D and J gene assigned
" >> $outputFile
+ echo "
Productive mean Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
+ 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_wD.txt
+ echo "
" >> $outputFile
+
+ echo "
Unproductive mean Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
+ 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 - " >> $outputFile
+ done < $outputDir/junctionAnalysisUnProd_mean_wD.txt
+ echo "
" >> $outputFile
+
+ echo "
Productive median Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
+ 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_wD.txt
+ echo "
" >> $outputFile
+
+ echo "
Unproductive median Donor Number of sequences V.DEL P1 N1 P2 DEL.D D.DEL P3 N2 P4 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $outputFile
+ 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 - " >> $outputFile
+ 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 mean Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 mean Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 - " >> $outputFile
+ done < $outputDir/junctionAnalysisUnProd_mean_nD.txt
+ echo "
" >> $outputFile
+
+ echo "
Productive median Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 median Donor Number of sequences V.DEL P1 N P2 DEL.J Total.Del Total.N Total.P CDR3.Length " >> $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 - " >> $outputFile
+ done < $outputDir/junctionAnalysisUnProd_median_nD.txt
+ echo "
" >> $outputFile
+
+ cat $dir/naive_junction.htm >> $outputFile
+
+ echo "
" >> $outputFile
+fi
+
+echo "
" >> $outputFile
+echo "
" >> $outputFile
+echo "Description Link " >> $outputFile
+echo "The filtered dataset 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
+ echo "The dataset used to generate the distribution of D gene families graph Download " >> $outputFile
+fi
+
+echo "The dataset used to generate the relative frequency of V gene usage graph Download " >> $outputFile
+if [[ "$useD" == "true" ]] ; then
+ 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
+ fi
+ 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
+ fi
+done
+
+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 "Sequences that are present in more than one replicate Download " >> $outputFile
+
+echo "
" >> $outputFile
+
+cat $dir/naive_downloads.htm >> $outputFile
+
+echo "
" >> $outputFile