shuffle_motifs {universalmotif} | R Documentation |
Given a set of motifs, shuffle the columns between them. 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, they are
shuffled together.
shuffle_motifs(motifs, k = 2, method = "linear", leftovers = "asis")
motifs |
See |
k |
|
method |
|
leftovers |
|
If method = 'linear'
, then the input positions are split linearly every
k
columns after which they are shuffled. If method = random
, then
sets of k
-columns are chosen randonmly before being shuffled. This leaves
leftover column islands smaller than k
; these can be left asis
, placed
first
, split
between the beginning and the end, or discard
ed. See
shuffle_motifs()
.
Motifs. See convert_motifs()
for available output
formats.
Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca