Subsections


Compare Immune Repertoires

Using the Compare Immune Repertoires we can compare properties such as diversity and similarity of the immune repertoires characterized by Immune Repertoire Analysis.

To run Compare Immune Repertoires go to the Toolbox and select:

        Tools | QIAseq Panel Expert Tools (Image qiaseq_expert_folder_closed_16_n_p) | QIAseq Immune Repertoire Expert Tools (Image immune_rept_folderclosed_16_n_p) | Compare Immune Repertoires (Image immune_rept_compare_16_n_p)

This opens a dialog where Immune Repertoires (Image immune_rept_table_16_n_p) generated by the Immune Repertoire Analysis tool to be compared can be selected.

Output from Compare Immune Repertoires tool

Three outputs can be generated by the Compare Immune Repertoires tool

  1. Compare Immune Repertoires Report A report containing comparisons of repertoire summary statistics, diversity, etc.

  2. Heat map A heat map with similar repertoires clustered.

  3. Similarity table A table showing the similarity of the immune repertoires for each pair of samples.

Compare Immune Repertoires Report

The Compare Immune Repertoires report contains the following sections:

  1. Summary A summary table showing the total number of clonotyped reads from each sample, as well as the clonotyped reads from each TCR chain for each sample.

  2. Diversity indices A table showing the diversity metrics Observed diversity, Extrapolated diversity (chaoE) and Extrapolated Shannon-Wiener index (chaoE) described in 8.2.1. Additionally, the table contains the diversity metric Interpolated to lowest sample diversity, showing an estimate of the diversity if all the samples had the same number of clonotyped reads as the sample with the lowest number of clonotyped reads.

  3. Scatter plots If exactly two repertoires are compared, this section will contain four scatter plots with the expressions of clonotypes in the two samples. The scatter plots are divided by TCR chain. Only clonotypes shared between the two repertoires will be represented in the plot. A distinct clonotype is characterized by its chain, V-segment, J-segment and CDR3 sequence. The expression of each clonotype is shown as its relative frequency, i.e. the clonotypes count divided by the total of counts for the chain.

    Image compare_immune_scatter_plot
    Figure 8.5: Scatter plot with clonotype expression for a particular TCR chain.

  4. Rarefaction A plot with rarefaction curves, also known as species accumulation curve. It shows the expected number of different clonotypes discovered as a function of the total number of clonotyped reads for a particular chain. The curve is extrapolated to twice the total number of clonotyped reads for the most abundant sample.

    Image compare_immune_rarefaction
    Figure 8.6: Rarefaction or species accumulation curve.

  5. CDR3 length A table comparing summary statistics of the CDR3 lengths for the different samples for each TCR chain. The CDR3 lengths are also shown in a box plot.

  6. V and J usage A total of eight bar plots showing the V and J segment usage for each sample and for each TCR chain.

Heat map

For each pair of samples the weighted Jaccard similarity between the two is computed. Let $ X_i$, $ Y_i$ denote the relative frequencies of the $ i$'th clonotype in the first and second sample respectively. The weighted Jaccard similarity is defined as,

$\displaystyle J(X,Y) = \frac{\sum_{i=1}^n \operatorname{min}(X_i, Y_i)}{\sum_{i=1}^n \operatorname{max}(X_i, Y_i)}$ (8.1)

The weighted Jaccard distance is defined as,

$\displaystyle D(X,Y) = 1-J(X,Y)$ (8.2)

Based on the the Jaccard distance a heat map is created with the samples clustered hierarchically.

Similarity table

A table showing the Jaccard similarity (eq. 8.1) between each pair of samples.