IUPAC2Matrix: IUPAC2Matrix

Description Usage Arguments Details Value Author(s) Examples

View source: R/util-methods.r

Description

Convert a IUPAC string into a Postion Weight Matirx

Usage

1

Arguments

x

The IUPAC string.

Details

The mapping between IUPAC Extended Genetic Alphabet and the DNA bases letters are from IUPAC_CODE_MAP in Biostrings package.

Value

A matrix with position weight.

Author(s)

Ge Tan

Examples

1
2
  x <- "RMGNV"
  IUPAC2Matrix(x)

TFBSTools documentation built on Nov. 8, 2020, 8:14 p.m.