sample_sites {universalmotif} | R Documentation

## Generate binding sites from a motif.

### Description

Given probabilities for a sequence as represented by a motif, generate random sequences with the same length as the motif.

### Usage

    sample_sites(motif, n = 100, use.freq = 1)

### Arguments

`motif` | See `convert_motifs()` for acceptable formats.
`n` | `numeric(1)` Number of sites to generate.
`use.freq` | `numeric(1)` If one, use regular motif matrix. Otherwise, use respective `multifreq` matrix.

### Value

`XStringSet` object.

### Author(s)

Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca

### See Also

`create_sequences()`, `create_motif()`, `add_multifreq()`

### Examples

    motif <- create_motif()
    sites <- sample_sites(motif)

[Package universalmotif version 1.2.1 Index]