Skip to content

Commit

Permalink
Example on melting MAE (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored Nov 30, 2024
1 parent e574075 commit 3010297
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion inst/pages/wrangling.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,27 @@ library(knitr)
# Melt SE object
molten_tse <- meltSE(
tse,
assay.type = "counts",
add.row = TRUE,
add.col = TRUE,
assay.type = "counts")
)
molten_tse |> head() |> kable()
```

For `MultiAssayExperiment` data, you can utilize instead `longFormat()`.

```{r}
#| label: melt-mae-data
data(HintikkaXOData)
mae <- HintikkaXOData
molten_mae <- longFormat(
mae,
i = c("counts", "nmr", "signals"),
colDataCols = c("Rat", "Diet")
)
molten_mae |> head() |> kable()
```

0 comments on commit 3010297

Please sign in to comment.