mat_to_tbl: Tidy Metagene Matrix

Description Usage Arguments Details Value Examples

View source: R/computeMatrix.R

Description

Converts metagene matrix into a tidy tbl.

Usage

1

Arguments

mat

metagene matrix created from get_matrix

Details

Converts metagene matrix to tbl using rownames and colnames information to assign a column *name* and *rel_pos* respectively.

Value

matrix with columns from most upstream to most downstream and rows are the individual regions.

Examples

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)

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