Description Usage Arguments Details Value Examples
View source: R/computeMatrix.R
Converts metagene matrix into a tidy tbl.
1 | mat_to_tbl(mat)
|
mat |
metagene matrix created from get_matrix |
Converts metagene matrix to tbl using rownames and colnames information to assign a column *name* and *rel_pos* respectively.
matrix with columns from most upstream to most downstream and rows are the individual regions.
1 2 3 4 5 6 | bedfile <- system.file("extdata", "Chen_PROMPT_TSSs_liftedTohg38.bed", package = "RMetaTools")
regions <- meta_regions(bedfile, 'TSS', 1000, 5000)
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")
mat <- get_matrix(bw_plus, bw_minus, regions, 1000, 5000, 50)
tidy_meta <- mat_to_tbl(mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.