Interpreting the LENS reports
The LENS reports
LENS writes its report outputs to the project’s
outputs/lens/<DATASET>/<PAT_NAME>/<RUN_NAME>/ directory.
Base report
The base report (*.base_report.tsv) is the broadest LENS report tier.
It contains the candidate pMHC rows produced by the main workflow before the
review-evidence step adds downstream annotations used for final review.
The base report should be read as the biological candidate table emitted by the core workflow. It typically contains peptide identity, presenting allele, antigen source, and source-specific fields such as variant coordinates, splice coordinates, fusion breakpoints, or locus identifiers. Those columns describe what candidate was found, not how much confidence the review pipeline assigns to the supporting evidence.
In practice, this means the base report is useful when you want to:
inspect the widest set of candidates emitted by the core workflow
troubleshoot whether candidates were generated before review-based filtering
compare pre-review output against the later report tiers
The base report should generally be treated as an intermediate analytical report, not the primary report for downstream interpretation.
Reviewed evidence report
The reviewed evidence report (*.reviewed_report.tsv) is the main LENS
report for routine review. It takes the base report candidates and augments
them with outputs from the review-evidence workflow.
The reviewed evidence report keeps the same candidate rows as the base report
and adds review annotations for each row using candidate_id as the match
key.
The reviewed evidence workflow also produces sidecar files – published next
to the report rather than merged into it – that provide more detail than the
joined report alone. These files are typically written alongside the reviewed
report in the corresponding
outputs/lens/<DATASET>/<PAT_NAME>/<RUN_NAME>/ directory:
File |
Contents |
|---|---|
|
|
|
|
Evidence JSON files |
Per-candidate structured evidence used to derive the review flags and scores. |
The review process considers both generic alignment-quality evidence and antigen-specific evidence. Across sources, the generic checks include:
support read count
support ratio
support-read mapping quality
strand bias
read-end bias
duplicate fraction
soft-clipping enrichment
mismatch burden
repeat or low-mappability context
for variant candidates, excess support in matched normal DNA
Source-specific checks are then added on top of that:
SPLICE: junction split-read support, anchor length, PSI-like abundance, coding-kmer support, and intron-versus-flank coverage patternsFUSION: split reads, spanning pairs, and breakpoint dispersionERV: locus specificity, multimapping risk, normal-tissue expression, mTEC expression, and open reading frame coverageVIRUS: genomic breadth, uniqueness, and abundanceCTA/SELF: abundance, transcript coverage, number of detectable normal tissues, normal-tissue expression, and mTEC expression
These checks feed the alignment_confidence_score and review flags that
ultimately determine final_tier. For the complete thresholds, penalties,
and source-by-source defaults, see Evidence review specifications.
This is typically the best report to use when you want to evaluate candidates biologically, because it includes the main review-oriented annotations and prioritization context used by LENS for interpretation.
Use this report when you want to:
review the standard LENS output for a patient or cohort
inspect review-related columns such as final tiering, reasons, and supporting annotations
perform most downstream filtering, ranking, and report interpretation
High confidence report
The high confidence report (*.high_confidence.tsv) is a stricter report
tier derived from the reviewed evidence report. It retains a more conservative
subset of candidates after additional filtering.
In the current workflow, LENS first applies a source-aware high-confidence
filter to the reviewed report. It then keeps only rows whose final_tier is
PASS.
This means the high confidence report is stricter than simply taking the reviewed evidence report and sorting by score. A row must both survive the source-specific high-confidence rules and have a passing review tier.
The source-aware high-confidence rules currently behave as follows:
Source |
High-confidence rule |
|---|---|
|
Keep only rows with evidence linking the splice event to a somatic variant. By default this means either |
|
Remove rows with evidence of normal-tissue or mTEC expression. By default, ERV rows are kept only when both |
|
Keep only rows with a non-missing value in one of the configured oncogenic-virus metadata columns. |
|
Remove rows whose |
|
These rows are not source-filtered by the high-confidence command itself, but they still must have |
|
These rows are not source-filtered by the high-confidence command itself, but they still must have |
|
These rows are not source-filtered by the high-confidence command itself, but they still must have |
Use this report when you want to:
Focus on a narrower set of higher-confidence candidates. |
Reduce the breadth of the reviewed report for shortlist-oriented review. |
Compare a conservative subset against the broader reviewed evidence report. |
How the tiers relate
The three report tiers are best understood as a progression:
The base report captures broad workflow output before review-evidence enrichment.
The reviewed evidence report adds the main review annotations and is usually the primary report for interpretation.
The high confidence report applies a stricter downstream filter to create a narrower candidate set, including both source-specific high-confidence rules and a requirement that
final_tierbePASS.
For most users, the reviewed evidence report is the best starting point. The base report is most useful for troubleshooting and provenance, while the high confidence report is most useful for focused follow-up review.
Tip
The interactive RAFT Output Viewer (launched with raft generate-reports)
is the best way to explore the LENS report, with pMHC cards, filtering,
visualizations, and QC dashboards. See Using the report viewer for
details.
This page provides a surface-level guide to reading and using the LENS report. For an exhaustive column-by-column reference, see Report column reference.
What the report contains
Each row in a LENS report represents one observed pMHC (peptide-MHC complex) candidate from a specific genomic or transcriptomic origin. A single report combines candidates from all seven antigen sources:
Somatic Nucleotide Variants (SNVs)
Somatic Insertion and Deletion Variants (InDels)
Splice Variants
Fusion Events
Endogenous Retroviruses (ERVs)
Viruses
Cancer-testis Antigens (CTAs)
Important
LENS predicts MHC class I pMHCs only. Every binding predictor in the workflow (MHCflurry, and optionally NetMHCpan, NetMHCstabpan, and HLApollo) is a class I predictor, peptides are generated at class I lengths (8-11 residues), and the reported alleles are HLA-A, HLA-B, and HLA-C. No class II epitopes and no CD4+ T cell targets appear in these reports.
The same peptide and presenting allele combination can appear more than once in the same report when it is supported by multiple biological origins, such as different transcripts, different variants, or different source events.
Because the report combines candidates from several antigen sources, many
columns only apply to one source. For example, fusion breakpoint columns are
populated only for fusion-derived pMHCs, and InDel allele columns are populated
only for InDel-derived pMHCs. Antigen-source-specific columns are generally
easy to spot because they begin with a source prefix such as erv_,
fusion_, or cta_.
Identifier columns
The following columns identify the pMHC row itself:
Column |
Description |
|---|---|
|
Stable row identifier used to join report rows, review scores, and review evidence JSON. |
|
The HLA allele presenting the peptide. |
|
The peptide sequence. |
|
The source of the antigen ( |
Prioritization columns
The following columns are the most useful for ranking and triaging candidates:
Tool-specific columns
Column |
Description |
|---|---|
|
Binding affinity (nM) from MHCflurry. Lower values indicate stronger binding. |
|
MHCflurry binding affinity percentile. Lower percentile indicates stronger predicted binding. |
|
MHCflurry processing score. Higher values indicate stronger predicted processing support. |
|
MHCflurry presentation score. Higher values indicate stronger predicted presentation support. |
|
MHCflurry presentation percentile. Lower percentile indicates stronger predicted presentation. |
|
Vaxrank-derived score when Vaxrank ranking is enabled. |
|
Vaxrank-derived rank when Vaxrank ranking is enabled. |
RNA quantification columns
Column |
Description |
|---|---|
|
Number of RNA tumor reads covering the genomic origin of the candidate. |
|
Number of RNA tumor reads covering the genomic origin and peptide coding sequence. |
|
Fraction of covering RNA reads that also support the peptide coding sequence. |
|
Number of primary-alignment RNA reads covering the genomic origin and peptide coding sequence. |
Composite scores
Column |
Description |
|---|---|
|
Priority score computed from MHCflurry binding affinity with CCF-aware ranking when available. |
|
Priority score computed from MHCflurry binding affinity without using CCF. |
|
Priority score computed from MHCflurry binding affinity using RNA primary alignments for quantification and CCF when available. |
|
Priority score computed from MHCflurry binding affinity using RNA primary alignments for quantification without using CCF. |
|
Maximum available priority score across the priority-score columns for that row. |
|
Recommended priority score for cross-source ranking (higher is better). |
|
Which scoring model was used for |
Alignment evidence
Column |
Description |
|---|---|
|
Review score summarizing alignment and read-level confidence evidence. It starts at 100 and subtracts configured penalties for each triggered review flag. |
|
Review tier assigned to the candidate ( |
|
Semicolon-delimited review flags that contributed to the review score or tier. Can be empty. |
The priority_score_recommended column provides a single score for ranking
pMHCs across all antigen sources. It is selected from the available priority
score columns for that row, which are calculated from binding affinity,
allele-specific transcript abundance, and cancer cell fraction (CCF, when
available).
Note
Custom scoring schemes can also be applied in the web-based report
generator launched with raft generate-reports.
Agretopicity and CCF-aware priority scores are most meaningful for variant
sources where a matched wildtype sequence and tumor context are available.
For non-variant sources, and for variant rows without a matched wildtype
peptide or CCF input, these fields can be missing or marked as not computed.
This is why priority_score_recommended exists: it selects the best
available score for each row regardless of source.
The review-oriented columns provide a separate confidence layer on top of the
biological ranking fields. alignment_confidence_score, final_tier, and
reasons summarize the extracted support evidence used to assess whether the
candidate looks well supported in the underlying sequencing and annotation
context.
For the prioritization formula, see the Frequently asked questions.
Antigen-specific columns
Each antigen source has its own set of relevant biological columns in addition to the shared identifier and prioritization fields above. Source-specific columns usually start with the source prefix.
Common antigen columns
These columns recur across multiple antigen sources. They may not be populated for every source, but they are common enough that it is useful to interpret them as a shared group before looking at source-specific fields.
Column |
Description |
|---|---|
|
Ensembl transcript identifier used for the peptide-producing transcript when transcript-level assignment is available. |
|
Local nucleotide sequence context around the antigen-generating event. |
|
Local peptide sequence context around the reported peptide. |
|
Upstream amino-acid sequence adjacent to the peptide. |
|
Downstream amino-acid sequence adjacent to the peptide. |
|
Transcript abundance for the peptide-producing transcript or locus when transcript quantification is available. |
Somatic SNVs
Column |
Description |
|---|---|
|
Alternate allele for the coding SNV. |
|
Reference allele for the coding SNV. |
|
Variant class for the row; SNV rows are typically |
|
Variant callers that detected the SNV. |
|
Predicted effect of the SNV on the encoded protein. |
|
Genomic coordinates of the coding SNV. |
|
Position of the SNV within the transcript coding sequence. |
|
Mutated amino acid position within the peptide sequence. |
|
Variant allele fraction for the SNV. |
|
Cancer cell fraction estimate for the SNV. |
Somatic InDels
Column |
Description |
|---|---|
|
Alternate allele for the coding InDel. |
|
Reference allele for the coding InDel. |
|
Variant class for the row, such as |
|
Variant callers that detected the InDel. |
|
Predicted effect of the InDel on the encoded protein. |
|
Genomic coordinates of the coding InDel. |
|
Indicates whether the translated reference open reading frame is valid for interpretation. |
|
Variant allele fraction for the InDel. |
|
Cancer cell fraction estimate for the InDel. |
Splice variants
Column |
Description |
|---|---|
|
Coordinates of the splice event represented by the row. |
|
Annotation describing the splice event. |
|
Coding nucleotide sequence translated to produce the peptide. |
|
Indicates whether the splice event has linked nearby somatic variant evidence when this column is present. |
Fusions
Column |
Description |
|---|---|
|
Identifier for the fusion event. |
|
Annotation summary associated with the fusion call. |
|
Fusion class reported for the event. |
|
Gene symbol for the left fusion partner. |
|
Genomic breakpoint for the left fusion partner. |
|
Transcript identifier for the left fusion partner. |
|
Gene symbol for the right fusion partner. |
|
Genomic breakpoint for the right fusion partner. |
|
Transcript identifier for the right fusion partner. |
ERVs
Column |
Description |
|---|---|
|
Identifier for the ERV open reading frame producing the peptide. |
|
hERVQuant region associated with the ERV ORF when available. |
|
gEVE-derived annotation for the ERV ORF. |
|
Transcript abundance for the ERV open reading frame. |
|
Tumor RNA counts per million for the ERV locus. |
|
Normal RNA counts per million for the ERV locus. |
|
Tumor-versus-normal expression delta for the ERV locus. |
|
Indicates whether the ERV ORF is expressed in mTEC reference data. |
|
Indicates whether the ERV ORF is expressed in normal tissue reference data. |
Viruses
Column |
Description |
|---|---|
|
Identifies the viral source associated with the peptide. |
|
Provides local peptide sequence context for the viral candidate. |
Cancer-testis antigens and self-antigens
Column |
Description |
|---|---|
|
Identifies the transcript used for the CTA/self peptide row. |
|
Lists all annotated transcripts that can encode the peptide. |
|
Lists all annotated gene identifiers that can encode the peptide. |
|
Lists all annotated gene symbols that can encode the peptide. |
Working through a candidate
The report gives you numbers; deciding what they mean takes a pass through a single row. Below is a real SNV candidate from a melanoma patient, with the columns that carry the decision.
Column |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(empty) |
|
|
Reading it in the order the decisions actually get made:
Is it real? final_tier is PASS with an
alignment_confidence_score of 100 and no entries in reasons, so no
review flag fired. The underlying evidence is strong on both axes: 124 of 284
tumor DNA reads carry the variant (variant_vaf 0.437), and 68 RNA reads
carry it, so this is expressed rather than a DNA-only call.
Is it clonal? ccf of 0.780 means roughly four out of five tumor cells
carry the variant. That is high enough to treat as effectively clonal, which
matters because a subclonal target only reaches part of the tumor.
Will it be presented? 102.8 nM is a strong binder, and the 0.201 percentile
rank says it is strong for this allele rather than merely strong in absolute
terms. mhcflurry_agretopicity of 0.329 means the mutant binds roughly three
times better than its wild-type counterpart, so the mutation is doing real work
at the MHC interface rather than riding along on an already-good binder.
Is the peptide-coding sequence actually transcribed? 24 RNA reads cover the
genomic origin with the peptide coding sequence intact, against a gene-level
tpm of 376.7. High gene expression alone would not be enough – the read
count is what ties expression to this specific peptide.
How did the score arise? priority_score_basis records
MHCFLURRY_PRIMARY_ALIGNMENTS_WITH_CCF, so all three terms contributed:
BA = (1000 - 102.8) / 1000 = 0.897
RS = log2(24 + 1) / 8.124 = 0.572 (8.124 = max log2(reads+1) in this report)
CCF = 0.780
S = BA * RS * CCF = 0.400
That reproduces priority_score_recommended exactly. Note that RS is
normalized against the largest read count in this report, which is why the
score ranks candidates within a patient but is not comparable across patients.
Verdict: a clonal, expressed, strong-binding candidate with no review flags
and favorable agretopicity. This is the profile you would advance. The one
thing the report does not tell you is whether QEQEHQLL is synthesizable and
immunogenic – those remain wet-lab questions.
A starting triage workflow
Note
LENS does not ship validated clinical cutoffs, and the thresholds below are not one. They are a defensible starting point for narrowing a report to a reviewable shortlist; the right values for your program depend on your assay, your manufacturing constraints, and how much risk you are willing to carry. Record whatever you settle on, because the report itself will not.
Start from the reviewed report. Open
*.reviewed_report.tsvrather than the base report, so review flags are present. Alternatively start from*.high_confidence.tsv, which has already applied the source rules and thePASSrequirement.Keep ``final_tier`` of ``PASS``. Because
PASSrequires a score of at least 75 and the penalty weights run as high as 40, any single serious flag is disqualifying on its own. Do not silently dropREVIEWrows – read theirreasonsfirst, since some flags matter far more than others for a given program.Check the patient before the candidates. If
b2m_mutationsin*.appm_stats.tsvshows a truncating mutation, orb2m_tpmis near zero, class I presentation may be compromised tumor-wide and no candidate in the report is safe to advance. Likewise, drop candidates whose presenting allele shows loss in*.hla_stats.tsv.Require expression of the peptide itself. A candidate with zero
rna_reads_covering_genomic_origin_with_peptide_cdsis not evidenced as presented, regardless of gene-leveltpm.Apply a binding cutoff. 500 nM is the conventional working threshold and is already applied upstream by
binding_affinity_threshold. Percentile rank (*_aff_perc,*_pres_perc) is generally the better discriminator because it is allele-normalized; a rank at or below 2% is a common choice.Prefer clonal variants. For variant sources, higher
ccfmeans the target reaches more of the tumor. Treat low-CCF candidates as secondary.Collapse duplicates. The same peptide and allele can appear on several rows from different origins. Deduplicate on
peptideandallelebefore counting toward a construct budget, keeping the best-supported row.Rank within the patient, then read the top rows individually. Sort on
priority_score_recommended, but confirmpriority_score_basisis consistent among the rows you are comparing – see the caveat under Prioritization columns. Then work through the survivors as in the walkthrough above.
How much to trust each antigen source
The seven sources are not equally reliable, and the review thresholds encode that. Support minima range from 3 reads at a 0.05 support ratio for SNVs and InDels to 10 reads at a ratio of 0.00001 for CTA and self-antigens. Those minima describe read-level support only – how well the source is curated and whether the peptide is tumor-specific are separate questions, and the ranking below weighs all three. The high-confidence tier adds extra source-specific gates to splice, fusion, ERV, and virus candidates while leaving SNV, InDel, and CTA rows unfiltered.
In practice:
SNVs and InDels rest on the strongest evidence base: a specific somatic variant, matched normal DNA to exclude germline, read-backed phasing, and a matched wild-type peptide for agretopicity.
CTAs come next. The peptide is a non-mutated self sequence, so the target rests entirely on expression restriction rather than on tumor-specific sequence – but the gene list is hand curated rather than taken wholesale from CTDatabase, so the genes themselves are better vetted than a database dump would be. Confirm restriction with
cta_gene_detectable_normal_tissuesand the mTEC columns before committing.Splice and fusion candidates depend on junction-level evidence that is harder to call. Treat them as strong hypotheses and confirm the underlying event orthogonally before committing.
ERV and viral candidates carry the weakest support thresholds and the highest off-target risk. ERVs in particular are computationally predicted, prone to multi-mapping artifacts, and, like CTAs, non-mutated self-like sequence. For these the normal-tissue and mTEC columns (
erv_norm_tissue_p95_tpm,erv_mtec_p95_tpm) are the safety filter, not an optional extra.
Predictions are predictions. Everything in the report is in silico, and binding prediction, expression evidence, and clonality together still do not establish that a peptide is presented on the tumor surface or that it is immunogenic. Mass-spectrometry or functional confirmation remains the standard before clinical commitment.
Understanding missing values
LENS uses explicit values for missing or non-applicable data:
Value |
Meaning |
|---|---|
|
The field does not apply to the candidate’s antigen source or context. |
|
The computation did not run or the required input was unavailable. |
|
A mutation scan ran and did not detect a mutation in the requested gene. |
|
A matched wildtype peptide or sequence could not be identified. |
|
A missing |
|
Legacy or tool-derived missing value. Check the column and antigen source before interpreting. |
LOHHLA annotations
LOHHLA p-values are allele-level annotations. lohhla_allele_loss_status
says why a p-value is present or absent. Only LOH_RESULT_AVAILABLE and
LOH_TESTED_KEPT_ALLELE mean the locus was tested on enough distinguishing
sites (lohhla_num_mismatch_sites, floor set by lohhla_min_mismatch_sites).
INSUFFICIENT_DATA, HOMOZYGOUS_LOCUS_NOT_TESTED, LOCUS_NOT_TESTED,
ALLELE_NOT_IN_LOHHLA_REFERENCE, LOHHLA_FAILED and
ALLELE_NOT_IN_LOHHLA_INPUT all mean the allele’s loss status is unknown.
Missing p-values should not be interpreted as evidence against HLA loss; the
patients with the least usable HLA data are the ones most likely to carry
these statuses. The full table is in Report column reference.
The review sidecars expose the same information at different levels of detail:
review_flags.tsvcontainscandidate_id,source_type,review_flags, andhas_hard_failreview_scores.tsvcontainscandidate_id,alignment_confidence_score,final_tier, andreasonsevidence JSON files contain the structured per-candidate metrics used to derive those flags
The review flags are determined from extracted evidence rather than copied directly from report columns. Common generic flags include:
LOW_SUPPORT_READSwhen the support read count is below the configured minimum for that antigen sourceLOW_SUPPORT_RATIOwhen support divided by support plus baseline reads is too lowLOW_MAPQ_SUPPORTwhen supporting reads have low median mapping qualitySTRAND_BIASwhen support is overly one-sided by strand with statistical supportREAD_END_BIASwhen too many supporting reads occur near read endsDUPLICATE_DOMINATEDwhen duplicate reads account for too much of the supportSOFTCLIP_ENRICHEDwhen support reads are more soft-clipped near the event than baseline readsHIGH_MISMATCH_BURDENwhen support reads show elevated mismatch burdenREPEAT_CONTEXT_RISKwhen the event falls in repeat sequence or low mappabilityNORMAL_DNA_SUPPORT_HIGHwhen SNV or INDEL support is also too strong in normal DNA; this is a hard-fail condition
Source-specific flags add context for particular antigen classes. Examples include:
splice flags such as
JUNCTION_SUPPORT_WEAK,PSI_TOO_LOW, andSPLICE_PEPTIDE_INCONSISTENTfusion flags such as
FUSION_SPLIT_WEAKandBREAKPOINT_DISPERSION_HIGHERV flags such as
ERV_LOCUS_SPECIFICITY_LOWandERV_NORMAL_EXPRESSION_HIGHviral flags such as
VIRAL_BREADTH_LOWandVIRAL_UNIQUENESS_LOWCTA or self-antigen flags such as
CTA_ABUNDANCE_LOWandCTA_NORMAL_TISSUE_BROAD
When the review columns are blank, do not assume the candidate passed review. Blank or missing review annotations can mean:
the field is not applicable to that antigen source
required upstream review inputs were absent
the workflow produced review files but the final report could not be joined back on
candidate_ida review-related step failed or its outputs were not propagated into the final report
Run QC summary
Next to the final report, LENS writes *.run_qc_summary.tsv — a compact,
long-format TSV with section, metric, value, level, and
detail columns. It summarizes:
Report row counts
Candidate ID integrity
Antigen-source counts
Missingness for important report columns
Final-report validation messages
Copy-number completeness (
copy_numbersection): the chromosomes that reached the sequenza seqz, were fitted and were segmented, plus the cellularity and ploidy the fit produced. A fit that rests on part of the genome is otherwise indistinguishable from a clean run by exit status, output presence or its credible interval, so fewer chromosomes than the capture BED lists, or a fitted chromosome without segments, is reported as aWARNING.
Execution trace status is not included in this summary because Nextflow writes
trace/report files after the workflow DAG finishes. Use RAFT project status or
raft generate-reports to inspect task status counts and failed or retried
tasks from outputs/reports/trace*.txt.
Further reading
Report column reference — exhaustive column-by-column documentation for every antigen source
Accessing and reviewing outputs — overview of the full output directory structure
Antigen-specific technical details — default tools, references, and pipeline internals