motif_clean_up: Function to clean up .meme motif files. Remove duplicate...

View source: R/motif_clean_up.R

motif_clean_upR Documentation

Function to clean up .meme motif files. Remove duplicate names if there is any. Remove duplicate motifs if there is any.

Description

Function to clean up .meme motif files. Remove duplicate names if there is any. Remove duplicate motifs if there is any.

Usage

motif_clean_up(
  input_files,
  keep_duplicates = FALSE,
  keep_same_name_motifs = TRUE,
  output_file = NULL
)

Arguments

input_files

Character vector of file paths of .meme files to be cleaned up.

keep_duplicates

Whether to keep motifs with the same positional weight matrices.

keep_same_name_motifs

Whether to keep motifs with the same name.

output_file

Whether to write a .meme motif file.

Value

A universalmotif object or nothing if output_file=TRUE.


TedCCLeung/PhotoperiodMotif documentation built on April 27, 2022, 9:01 p.m.