trim_motifs: Trim motifs.

View source: R/trim_motifs.R

trim_motifsR Documentation

Trim motifs.

Description

Remove edges of motifs with low information content. Currently does not trim multifreq representations.

Usage

trim_motifs(motifs, min.ic = 0.25, trim.from = c("both", "left", "right"))

Arguments

motifs

See convert_motifs() for acceptable formats.

min.ic

numeric(1) Minimum allowed information content. See convert_type() for a discussion on information content.

trim.from

character(1) Control the direction of trimming.

Value

Motifs See convert_motifs() for available output formats.

Author(s)

Benjamin Jean-Marie Tremblay, benjamin.tremblay@uwaterloo.ca

See Also

create_motif(), convert_type()

Examples

jaspar <- read_jaspar(system.file("extdata", "jaspar.txt",
                                  package = "universalmotif"))
jaspar.trimmed <- trim_motifs(jaspar)


bjmt/universalmotif documentation built on Nov. 16, 2024, 7:38 a.m.