Skip to contents

Extract pssm of sequences from a motif database

Usage

get_motif_pssm(motif, dataset = all_motif_datasets())

Arguments

motif

name of the motif to extract from the dataset

dataset

a data frame with PSSMs ('A', 'C', 'G' and 'T' columns), with an additional column 'motif' containing the motif name, for example HOMER_motifs or JASPAR_motifs, or all_motif_datasets().

Value

a data frame with the pssm of the motif

Examples

get_motif_pssm("JASPAR.HNF1A")
#> # A tibble: 15 x 5
#>   pos          A            C            G            T
#> 1   0 0.36815323 0.1725210262 0.2466605414 0.2126652060
#> 2   1 0.45927632 0.0273026316 0.4715789474 0.0418421053
#> 3   2 0.02280446 0.0642891800 0.0547671033 0.8581392528
#> 4   3 0.14734287 0.1097234161 0.0275066997 0.7154270112
#> 5   4 0.98175132 0.0002081599 0.0170691091 0.0009714127
#> 6   5 0.93368088 0.0417711495 0.0005279134 0.0240200607
#> # ... with 9 more rows