Skip to contents

Create a MotifDB object from a tidy data frame

Usage

create_motif_db(motif_db, prior = 0.01, spat_factors = NULL, spat_bin_size = 1)

Arguments

motif_db

A tidy data frame containing motif information

prior

Pseudocount prior to add to probabilities (default: 0.01)

spat_factors

Matrix of spatial factors (rows=motifs, cols=bins) or NULL

spat_bin_size

Size of spatial bins (default: 1)

Value

A MotifDB object

Examples

create_motif_db(all_motif_datasets())
#> MotifDB object with 3867 motifs and prior 0.01
#> Slots include: @mat, @rc_mat @motif_lengths, @prior, @spat_factors, @spat_bin_size