trim_motifs {universalmotif} | R 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)

[Package universalmotif version 1.10.2 Index]