1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
\name{TFFM}
\alias{TFFM}
\alias{TFFMFirst}
\alias{TFFMDetail}
\alias{ncol,TFFMFirst-method}
\alias{ncol,TFFMDetail-method}
\alias{totalIC,TFFM-method}
\title{
The TFFM class
}
\description{
The TFFM is a virtual class.
Two classes are derived from this class: TFFMFirst and TFFMDetail.
TFFMFirst class stands for the first-order TFFMs and
TFFMDetail stands for the more detailed and descriptive TFFMs.
}
\usage{
## constructors:
TFFMFirst(ID="Unknown", name="Unknown", matrixClass="Unknown",
strand="+", bg=c(A=0.25, C=0.25, G=0.25, T=0.25),
tags=list(), profileMatrix=matrix(),
type=character(), emission=list(),
transition=matrix())
TFFMDetail(ID="Unknown", name="Unknown", matrixClass="Unknown",
strand="+", bg=c(A=0.25, C=0.25, G=0.25, T=0.25),
tags=list(), profileMatrix=matrix(),
type=character(), emission=list(),
transition=matrix())
}
\section{Methods}{
\describe{
\item{ncol}{\code{signature(x = "TFFMFirst")}:
Get the length of First-order TFFM.}
\item{ncol}{\code{signature(x = "TFFMDetail")}:
Get the length of detail TFFM.}
\item{totalIC}{\code{signature(x = "TFFM")}:
Get the information content at each position.}
}
}
\arguments{
\item{ID,name,matrixClass,strand,bg,tags,profileMatrix}{
See \code{\link{XMatrix}}
}
\item{type}{
The type of TFFM.
}
\item{emission}{
The emission distribution parameters.
}
\item{transition}{
The transition probability matrix.
}
}
\value{
A \code{TFFM} object.
}
\references{
Mathelier, A., and Wasserman, W.W. (2013). The next generation of transcription factor binding site prediction. PLoS Comput. Biol. 9, e1003214.
\url{http://cisreg.cmmt.ubc.ca/TFFM/doc/#}
}
\author{
Ge Tan
}
\examples{
xmlFirst <- file.path(system.file("extdata", package="TFBSTools"),
"tffm_first_order.xml")
tffmFirst <- readXMLTFFM(xmlFirst, type="First")
tffm <- getPosProb(tffmFirst)
}
|