tcR (version 1.1)

gibbs.sampler: Gibbs Sampler.

Description

Perform the Gibbs Sampler method for finding frequent motifs in the given vector of strings or data.frame. Each string splitted to kmers with the given length of motif.

Usage

gibbs.sampler(.data, .k = 5, .niter = 500, .meat = T)

Arguments

.data
Vector of characters or data.frame of characters (1st col) and their numbers (2nd col) if .meat == T.
.k
Motif's length.
.niter
Number of iterations.
.meat
Should function use the count of every sequence or not.

Value

  • Vector of possible motifs.