shuffle_motifs: Shuffle motifs by column.

View source: R/shuffle_motifs.R

shuffle_motifsR Documentation

Shuffle motifs by column.

Description

Given a set of motifs, shuffle the columns to create new motifs. Currently does not support keeping the 'multifreq' slot. Only the 'bkg', 'nsites', 'strand', and 'bkgsites' slots will be preserved. Uses the same shuffling methods as shuffle_sequences(). When shuffling more than one motif, all motif columns are merged into a single pool and shuffled together, finally returning them as motifs of identical lengths as the input motifs. To instead shuffle motifs individually, call shuffle_motifs() using lapply().

Usage

shuffle_motifs(motifs, k = 2, method = "linear")

Arguments

motifs

See convert_motifs() for acceptable formats.

k

numeric(1) K-let size.

method

character(1) Currently only 'linear' is accepted.

Value

Motifs. See convert_motifs() for available output formats.

Author(s)

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

See Also

shuffle_sequences()


bjmt/universalmotif documentation built on March 18, 2024, 8:32 a.m.