sample_sites: Generate binding sites from a motif.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sample_sites.R

Description

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

Usage

1
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

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

bjmt/universalmotif documentation built on Sept. 26, 2020, 3:09 a.m.