Learn R Programming

TFBSTools (version 1.10.3)

IUPAC2Matrix: IUPAC2Matrix

Description

Convert a IUPAC string into a Postion Weight Matirx

Usage

IUPAC2Matrix(x)

Arguments

x
The IUPAC string.

Value

A matrix with position weight.

Details

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

Examples

Run this code
  x <- "RMGNV"
  IUPAC2Matrix(x)

Run the code above in your browser using DataLab