Description Usage Arguments Value Author(s) See Also Examples
Sequence-related utility functions.
1 2 3 4 5 6 7 8 | count_klets(string, k = 1, alph)
get_klets(lets, k = 1)
mask_seqs(seqs, pattern, RC = FALSE, letter = "-")
shuffle_string(string, k = 1, method = c("euler", "linear", "markov"),
rng.seed = sample.int(10000, 1))
|
string |
|
k |
|
alph |
|
lets |
|
seqs |
|
pattern |
|
RC |
|
letter |
|
method |
|
rng.seed |
|
For count_klets()
: A data.frame
with columns lets
and counts
.
For get_klets()
: A character
vector of k-lets.
For mask_seqs()
: The masked XStringSet
object.
For shuffle_string()
: A single character
string.
Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca
create_sequences()
, shuffle_sequences()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #######################################################################
## count_klets
## Count k-lets for any string of characters
count_klets("GCAAATGTACGCAGGGCCGA", k = 2)
## The default 'k' value (1) counts individual letters
count_klets("GCAAATGTACGCAGGGCCGA")
#######################################################################
## get_klets
## Generate all possible k-lets for a set of characters
get_klets(c("A", "C", "G", "T"), 3)
## Note that each element in 'lets' is considered a single unit;
## see:
get_klets(c("AA", "B"), k = 2)
#######################################################################
## mask_seqs
## Mask repetitive seqeuences
data(ArabidopsisPromoters)
mask_seqs(ArabidopsisPromoters, "AAAAAA")
#######################################################################
## shuffle_string
## Shuffle any string of characters
shuffle_string("ASDADASDASDASD", k = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.