combineRTCA {RTCA} | R Documentation |
Combine a list of RTCA objects
combineRTCA(list)
list |
A list of |
The current implementation requires all the objects have exactly the same time-points recorded (or at least of same length).
The combined RTCA
object has an obligatory column in the
phenoData
‘Plate’ (upper-case!), which matches the names of the
RTCA
list. When the list
has no names, the
‘Plate’ field is filled with integer index starting from 1.
A new RTCA
object
Special attention should be given to the cases where the list
parameter partially has names. In this case all items without name
will be assigned to a ‘Plate’ field of empty string
(“”). Therefore it is advised either to assign names to all
items of the list, or leave them all off.
Jitao David Zhang jitao_david.zhang@roche.com
## An artificial example require(RTCA) ofile <- system.file("/extdata/testOutput.csv", package="RTCA") x <- parseRTCA(ofile) xSub1 <- x[,1:3] xSub2 <- x[,4:ncol(x)] xComb <- combineRTCA(list(sub1=xSub1, sub2=xSub2)) identical(exprs(x), exprs(xComb)) pData(xComb)$Plate ## in case of nameless list pData(combineRTCA(list(xSub1, xSub2)))$Plate ## partial names pData(combineRTCA(list(a=xSub1, xSub2)))$Plate