IUPAC2Matrix: IUPAC2Matrix

View source: R/util-methods.r

IUPAC2MatrixR Documentation

IUPAC2Matrix

Description

Convert a IUPAC string into a Postion Weight Matirx

Usage

  IUPAC2Matrix(x)

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

  x <- "RMGNV"
  IUPAC2Matrix(x)


ge11232002/TFBSTools documentation built on Dec. 26, 2024, 12:38 a.m.