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/dremeR documentation built on Oct. 13, 2024, 10:48 p.m.