Skip to contents

Access sem matrix from a SNPEffectMatrix object

Usage

sem(x)

# S4 method for class 'SNPEffectMatrix'
sem(x)

Arguments

x

SNPEffectMatrix object

Value

A position (rows) by nucleic acid (columns) data.table is returned

Examples

## Create example SEM
df <- data.frame(A=c(1, 2, 3),
                 C=c(1, 2, 3),
                 G=c(1, 2, 3),
                 T=c(1, 2, 3))
s <- SNPEffectMatrix(df, 1.205, "motif_id")

## Access count matrix
sem(s)
#>        A     C     G     T
#>    <num> <num> <num> <num>
#> 1:     1     1     1     1
#> 2:     2     2     2     2
#> 3:     3     3     3     3