Learn R Programming

TFBSTools (version 1.10.3)

getPosProb: Get the emission probabilities of nucleotides

Description

Get the emission probabilities of ACGT at each position of TFFM.

Usage

getPosProb(tffm)

Arguments

tffm
A TFFMFirst object or a TFFMDetail object.

Value

A matrix of numeric with dimensions of 4 * ncol(tffm).

Details

This function calculates the probabilities of emitting nucleotides ACGT at each position of TFFM.

See Also

getEmissionProb

Examples

Run this code
  xmlFirst <- file.path(system.file("extdata", package="TFBSTools"),
                        "tffm_first_order.xml")
  tffmFirst <- readXMLTFFM(xmlFirst, type="First")
  getPosProb(tffmFirst)
  
  xmlDetail <- file.path(system.file("extdata", package="TFBSTools"),
                         "tffm_detailed.xml")
  tffmDetail <- readXMLTFFM(xmlDetail, type="Detail")
  getPosProb(tffmDetail)

Run the code above in your browser using DataLab