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)
a universalmotif list or universalmotif_df
logical value indicating presence or absence of duplicated motif matrices
motif <- universalmotif::create_motif()
duplicated <- c(motif, motif)
has_duplicate_motifs(duplicated)
#> [1] TRUE