remove_duplicate_motifs {memes} | R 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)

[Package memes version 1.0.4 Index]