has_duplicate_motifs: Check for duplicated motif matrices

View source: R/remove_duplicate_motifs.R

has_duplicate_motifsR Documentation

Check for duplicated motif matrices

Description

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

Usage

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)

snystrom/memes documentation built on Feb. 6, 2023, 2:57 a.m.