nuclPerm: Function to create nucleobase patterns.

View source: R/nuclPerm.R

nuclPermR Documentation

Function to create nucleobase patterns.

Description

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

Usage

    nuclPerm(n)

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

    nuclPerm(3)

alinaselega/BUMHMM documentation built on March 2, 2024, 10 p.m.