load_deeptoolsmatrix: load_deeptoolsmatrix

Description Usage Arguments Details Value Examples

View source: R/deeptools_funs.R

Description

Loads a deeptools matrix file.

Usage

1
load_deeptoolsmatrix(fname, na.omit = TRUE, na.fill = 0, as.matrix = FALSE)

Arguments

na.omit

Skip na values in the matrix.

na.fill

Fills NAs with this value zero.

as.matrix

Return matrix as matrix (default is FALSE, returns tidy data.frame)

file

the file to load.

Details

Loads a gzipped deeptools matrix file and collects this in a tidy data.frame. If as.matrix is true, the header information is added as attribute.

Value

An object of class deeptools_matrix with provided means and covariances computed as 1/alpha.

Examples

1
2
3
4
5
6
7
 fname <- system.file("extdata", "matrix.gz", package = "RMetaTools")
 df <- load_deeptoolsmatrix(fname)
 head(df)
 df_withNA <- load_deeptoolsmatrix(fname, na.omit=FALSE)
 head(df_withNA)
 df_withNAas0 <- load_deeptoolsmatrix(fname, na.omit=FALSE, na.fill=0)
 head(df_withNAas0)

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