pssm-class | R Documentation |
"pssm"
An object of class "pssm"
represents the position specific score
matrix of a DNA/RNA/amino-acid sequence motif. The entry stores a matrix,
which in row i, column j gives the log-odds probability of nucleotide/or
amino acid i in position j of the motif.
methods for pssm objects.
## S4 method for signature 'pssm'
x$name
## S4 method for signature 'pssm,ANY'
plot(x, y = "missing", ...)
## S4 method for signature 'pssm'
matrixReverseComplement(x)
## S4 method for signature 'pssm,numeric,logical'
addBlank(x, n, b)
## S4 method for signature 'pssm'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
## S4 method for signature 'pssm'
format(x, ...)
x |
An object of class |
name |
Slot name. |
y |
Not use. |
... |
Further potential arguments passed to |
n |
how many spaces should be added. |
b |
logical value to indicate where the space should be added. |
row.names , optional |
see as.data.frame |
Objects can be created by calls of the form
new("pssm", mat, name, alphabet, color, background)
.
signature(x="pssm",
n="numeric", b="logical")
add space into the position frequency matrix for
alignment. b is a bool value, if TRUE, add space to the 3' end, else add
space to the 5' end. n indicates how many spaces should be added.
signature(x = "pssm")
get the reverse
complement of position frequency matrix.
signature(x = "pssm")
Plots the sequence logo of the
position frequency matrix.
Get or set the slot of pssm-class
convert pssm-class
to a data.frame
return the name_pssm of pssm-class
pcm <- read.table(file.path(find.package("motifStack"),
"extdata", "bin_SOLEXA.pcm"))
pcm <- pcm[,3:ncol(pcm)]
rownames(pcm) <- c("A","C","G","T")
motif <- pcm2pssm(pcm)
motif <- new("pssm", mat=motif, name="bin_SOLEXA")
plot(motif)
pcm <- read.table(file.path(find.package("motifStack"),
"extdata", "bin_SOLEXA.pcm"))
pcm <- pcm[,3:ncol(pcm)]
rownames(pcm) <- c("A","C","G","T")
motif <- pcm2pssm(pcm)
motif <- new("pssm", mat=motif, name="bin_SOLEXA")
matrixReverseComplement(motif)
addBlank(motif, 1, FALSE)
addBlank(motif, 3, TRUE)
as(motif,"matrix")
as.data.frame(motif)
format(motif)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.