For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mutation frequency

Summarize mutation counts by genomic position across patients, or mean variant allele fractions by position within an individual patient.

Summarize mutation counts by genomic position across patients, or mean variant allele fractions by position within an individual patient.

Patient count per position

Description

Analysis summary

Counts distinct patients carrying a mutation at each amino acid position of a single gene, separately by mutation type. Identifies recurrent mutations within the queried cohort.

Computation

Extracts amino acid positions from protein-change notations and discards records without a parseable position. Each position and mutation type yields a distinct-patient count and a patient list; the representative protein change is the one carried by the most patients, with alphabetical tie-breaking. A minimum-count filter removes rare combinations. The descriptive table is sorted by count and includes position, representative change, mutation type, patient count, percentages of the full cohort and of patients mutated in the gene, and a recurrence-based hotspot flag. The default hotspot threshold is the larger of three patients and the rounded count corresponding to 5% of mutated patients. When oncogenic flags include at least one positive record, the table also reports the percentage of patients mutated at each position who have an oncogenic mutation there, across mutation types. No hypothesis tests or significance comparisons are computed.

When to use

Use for 'which positions in this gene recur across patients?' and cohort-level mutation frequency questions. Prefer the single-patient VAF mode to examine allele fractions in one patient, or oncoprint_analysis for alterations across a panel of genes and samples.

Caveats

Restrict input to one gene and compatible protein coordinates: gene identities and isoforms are not reconciled. Include unmutated patients as records with null protein changes to obtain full-cohort percentages. The mutated-patient denominator counts all patients with a non-null protein change, including unparseable notations. A patient can contribute to several mutation types at one position, so their counts must not be summed as distinct patients. Hotspot flags apply to each position/type combination and are recurrence heuristics, not evidence of statistical enrichment or pathogenicity. Absent oncogenic percentages do not establish that no variants are oncogenic.

Example questions

example questions
  • Lollipop plot of per-position mutation frequency across a patient cohort for a single gene

Input columns

input columns
column
type
required
description

patient_id

categorical

required

Patient identifier for distinct counting. Join sample_metadata_table on sample_id to obtain.

hgvsp_short

categorical

required

Protein change notation (e.g. p.R248W) — amino acid position is extracted from this. Null for an unmutated patient.

variant_classification

categorical

required

Mutation type (e.g. Missense_Mutation, Nonsense_Mutation), counted separately at each position.

oncogenic

boolean

optional

Boolean VCF flag: True = variant flagged as oncogenic, null = not flagged. When present, pct_oncogenic is added to descriptive_stats. Include by default.

Visualizations

  • lollipop How to read: The horizontal axis gives amino acid position along the protein; each lollipop head's height is the number of distinct patients with that position and mutation type. Colours and the legend distinguish mutation types, not oncogenicity. Heads sharing a position may be offset slightly to avoid overlap; their actual position is given in hover text, along with the representative protein change. Tall stems identify recurrent hits, not statistically significant enrichment. In ECharts, hotspot heads can be labelled with the representative change and count, and hover text also provides patient shares and available oncogenic percentages. Optional protein-feature annotations locate hits within domains or regions. A logarithmic vertical scale compresses large count differences.

Example analysis 1

Name — TP53 Mutation Landscape (TCGA Cohort)

Analysis parameters

analysis_name, analysis_params, viz_params

Visualization — lollipop

TP53 Mutation Landscape (TCGA Cohort)

Output table

descriptive_stats (first 10 of 326 rows)
aa_position
representative_hgvsp
variant_classification
n_patients
pct_cohort
pct_mutated
is_hotspot

273

p.R273C

Missense_Mutation

258

2.7

7.0

True

248

p.R248Q

Missense_Mutation

207

2.1

5.6

True

175

p.R175H

Missense_Mutation

162

1.7

4.4

False

282

p.R282W

Missense_Mutation

86

0.9

2.3

False

245

p.G245S

Missense_Mutation

84

0.9

2.3

False

213

p.R213*

Nonsense_Mutation

74

0.8

2.0

False

220

p.Y220C

Missense_Mutation

72

0.7

2.0

False

179

p.H179R

Missense_Mutation

67

0.7

1.8

False

193

p.H193R

Missense_Mutation

61

0.6

1.7

False

196

p.R196*

Nonsense_Mutation

51

0.5

1.4

False

Mean VAF per position (single patient)

Description

Analysis summary

Summarises the variant allele fraction of mutations at each amino acid position of a single gene in one patient. Provides a position-level mutation profile for that patient.

Computation

Extracts amino acid positions from protein-change notations, discards records without a parseable position, and averages variant allele fractions over records sharing a position and mutation type. The result retains the patient list and an alphabetically selected representative protein change. The descriptive table contains position, representative change, mutation type, mean allele fraction and a sequential rank in descending allele fraction order. If supplied, the oncogenic flag is taken from the representative record. No hotspot classification or hypothesis tests are computed.

When to use

Use to inspect allele fractions and the mutation profile of one patient in a single gene. Prefer the patient-count mode for recurrence across a cohort, or trajectory_analysis when the question concerns changes in measurements over repeated timepoints.

Caveats

Only one patient is supported, and input must concern one gene with compatible protein coordinates. Multiple samples or distinct changes at the same position and mutation type are averaged together rather than resolved separately. The representative change and its oncogenic flag need not describe every contributing record. Allele fraction alone does not establish clonality: purity, copy number and assay properties also affect it. Patient-count filters and hotspot thresholds do not apply.

Example questions

example questions
  • Lollipop plot of per-position VAF for a single patient and a single gene

Input columns

input columns
column
type
required
description

patient_id

categorical

required

Patient identifier for distinct counting. Join sample_metadata_table on sample_id to obtain.

hgvsp_short

categorical

required

Protein change notation (e.g. p.R248W) — amino acid position is extracted from this. Null for an unmutated patient.

variant_classification

categorical

required

Mutation type (e.g. Missense_Mutation, Nonsense_Mutation), counted separately at each position.

vaf

numeric

required

Variant Allele Fraction (0–1). Required for single-patient queries (analysis_mode='vaf').

oncogenic

boolean

optional

Boolean VCF flag: True = variant flagged as oncogenic, null = not flagged. When present, pct_oncogenic is added to descriptive_stats. Include by default.

Visualizations

  • lollipop How to read: The horizontal axis gives amino acid position along the protein; each lollipop head's height is the mean variant allele fraction for that position and mutation type, on a 0–1 measurement scale. Colours and the legend distinguish mutation types. Hover text identifies the actual position and representative protein change; ECharts also reports the available oncogenic flag and can label mutations in short profiles. Optional protein-feature annotations locate mutations within domains or regions. Higher heads mean larger observed allele fractions, not necessarily greater clonality or pathogenicity. A logarithmic vertical scale hides zero allele fractions.

Example analysis 1

Name — TP53 Mutations (Single Patient VAF)

Analysis parameters

analysis_name, analysis_params, viz_params

Visualization — lollipop

TP53 Mutations (Single Patient VAF)

Output table

descriptive_stats (1 rows)
aa_position
representative_hgvsp
variant_classification
mean_vaf
oncogenic
vaf_rank

216

p.V216M

Missense_Mutation

0.6129

1

Last updated

Was this helpful?