plot_signature_strand_bias: Plot signature strand bias

Description Usage Arguments Value See Also Examples

View source: R/plot_signature_strand_bias.R

Description

Plot strand bias per mutation type for each signature.

Usage

1
plot_signature_strand_bias(signatures_strand_bias)

Arguments

signatures_strand_bias

Signature matrix with 192 features

Value

Barplot

See Also

link{extract_signatures}, link{mut_matrix()}

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## See the 'mut_matrix()' example for how we obtained the following
## mutation matrix.
mut_mat_s <- readRDS(system.file("states/mut_mat_s_data.rds",
                                    package="MutationalPatterns"))

## Extracting signatures can be computationally intensive, so
## we use pre-computed data generated with the following command:
# nmf_res_strand <- extract_signatures(mut_mat_s, rank = 2)

nmf_res_strand <- readRDS(system.file("states/nmf_res_strand_data.rds",
                                        package="MutationalPatterns"))

## Provide column names for the plot.
colnames(nmf_res_strand$signatures) = c("Signature A", "Signature B")

plot_signature_strand_bias(nmf_res_strand$signatures) 


MutationalPatterns documentation built on May 20, 2017, 10:54 p.m.
Search within the MutationalPatterns package
Search all R packages, documentation and source code

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

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

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