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

Multi-variable summary table

Summarize the distributions of multiple characteristics within each group, reporting counts and percentages for each value.

Summarize the distributions of multiple characteristics within each group, reporting counts and percentages for each value.

Multi-column distribution table

Description

Analysis summary

Summarises the distribution of several categorical feature columns across patient groups: per group, the count and share of observations carrying each value of each feature.

Computation

For each feature column (every column in the table except the grouping columns and the patient identifier), the count of each unique value is computed per group — and per subgroup when a second grouping column is given. Numeric feature columns are binned into six equally-spaced bins first, either by the adapter's binning rules or automatically, so they enter the same counting. The result is one table with the features as row blocks, their values as rows and the groups as columns; each cell holds the count and the percentage of that group's observations carrying the value. The table is returned as formatted Markdown text rather than as a data frame. No statistical tests are computed.

When to use

Use for cohort-overview questions spanning several clinical or biological variables at once: the composition of patient groups by stage, gender, smoking status and similar. For a single variable or for numeric summaries with statistics, use the other analyses instead; for counts of patients per condition, use the population-overview mode of this module.

Caveats

Counts and shares describe the queried data only — no test or comparison is run between groups. Rows with a missing value are excluded from that feature's counts, so percentages are relative to the non-missing observations.

Example questions

example questions
  • Multiple clinical variables distribution summary across groups

Input columns

input columns
column
type
required
description

x_group

categorical

required

Grouping variable — one column per group in the output table.

x_subgroup

categorical

optional

Secondary grouping variable for two-level stratification (e.g. dataset_name). Optional.

index

any

optional

Granularity identifier for the rows of the table (e.g. patient_id, sample_id, cell_id). Excluded from feature processing. Use index_label to set its display na…

patient_id

any

required

Patient identifier. Excluded from feature processing if present.

categorical

optional

Any additional columns to summarise — whatever the SQL SELECT'd besides x_group, x_subgroup, and patient_id. Continuous columns should be pre-binned in SQL (e.…

Visualizations

  • summary_table How to read: A Markdown table: one row block per feature, one row per value, one column per group (× subgroup when used); each cell reads 'count (share %)' — the number of that group's observations carrying the value, and their share of the group. Colour-coded group legends name the columns. Comparing cells across a row shows how the value's prevalence differs between groups.

Example analysis 1

Name — Clinical Summary by Cancer Type (TCGA)

Analysis parameters

analysis_name, analysis_params, viz_params

Visualization — summary_table

Output table

Clinical Summary by Cancer Type (TCGA)

Feature
Modality
lung_adenocarcinoma
malignant_neoplasm_of_urinary_bladder

age_bin

50-64

188 (36.4%)

128 (31.4%)

65+

296 (57.3%)

258 (63.2%)

<50

33 (6.4%)

22 (5.4%)

clinical_t_stage

t1

170 (33.1%)

11 (2.7%)

t2

278 (54.1%)

191 (46.8%)

t3

47 (9.1%)

161 (39.5%)

t4

19 (3.7%)

45 (11.0%)

gender

female

278 (53.8%)

107 (26.2%)

male

239 (46.2%)

301 (73.8%)

smoking_status

tobacco_active_or_former_smoker

4 (0.8%)

12 (3.0%)

tobacco_former_smoker

135 (26.8%)

113 (28.6%)

tobacco_non_smoker

168 (33.4%)

72 (18.2%)

tobacco_smoker

196 (39.0%)

198 (50.1%)

Last updated

Was this helpful?