remove_duplicate_motifs: Remove duplicated motif entries

View source: R/remove_duplicate_motifs.R

remove_duplicate_motifsR Documentation

Remove duplicated motif entries

Description

This function identifies motif matrices which are duplicated in a universalmotif list or universalmotif_df and removes them. This operation ignores motif metadata and operates by removing all entries whose motif matrices are identical. The first instance of a duplicated motif in the input list is the one returned.

Usage

remove_duplicate_motifs(x)

Arguments

x

a universalmotif list or universalmotif_df

Value

A deduplicated list or universalmotif_df

Examples

motif <- universalmotif::create_motif()
duplicated <- c(motif, motif)
remove_duplicate_motifs(duplicated)

snystrom/memes documentation built on Oct. 12, 2024, 2:42 a.m.