sample_sites: Generate binding sites from a motif.

View source: R/sample_sites.R

sample_sitesR 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, benjamin.tremblay@uwaterloo.ca

See Also

create_sequences(), create_motif(), add_multifreq()

Examples

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


bjmt/universalmotif documentation built on Nov. 16, 2024, 7:38 a.m.