Tumor antigens play a crucial role in guiding therapeutic development. Some are tumor-specific (i.e. neoantigens), such as somatic single nucleotide variants (SNVs), structural variants (SVs), and cancer-testis antigens (CTAs) while others are tumor-associated. Unfortunately, several factors, including tumor heterogeneity, complicate the effective targeting of these tumor antigens. Here, we introduce TAHP (Tumor Antigen Heterogeneity Profiler), a tool to turn single-cell VCFs and gene count matrices into intratumoral heterogeneity insights.
Tumors are composed of complex cell populations consisting of several subpopulations (subclones) with distinct genotypes and transcriptional phenotypes. Strategies targeting tumor antigens with the highest population prevalence (i.e. clonal or near-clonal) intuitively seem ideal, but deciphering the complicated subclonal architecture within a tumor with the generally available bulk DNA and RNA sequencing can prove challenging. Bioinformatic tools exist to aid in estimating somatic variant cellular prevalence (i.e. clonality) using bulk DNA sequencing (e.g. Sequenza and CNVKit), but estimating cell-level transcriptional activity cannot be done reliably from bulk RNA sequencing.
To better understand why, let’s imagine a scenario where we have gene-level count data from a tumor generated using standard bulk RNA sequencing. We peruse the data and notice one of our favorite CTAs has elevated expression relative to our expectation. Unfortunately, with bulk sequencing, each cell’s contribution to the transcriptional profile is conflated into a single observation and one cannot tell whether a singular tumor cell is transcribing a seemingly infinite amount of that CTA or if every tumor cell is expressing your CTA of interest. The truth likely lies somewhere in between these extremes, but bulk RNA sequencing fails to establish where.
Single-cell RNA sequencing (scRNA-seq) provides the resolution required to deconvolute cellular expression patterns, but most scRNA-seq protocols utilize Illumina-based short-read sequencing and only sequence the (5’ or 3’) end of genes. The resulting gene counts provide unprecedented insights into tumor biology on a cellular level, but this limits our ability to interrogate sequence-level variation within gene bodies. This limitation prevents the use of short-read scRNA-seq to estimate the tumor heterogeneity of most tumor antigens (e.g. single nucleotide variants, fusions, insertions, or deletions). A small but growing class of assays is extending the utility of single-cell data through the utilization of long read sequencing. To address this, we created a tool to quickly turn scLRRNA-seq (single-cell long-read RNA-seq) VCFs and gene count matrices into an improved understanding of intratumoral heterogeneity. TAHP can be found at github.com/pirl-unc/tahp.
Installation
TAHP requires both Conda and Singularity/Apptainer for installation.
Users can install and run TAHP by running the following commands:
git clone <https://github.com>:pirl-unc/tahp.git; cd tahp; conda env create -f environment.yml -y; conda activate tahp; singularity exec docker://spvensko/tahp_data:latest sh -c “cp -r /refs .; cp -r /test_data .”
This command will:
Clone the TAHP repo locally
Create the
tahpConda environmentActivate the
tahpConda environmentDownload the relevant references files and test data
After initial installation, users can run TAHP by activating the tahp environment and running the ./tahp command.
Demonstration and Outputs
To demonstrate TAHP’s utility in estimating tumor antigen heterogeneity, we’re running it on a primary melanoma sample from GSE212945 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE212945), a dataset generated for Shiau et al., 2023 (https://www.nature.com/articles/s41467-023-39813-7). The original analysis by Shiau et al. focused on better understanding the tumor microenvironment (TME), but we will be focusing on expression patterns of tumor antigens within the tumor cells.
We’ll specifically be using sample GSM6564304 by running the following command (more information regarding inputs and parameters can be found below):
./tahp -s tahp_demo_sample -g test_data/sclrRNA-seq/GSM6564304.gene_exps -h HLA-A*02:01 -v test_data/sclrRNA-seq/GSM6564304.vcf.gz
TAHP will produce both an outputs/ and a plots/ directory. Users will find a TSV in the outputs/ directory named tahp_demo_sample.pmhc_coverage.tsv containing high scoring pMHCs observed within the sample’s tumor cells along with information regarding tumor cell coverage. Here’s an example of that output:
Let’s break down what this file’s telling us. The columns are:

The pmhc column contains a variety of information related to potentially targetable pMHCs. Let’s consider an example:
PRAME/TLAKFSPYL/HLA-A*02:01/Affinity:12nM/Presentation:91.8%The above /-delimited line is jam packed with information. Let’s split it up into its components and go over them:
PRAME - The target generating the listed pMHC. This could be a SNV, CTA, or ERV.
TLAKFSPYL - The peptide portion of the pMHC
HLA-A*02:01 - The allele portion of the pMHC
Affinity:12nM - The pMHC binding affinity (per MHCflurry)
Presentation:91.8% - The pMHC presentation score (per MHCflurry)
The target identifier varies by antigen source. CTAs have their gene symbol (e.g. PRAME) listed, SNVs entries are described as chr:position:ref:alt (So the pMHC in the table above is a C → A substitution at the 55,726,929th position of the twelfth chromosome. ERVs are described by the chromosome and position of their MetID from their gEVE classification.
Next, let’s consider the contents of the file. Each row represents a pMHC derived from either a CTA, ERV, or SNV. The CTA and ERV entries must be expressed at a pre-defined expression threshold (user adjustable — see section below on inputs) across a pre-defined proportion of tumor cells (also user adjustable — see section below on inputs). SNV entries must have a cellular population allelic frequency < 90% (following methods of Shiau et al., 2023) and must have a genotype in at least 50% of cells. SNVs are not explicitly filtered using a specific expression threshold; however, we make the assumption that a SNV reliably detected using single-cell RNA sequencing must be conditionally sufficiently expressed for detection.
Notably, the order of rows is meaningful! The first row is the pMHC with the highest tumor cell population expression coverage and the subsequent rows are pMHCs that, as determined through a greedy algorithm, cover the highest proportion of tumor cells not already covered by a previously chosen pMHC(s). So, looking at our table above, we see that the SNV chr12.55726929.C.A covers the most tumor cells at 299 (56.1%) of tumor cells. Next, the ERV chr21.27791519 is listed as it increases the number of covered tumor cells by 49 additional cells (9.2%) for a total of 348 tumor cells covered. This algorithm continues until it has included every high scoring pMHC observed in the sample.
The information in this table is visualized in plots/tahp_demo_sample.tumor_het.pmhcs.pdf (Figure 1):
Figure 1. pMHC coverage across tumor cells in GSM6564304.
A network graph of pMHC combinations (Figure 2) is also produced as plots/tahp_demo_sample.tumor_antigen_network.pdf. The nodes in the network graph are functionally pMHC barcodes in which each potential pMHC is presented as either 1 if observed within a cell and 0 if not observed. For example, let’s consider a scenario where only two pMHCs are observed, one from the CTA PRAME and another from CTA MAGEA4. In that case,
A node of tumor cells expressing both PRAME and MAGEA4 would have a barcode of
11A node of tumor cells expressing PRAME but NOT MAGEA4 would have a barcode of
10A node of tumor cells not expressing PRAME, but instead expressing MAGEA4 would have a barcode of
01A node of tumor cells expressing neither PRAME nor MAGEA4 would have a barcode of
00
The edges connect nodes that are a hamming distance of 1 apart (in other words, nodes that differ by one position between their barcodes). For example, 11 would be connected to 10 and 01, but not 00.
Figure 2. Network plot of pMHC combinations among tumor cells in GSM8330680.
The Nuts and Bolts
Next, let’s go over the technical stuff. We’ll cover the input parameters first, then cover the algorithm being used.
TAHP can accept the following parameters:
TAHP, by default, has two required inputs — a scRNA-seq generated gene count matrix and a single-cell VCF. Generating this matrix and VCF (e.g. filtering criteria, normalization techniques, etc.) is up to the user (and users should be cognizant or how different inputs will influence the resulting outputs). Notably, our demonstration gene matrix and VCF were generated through scNanoGPS‘s reporter_expression.py and reporter_snv.py scripts using a modified GTF file amended with ERV coordinates from the gEVE database (https://pmc.ncbi.nlm.nih.gov/articles/PMC4885607/).
The gene matrix should be a TSV where rows are gene symbols and columns (after the initial descriptive columns) are cell barcodes. An example is available in the TAHP github repository and a minimal example is shown below.

The VCF should resemble a multisample VCF where each sample corresponds to a cell barcode:

The TAHP algorithm can be broken down into a few discrete steps:
Availability
The TAHP repository, including reference files, test data, and a Dockerfile describing dependencies, can be found at github.com/pirl-unc/tahp.
Caveats and Considerations
As mentioned previously, TAHP is a relatively simple tool and, as a result, there are several things users should keep in mind while running it:
TAHP does not sanity check input gene matrices
TAHP will consume gene matrices and VCFs as provided without performing any QC, applying any corrections, or normalizing any data. As a result, it’s possible users may get unexpected results if high quality data are not provided. For example, a gene matrix and VCF from a low read sequencing run will result in severe underestimation of pMHC coverage.
Tumor cell coverage is likely an underestimate
One feature of single-cell RNA sequencing data is the general sparsity observed with respect to gene-level expression. This, along with the old adage “absence of evidence is not evidence of absence”, suggests there are likely many cases where TAHP is reporting no expression of a specific CTA, ERV, or SNV in a specific cell when they may in fact be expressed within that cell, but missed for technical reasons.
pMHC characterizations aren’t perfect
Tools used to estimate a peptide’s binding affinity to a given HLA molecule, such as MHCflurry and NetMHCpan, can provide fantastic insights used to guide wet-lab validation experiments. Still, these estimated binding affinities should only be used as a guide and not as evidence that a peptide can be expected to be presented and immunogenic.
Future Directions
Single-cell RNA sequencing has become increasingly popular since its introduction due to the sheer number of questions it can address where bulk sequencing simply isn’t applicable. We hope that TAHP serves as a springboard for further investigation into tumor heterogeneity.
TAHP is being released as a BASH script which offers both pros (portability, ease of use) and cons (limited error detection and mitigation). It also requires users to generate inputs with scNanoGPS which can be an involved process. We expect TAHP to be implemented as part of an end-to-end RAFT workflow (similar to LENS) in the near future.
Thanks for your interest in TAHP! Feel free to leave any comments or questions you may have.






