Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions inst/pages/extra_material/integrated_learner.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,30 @@ mae <- MultiAssayExperiment(
mae
```

`IntegratedLearnerFromMAE()` requires complete cases across the selected
experiments. Every experiment must contain the same samples, and the sample
names must match character-for-character. A `sampleMap` records relationships
between samples and subjects in a `MultiAssayExperiment`, but it does not
impute missing measurements or harmonize names for IntegratedLearner.

Check this requirement before fitting the model:

```{r}
#| label: check_sample_names

sample_ids <- lapply(experiments(mae), colnames)
stopifnot(all(vapply(
sample_ids,
identical,
logical(1),
y = sample_ids[[1]]
)))
```

For other datasets, rename columns to a shared sample or patient identifier
and subset every experiment to the complete-case intersection before creating
the `MultiAssayExperiment`.

Let's first check how many patients are in each group.

```{r}
Expand Down
Loading