Description Usage Arguments Details Value Examples
View source: R/deeptools_funs.R
Loads a deeptools v3 matrix file new version.
1 | load_deeptoolsmatrix3_new(fname, na.fill)
|
fname |
the file to load. |
na.fill |
Fills NAs with this value zero. Default is NA. |
Always returns and S3 object. Loads a gzipped deeptools matrix file and collects this in a metagene object, with slots: $header, $regions, $samples, $groups and $matrices. Where $header contains the header information as a named vector. Matrices is a list of matrices where each matrix is specific to 1 sample and 1 group. $samples are the samplenames for each matrix. $groups are the groups for each matrix. $rel_pos is the list of relative positions to anchorpoint for each group. Names are the group names. $regions same as rel_pos are the region names (ie col4 of bed file).
An object of class metagene
.
1 2 3 4 5 6 7 8 | fname <- system.file("extdata", "deeptools3_matrix.gz", package = "RMetaTools")
m <- load_deeptoolsmatrix3_new(fname)
m$header
m$samples
m$groups
lapply(m$rel_pos, head)
lapply(m$regions, head)
lapply(m$matrices, dim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.