This function identifies whether any motif matrices in the input universalmotif list or universalmotif_df are identical to each other. Note: this operation is slow on large motif lists

has_duplicate_motifs(x)

Arguments

x

a universalmotif list or universalmotif_df

Value

logical value indicating presence or absence of duplicated motif matrices

Examples

motif <- universalmotif::create_motif()
duplicated <- c(motif, motif)
has_duplicate_motifs(duplicated)
#> [1] TRUE