Skip to content

Antigen-source evidence report

isovar antigen-report combines existing Isovar exports for one sample into a PDF and a machine-readable JSON inventory. It keeps literal DNA alleles, nominated DNA structural variants, supplied fusion transcripts, selected viral contigs and targeted antigen genes in separate categories. Their counts have different denominators and are never summed as “total antigens.”

First run the source-specific commands with the same --sample-id and retain their versioned JSON outputs. For example:

isovar evidence-report --vcf somatic.vcf.gz --bam tumor-rna.bam \
    --sample-id tumor-1 --output small-variants.pdf
isovar antigen-report --sample-id tumor-1 --output tumor-1-antigens.pdf \
    --small-variant-tsv small-variants.tsv \
    --sv-result nominated-sv.json \
    --fusion-result supplied-fusion.json \
    --viral-result viral-rna.json \
    --isoforms-result targeted-antigen-isoforms.json

Repeat any input option, including --small-variant-tsv, for additional sources, events or panels. Every supplied JSON must have the expected versioned Isovar schema. By default, every input must have the report's sample_id. The command writes tumor-1-antigens.pdf and tumor-1-antigens.json by default; --summary-json PATH changes the latter path. Omitting an input marks that category not assessed. A zero within a supplied export means the selected source was assessed and had zero support by that export's criterion.

To group different input sample IDs explicitly, map each file to its native ID:

isovar antigen-report --sample-id Sid --output Sid-antigens.pdf \
    --small-variant-tsv T0.tsv --input-sample-id T0.tsv T0 \
    --small-variant-tsv T1.tsv --input-sample-id T1.tsv T1 \
    --fusion-result fusion.json --input-sample-id fusion.json Sid-T0-Personalis

The report label does not relabel or pool the original measurements. Each source retains its input_sample_id and file path in JSON; PDF headings name the original sample and source. Unknown mappings, repeated input paths and mismatched native IDs are rejected. The Python compose API accepts an iterable of small-variant paths and an input_sample_ids mapping from supplied paths to native sample IDs.

evidence-report writes three companions: a PDF, a per-call TSV (--per-call) and full per-call protein hypotheses with their witness sets (--evidence-json, default PDF stem plus .json). The new JSON schema is isovar.evidence_report.v1; nested protein exports keep their native schema. Output paths must be distinct from one another and from the inputs.

The local-context funnel includes synonymous contexts. Its final changed-protein stage requires a verified focal amino-acid difference. Residue plots use verified substitution/insertion/deletion counts; marked codon intervals and stop changes are separate measurements. Reference-identical, divergent and unresolved contexts are reported separately, and one call may have several states across its candidates. Historical tables without comparison provenance stay unresolved. Examples show contributors and exact coding spans on one identified nucleotide path, with single-read and paired-template subsets. See protein evidence semantics.

Small-variant tables name every call, gene and top effect, with original RNA ALT reads and fragments where measured. Histograms for larger inputs group exon-involved alleles by SNV, insertion, deletion and replacement, including zero-support alleles and then only positive-support alleles. The underlying isovar evidence-report command also writes these figures directly from a VCF and indexed RNA BAM/CRAM. A changed reference base meeting any annotated exon counts; insertions use both flanks as candidate exon involvement.

SV and fusion sections report event-linked RNA junction fragments and separately count translated paths or candidates. They do not reinterpret a breakpoint-screen split alignment as a small-variant ALT read. The HCC1395/COLO829 source PDFs add an exon-involved SV figure from pinned whole-run breakpoint screens: full intrachromosomal span for DEL/DUP/INV and nominated breakpoints for INS/TRA/BND. Those panels show split-alignment candidate counts, including and excluding zero; they are not direct junction support. The generic composition command does not compute exon overlap for SV exports because isovar sv-rna JSON does not contain a genomic exon annotation for a complete DNA SV call set.

Viral tables name selected contigs and count their aligned and sequence-assigned original RNA fragments. Larger panels also have distributions with and without zero support. They do not use a human exon filter. Selected contigs are the panel denominator; a panel is not a screen of every possible virus. Coding predictions are separate from observed protein expression. Targeted antigen-gene isoforms are reported by nominated gene and RNA-compatible path; reference-only paths are not counted as observed tumor products. Reference ncORF overlaps are candidates, not mutant ncORF translations.

Named SV/fusion junction rows retain producer read/fragment support and fusion reason codes. CTA and viral path rows distinguish contributors, compatibility, uniqueness among retained paths, whole-path witnesses and whole complete-CDS witnesses. Whole spans use original segment identities through the shared support contract; tiled coverage is not a spanning read. Missing measurements show -, while a measured zero shows 0. Counts from ambiguous paths are not additive.

Sections flow together and long tables paginate without dropping rows. The JSON preserves every per-source call and measurement as well as full source paths. The report does not infer somatic status or harmonize cultures, assays, and reference assemblies; select compatible inputs before composing it.