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:

  1. extracts candidate-centered evidence windows from the relevant alignments

  2. computes generic and antigen-specific support metrics

  3. triggers review flags when evidence falls outside configured expectations

  4. subtracts penalties from an initial score of 100

  5. 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

fragment

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 LOW_MAPQ_SUPPORT when not met

Maximum Fisher strand-bias p-value

0.001

Used with strand imbalance checks

Maximum major-strand fraction

0.9

Triggers STRAND_BIAS when support is too one-sided

Maximum read-end fraction

0.4

Triggers READ_END_BIAS

Maximum duplicate fraction

0.8

Triggers DUPLICATE_DOMINATED

Soft-clip enrichment delta

0.25

Triggers SOFTCLIP_ENRICHED

Maximum support-read NM p90

8

Triggers HIGH_MISMATCH_BURDEN

Minimum mappability

0.5

Used for repeat-context risk

Maximum normal support ratio

0.02

Triggers NORMAL_DNA_SUPPORT_HIGH

Source-specific support minima

Source

Min support reads

Min support ratio

SNV

3

0.05

INDEL

3

0.05

SPLICE

5

0.05

FUSION

5

0.02

VIRUS

10

0.0001

ERV

10

0.02

CTA/SELF

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

exon

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_HIGH

  • SOURCE_NOT_IMPLEMENTED_V1

Default tier thresholds are:

Tier rule

Default

PASS minimum score

75

REVIEW minimum score

40

By default, this means:

  • PASS: score >= 75 and no hard-fail flag

  • REVIEW: score >= 40 and < 75 and no hard-fail flag

  • FAIL: score < 40 or any hard-fail flag

Penalty weights

Flag

Penalty

Typical meaning

LOW_SUPPORT_READS

35

Too few support reads

LOW_SUPPORT_RATIO

25

Support is too weak relative to baseline

LOW_MAPQ_SUPPORT

25

Support reads align poorly

STRAND_BIAS

15

Support is too one-sided by strand

READ_END_BIAS

15

Support clusters near read ends

DUPLICATE_DOMINATED

10

Too much support comes from duplicates

SOFTCLIP_ENRICHED

15

Support reads are unusually soft-clipped

HIGH_MISMATCH_BURDEN

20

Support reads carry excess mismatches

REPEAT_CONTEXT_RISK

10

Event falls in difficult sequence context

CONTAINS_CYSTEINE

10

Peptide contains cysteine

NORMAL_DNA_SUPPORT_HIGH

100

Strong evidence also appears in matched normal DNA

SOURCE_NOT_IMPLEMENTED_V1

60

Source-specific review logic not implemented in v1

JUNCTION_SUPPORT_WEAK

30

Splice junction support is weak

JUNCTION_MOTIF_INVALID

25

Splice motif is inconsistent with expectations

PSI_TOO_LOW

25

Junction abundance is too low

JUNCTION_MAPQ_LOW

20

Splice support aligns poorly

SPLICE_PEPTIDE_READ_SUPPORT_LOW

30

Peptide-level splice support is weak

SPLICE_PEPTIDE_INCONSISTENT

30

Peptide-level and junction evidence disagree

INTRON_EVENT_COVERAGE_WEAK

20

Intron coverage pattern is weak

FUSION_SPLIT_WEAK

30

Fusion split-read support is weak

FUSION_SPAN_ONLY

20

Fusion support is dominated by spanning pairs

BREAKPOINT_DISPERSION_HIGH

20

Fusion breakpoint positions are too dispersed

ERV_MULTIMAP_HIGH

30

ERV support appears too multimapped

ERV_LOCUS_SPECIFICITY_LOW

25

ERV signal is not locus-specific enough

ERV_NORMAL_EXPRESSION_MILD

10

Mild ERV expression in normal tissues

ERV_NORMAL_EXPRESSION_HIGH

25

Strong ERV expression in normal tissues

ERV_MTEC_EXPRESSION_MILD

10

Mild ERV expression in mTEC

ERV_MTEC_EXPRESSION_HIGH

20

Strong ERV expression in mTEC

ERV_NORMAL_MTEC_EXPRESSION_UNKNOWN

25

No normal-tissue or mTEC expression value was found for the peptide or its ORF, so normal-expression safety cannot be assessed

ORF_NOT_INTACT

20

ERV ORF coverage suggests weak coding support

VIRAL_BREADTH_LOW

40

Viral support is too narrow

VIRAL_UNIQUENESS_LOW

25

Viral reads are not unique enough

VIRAL_ABUNDANCE_LOW

25

Viral abundance is too low

CTA_ABUNDANCE_LOW

20

CTA/self abundance is too low

CTA_NORMAL_TISSUE_BROAD

10

CTA/self signal appears across many normal tissues

CTA_TRANSCRIPT_COVERAGE_WEAK

20

CTA/self transcript coverage is weak

CTA_NORMAL_EXPRESSION_MILD

10

Mild CTA/self expression in normal tissues

CTA_NORMAL_EXPRESSION_HIGH

25

Strong CTA/self expression in normal tissues

CTA_MTEC_EXPRESSION_MILD

10

Mild CTA/self expression in mTEC

CTA_MTEC_EXPRESSION_HIGH

20

Strong CTA/self expression in mTEC

CTA_PROTEINATLAS_BROAD

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.