| PPE-operate {PhosR} | R Documentation |
These are methods for combining or subsetting for
PhosphoExperiment object. This provides some convenience for users.
## S4 method for signature 'PhosphoExperiment,ANY,ANY,ANY' x[i, j, drop = TRUE] ## S4 replacement method for signature 'PhosphoExperiment,ANY,ANY,ANY' x[i, j, ...] <- value ## S4 method for signature 'PhosphoExperiment' rbind(..., deparse.level = 1) ## S4 method for signature 'PhosphoExperiment' cbind(..., deparse.level = 1)
x |
A |
i |
For |
j |
For |
drop |
A |
... |
In |
value |
An object of a class specified in the S4 method signature. |
deparse.level |
See |
In the following code snippets, ppe1 and ppe2 is a
PhosphoExperiment object with matching colData.
ppe3 and ppe4 is a PhosphoExperiment object with
matching rowData.
rbind(ppe1, ppe2):Combine row-wise
cbind(ppe3, ppe4):Combine column-wise
Taiyun Kim
method rbind, cbind from
SummarizedExperiment object.
example(PhosphoExperiment, echo = FALSE) n = ncol(phosData) ppe1 = phosData[,seq(round(n/2))] ppe2 = phosData[,-seq(round(n/2))] ppe = cbind(ppe1, ppe2) identical(ppe, phosData) ppe[,seq(round(n/2))] = ppe1 identical(ppe, phosData) p = nrow(phosData) ppe1 = phosData[seq(round(p/2)),] ppe2 = phosData[-seq(round(p/2)),] ppe = rbind(ppe1, ppe2) identical(ppe, phosData) ppe[seq(round(p/2)),] = ppe1 identical(ppe, phosData)