exposure_differential_analysis {musicatk} | R Documentation

## Compare exposures of annotated samples

### Description

`exposure_differential_analysis` is used to run differential analysis on the signature exposures of annotated samples within the `musica_result` object.

### Usage

    exposure_differential_analysis(
      musica_result,
      annotation,
      method = c("wilcox", "kruskal", "glm.nb"),
      group1 = NULL,
      group2 = NULL,
      ...
    )

### Arguments

`musica_result` | A `musica_result` object
`annotation` | Column in the sample_annotations table of the `musica_result` object
`method` | Any method in `c("wilcox", "kruskal", "glm.nb")` used to perform differential analysis on signature exposures
`group1` | character vector used in the Wilcox test. Elements in `group1` are compared to elements in `group2`. This is required for `annotation` with more than 2 levels.
`group2` | character vector used in the Wilcox test. Elements in `group2` are compared to elements in `group1`. This is required for `annotation` with more than 2 levels.
`...` | Additional arguments to be passed to the chosen method

### Value

A matrix containing statistics summarizing the analysis dependent on the chosen method

### Examples

    data("res_annot")
    exposure_differential_analysis(res_annot, "Tumor_Subtypes", method="wilcox")

[Package musicatk version 1.2.0 Index]