Evidence review specifications
This page documents the default evidence-review configuration used to produce
the reviewed LENS report, including the thresholds, extraction settings, and
score penalties defined in
/path/to/raft/references/qc/review_scoring_defaults.yaml.
Overview
The reviewed evidence workflow starts from the base report and inspects supporting sequencing evidence for each candidate. It then:
extracts candidate-centered evidence windows from the relevant alignments
computes generic and antigen-specific support metrics
triggers review flags when evidence falls outside configured expectations
subtracts penalties from an initial score of 100
assigns a final tier based on score thresholds and hard-fail rules
These defaults govern the alignment_confidence_score, final_tier, and
reasons fields in the reviewed report and the review sidecars.
Evidence windows
Different antigen sources use different genomic windows during evidence extraction:
Window |
Default |
|---|---|
Primary event window |
100 bp |
Secondary context window |
500 bp |
SNV-specific window |
50 bp |
InDel-specific window |
100 bp |
Splice-specific window |
200 bp |
Fusion-specific window |
500 bp |
Evidence extraction defaults
The extraction layer uses these defaults before any scoring logic is applied:
Setting |
Default |
|---|---|
Minimum mapping quality |
20 |
Minimum base quality |
20 |
Counting mode |
|
Generic evidence metrics
Most antigen sources share a common first-pass review of read support quality. These defaults are designed to detect weak support, alignment artifacts, and normal-DNA carryover.
The generic metric groups are:
Support abundance: minimum support read count and minimum support ratio, with source-specific defaults.
Support quality: median support-read mapping quality and mismatch burden.
Alignment symmetry: strand bias, strand dominance, and read-end bias.
Read composition: duplicate fraction and soft-clipping enrichment.
Mappability/context: low-mappability or repeat-context risk.
Tumor specificity: excessive normal-DNA support for variant candidates.
Default generic thresholds
Metric |
Default |
Notes |
|---|---|---|
Minimum support reads |
3 |
Overridden for some sources below |
Minimum support ratio |
0.05 |
Overridden for some sources below |
Minimum median MAPQ of support reads |
20 |
Triggers |
Maximum Fisher strand-bias p-value |
0.001 |
Used with strand imbalance checks |
Maximum major-strand fraction |
0.9 |
Triggers |
Maximum read-end fraction |
0.4 |
Triggers |
Maximum duplicate fraction |
0.8 |
Triggers |
Soft-clip enrichment delta |
0.25 |
Triggers |
Maximum support-read NM p90 |
8 |
Triggers |
Minimum mappability |
0.5 |
Used for repeat-context risk |
Maximum normal support ratio |
0.02 |
Triggers |
Source-specific support minima
Source |
Min support reads |
Min support ratio |
|---|---|---|
|
3 |
0.05 |
|
3 |
0.05 |
|
5 |
0.05 |
|
5 |
0.02 |
|
10 |
0.0001 |
|
10 |
0.02 |
|
10 |
0.00001 |
Antigen-specific metrics
Splice candidates
Splice review adds junction-specific evidence checks:
split-read support
junction anchor length
PSI-like junction abundance
support-read median MAPQ
coding k-mer support fraction
intron mean depth
intron-to-flank depth ratio
proximity of nearby somatic DNA variants around the splice site
Metric |
Default |
|---|---|
Minimum split reads |
5 |
Minimum anchor bases |
8 |
Minimum PSI-like value |
0.05 |
Minimum median MAPQ of support reads |
20 |
Minimum coding k-mer fraction |
0.1 |
Minimum mean intron depth |
3 |
Minimum intron-to-flank ratio |
0.15 |
DNA splice-site window |
2 bp |
DNA proximal window |
20 bp |
Fusion candidates
Fusion review emphasizes breakpoint support structure:
split-read support
spanning-pair support
breakpoint dispersion
Metric |
Default |
|---|---|
Minimum split reads |
2 |
Minimum spanning pairs |
3 |
Maximum breakpoint dispersion |
10 bp |
ERV candidates
ERV review tries to distinguish locus-specific, tumor-relevant expression from multimapping and broadly normal expression:
support-read MAPQ fraction at MAPQ >= 20
locus specificity
normal-tissue expression
mTEC expression
open reading frame coverage at 1x and 10x
Metric |
Default |
|---|---|
Minimum fraction of support reads with MAPQ >= 20 |
0.3 |
Minimum locus specificity |
0.2 |
Mild normal-tissue TPM threshold |
0.1 |
Strong normal-tissue TPM threshold |
0.5 |
Mild mTEC TPM threshold |
0.2 |
Strong mTEC TPM threshold |
1.0 |
Minimum ORF covered fraction at 1x |
0.6 |
Minimum ORF covered fraction at 10x |
0.2 |
ORF GTF feature used |
|
Virus candidates
Virus review focuses on whether the signal is broad enough, unique enough, and abundant enough to support a true viral source:
genomic breadth of support
support uniqueness
abundance ratio
Metric |
Default |
|---|---|
Minimum breadth fraction |
0.2 |
Minimum uniqueness fraction |
0.7 |
Minimum abundance ratio |
0.00001 |
CTA and self-antigen candidates
CTA/self review emphasizes expression strength and off-tumor risk markers:
abundance ratio
number of detectable normal tissues
transcript coverage fraction
normal-tissue expression
mTEC expression
Metric |
Default |
|---|---|
Minimum abundance ratio |
0.000001 |
Maximum detectable normal tissues |
20 |
Minimum transcript covered fraction at 1x |
0.5 |
Mild normal-tissue TPM threshold |
0.1 |
Strong normal-tissue TPM threshold |
1.0 |
Mild mTEC TPM threshold |
0.1 |
Strong mTEC TPM threshold |
1.0 |
Scoring and tiering
Review scoring begins at 100 and subtracts penalties for each triggered flag. Two flags are hard failures regardless of the remaining score:
NORMAL_DNA_SUPPORT_HIGHSOURCE_NOT_IMPLEMENTED_V1
Default tier thresholds are:
Tier rule |
Default |
|---|---|
|
75 |
|
40 |
By default, this means:
PASS: score >= 75 and no hard-fail flagREVIEW: score >= 40 and < 75 and no hard-fail flagFAIL: score < 40 or any hard-fail flag
Penalty weights
Flag |
Penalty |
Typical meaning |
|---|---|---|
|
35 |
Too few support reads |
|
25 |
Support is too weak relative to baseline |
|
25 |
Support reads align poorly |
|
15 |
Support is too one-sided by strand |
|
15 |
Support clusters near read ends |
|
10 |
Too much support comes from duplicates |
|
15 |
Support reads are unusually soft-clipped |
|
20 |
Support reads carry excess mismatches |
|
10 |
Event falls in difficult sequence context |
|
10 |
Peptide contains cysteine |
|
100 |
Strong evidence also appears in matched normal DNA |
|
60 |
Source-specific review logic not implemented in v1 |
|
30 |
Splice junction support is weak |
|
25 |
Splice motif is inconsistent with expectations |
|
25 |
Junction abundance is too low |
|
20 |
Splice support aligns poorly |
|
30 |
Peptide-level splice support is weak |
|
30 |
Peptide-level and junction evidence disagree |
|
20 |
Intron coverage pattern is weak |
|
30 |
Fusion split-read support is weak |
|
20 |
Fusion support is dominated by spanning pairs |
|
20 |
Fusion breakpoint positions are too dispersed |
|
30 |
ERV support appears too multimapped |
|
25 |
ERV signal is not locus-specific enough |
|
10 |
Mild ERV expression in normal tissues |
|
25 |
Strong ERV expression in normal tissues |
|
10 |
Mild ERV expression in mTEC |
|
20 |
Strong ERV expression in mTEC |
|
25 |
No normal-tissue or mTEC expression value was found for the peptide or its ORF, so normal-expression safety cannot be assessed |
|
20 |
ERV ORF coverage suggests weak coding support |
|
40 |
Viral support is too narrow |
|
25 |
Viral reads are not unique enough |
|
25 |
Viral abundance is too low |
|
20 |
CTA/self abundance is too low |
|
10 |
CTA/self signal appears across many normal tissues |
|
20 |
CTA/self transcript coverage is weak |
|
10 |
Mild CTA/self expression in normal tissues |
|
25 |
Strong CTA/self expression in normal tissues |
|
10 |
Mild CTA/self expression in mTEC |
|
20 |
Strong CTA/self expression in mTEC |
|
10 |
Broad normal-tissue signal from Protein Atlas-style annotations |
Note
Some penalties correspond directly to numeric thresholds in the defaults file, while others are triggered by derived annotations or source-specific consistency checks. For example, splice motif validation and peptide-versus- junction consistency are represented as penalties in the scoring defaults even though their exact logic is implemented upstream of the YAML itself.