Description Usage Arguments Details Value Examples
View source: R/deeptools_funs.R
Loads a deeptools matrix file.
1 | load_deeptoolsmatrix(fname, na.omit = TRUE, na.fill = 0, as.matrix = FALSE)
|
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. |
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.
An object of class deeptools_matrix
with provided means and covariances
computed as 1/alpha
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.