Description Usage Arguments Details Value References Examples
Defines the MAT model matrix for a set of sequences.
1 2 3 |
seq |
genomic sequences. The function setMatVector is designed for one individual sequence. |
Calculates the model matrix for the MAT background model for a given set of genomic sequences. Allows fitting of the MAT model for the purposes of background signal estimation.
setMatVector is designed for internal use only.
setMatMatrix
Returns a matrix with nrows=length(seq) & ncol = 80.
setMatVector
nReturns a vector of length 80
Kapur, K., Xing, Y., Ouyang, Z., Wong, WH. (2007) Exon arrays provide accurate assessments of gene expression Genome Biol. 8(5):R82
Johnson, W.E., Li, W., Meyer, C.A., Gottardo, R., Carroll, J.S., Brown, M., Liu, X.S. (2006) Model-based analysis of tiling-arrays for ChIP-chip. Proc Natl Acad Sci USA 103:12457-12462
1 2 3 4 5 6 7 8 9 | ## Generate a random sequence
seq <- sample(c("A","C","G","T"), 25, replace=TRUE)
seq <- paste(seq,collapse="")
mat.vec <- setMatVector(seq) ## Returns a vector of length 80
## Generate a random sequence
seq <- replicate(2, sample(c("A","C","G","T"), 25, replace=TRUE), simplify = FALSE)
seq <- sapply(seq, paste, collapse = "")
mat.matrix <- setMatMatrix(seq) ## Returns a 2x80 matrix
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.