rmdup: Accepts a PWMatrixList and an output from...

View source: R/getMatches.R

rmdupR Documentation

Accepts a PWMatrixList and an output from motifmatchr::matchMotifs, and removes rows from the output corresponding to duplicate motif IDs. Only the row with the greatest number of matches is left for each motif ID. The background frequency is obtained from the total nucleotide frequencies in peaks.

Description

Accepts a PWMatrixList and an output from motifmatchr::matchMotifs, and removes rows from the output corresponding to duplicate motif IDs. Only the row with the greatest number of matches is left for each motif ID. The background frequency is obtained from the total nucleotide frequencies in peaks.

Usage

rmdup(motifs, matches, metric = "matches")

Arguments

motifs

The PWMatrixList used to compute matches.

matches

An output from motifmatchr::matchMotifs.

out

Type of output to return.

Value

A matches object.

See Also

getMatches, motifmatchr::matchMotifs


kewiechecki/tfenrichr documentation built on June 10, 2025, 12:15 a.m.