enrichment_depletion_test: Test for enrichment or depletion of mutations in genomic...

Description Usage Arguments Value See Also Examples

Description

This function aggregates mutations per group (optional) and performs an enrichment depletion test.

Usage

1

Arguments

x

data.frame result from genomic_distribution()

by

Optional grouping variable, e.g. tissue type

Value

data.frame with the observed and expected number of mutations per genomic region per group (by) or sample

See Also

genomic_distribution, plot_enrichment_depletion

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## See the 'genomic_distribution()' example for how we obtained the
## following data:
distr <- readRDS(system.file("states/distr_data.rds",
                    package="MutationalPatterns"))

tissue <- c(rep("colon", 3), rep("intestine", 3), rep("liver", 3))

## Perform the enrichment/depletion test by tissue type.
distr_test <- enrichment_depletion_test(distr, by = tissue)

## Or without specifying the 'by' parameter.
distr_test2 <- enrichment_depletion_test(distr)


Search within the MutationalPatterns package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.