plot_profile: Plot Metagene Average Profile

Description Usage Arguments Details Value Examples

Description

Plot Metagene Average Profile

Usage

1
plot_profile(meta_tbl, color_by = NULL)

Arguments

color_by

name of column from tbl to use for coloring of lines and ranges (default=NULL)

tbl

tidy metagene tbl

Details

plots line from ('estimate'), and range from conf.low and conf.high columns in tbl

Value

tbl

Examples

1
2
3
4
5
6
7
8
bedfile <- system.file("extdata", "Chen_PROMPT_TSSs_liftedTohg38.bed", package = "RMetaTools")
bw_plus <- system.file("extdata", "GSM1573841_mNET_8WG16_siLuc_plus_hg38.bw", package = "RMetaTools")
bw_minus <- system.file("extdata", "GSM1573841_mNET_8WG16_siLuc_minus_hg38.bw", package = "RMetaTools")
anno=bedfile;anchor='center';upstream=1000;downstream=1000;window_size=10
collapse_fun = rowMeans;negate_neg_strand_values=FALSE
metamat <- metagene_matrix(bw_plus, bw_minus, bedfile, anchor, upstream, downstream, window_size)
tidy_log2_avgs <- meta_average(mutate(metamat, value = log2(value+1)))
plot_profile(tidy_log2_avgs)

manschmi/RMetaTools documentation built on Dec. 14, 2021, 4:33 a.m.