nuclPerm: Function to create nucleobase patterns.

Description Usage Arguments Details Value Error Author(s) References See Also Examples

View source: R/nuclPerm.R

Description

This function creates all permutations of 4 nucleobases (A, T, G, C) of length n.

Usage

1

Arguments

n

Length of the pattern.

Details

This function uses gtools::permutations().

Value

A vector of characters with each element being a nucleobase pattern of length n.

Error

The following error is returned if:

"The length of patterns provided is not a positive number." the provided length of patterns to be generated is not positive.

Author(s)

Alina Selega, Sander Granneman, Guido Sanguinetti

References

Selega et al. "Robust statistical modeling improves sensitivity of high-throughput RNA structure probing experiments", Nature Methods (2016).

See Also

gtools::permutations()

Examples

1

BUMHMM documentation built on Nov. 8, 2020, 5:13 p.m.