test_exposureAffected {YAPSA} | R Documentation

## Test significance of association

### Description

Test significance of association between a vector of exposures and a selection of samples, e.g. those affected by mutations in a pathway as returned by `find_affected_PIDs`

### Usage

    test_exposureAffected(
      in_exposure_vector,
      in_affected_PIDs,
      in_mutation_label = NULL,
      in_exposure_label = NULL
    )

### Arguments

`in_exposure_vector` | Named vector of a phenotype (e.g. exposures to a specific signature)
`in_affected_PIDs` | Character vector of samples affected by some criterion, e.g. mutations in a pathway as returned by `find_affected_PIDs`
`in_mutation_label` | If non-NULL, prefix to the mutation status (x-axis label) in the produced boxplot
`in_exposure_label` | If non-NULL, prefix to the exposures (y-axis label) in the produced boxplot

### Value

A list with entries:

- `current_kruskal`: Kruskal test object from testing phenotype against affection

- `current_boxplot`: Boxplot of phenotype against affection

### Examples

     NULL

[Package YAPSA version 1.20.1 Index]