split_motifs: Split Motifs

Description Usage Arguments Value Examples

View source: R/homer_functions.R

Description

This takes an annotated txt file from annotatePeaks.pl (after loading as a df) and performs minor cleaning functions on the annotated motif set. This currently works for 1 motif at a time.

Usage

1
2
split_motifs(annotated_df, motif_col, zero_based = F, filter_for_motifs = F,
  motif_label = NULL, return_bedfile_format = F)

Arguments

annotated_df

the annotated df.

motif_col

the name of the motif column as a string.

zero_based

Are the locations 0-based or 1 based? logical.

filter_for_motifs

Remove any peaks that do not contain a motif? Logical.

motif_label

Write a label to fill in for the motif.

return_bedfile_format

Return the motifs in a bed-style structure? Requires filter_for_motifs to be true.

Value

returns a df.

Examples

1
# ADD_EXAMPLES_HERE

avhgenomics/bioKIT documentation built on May 5, 2019, 12:29 a.m.