combineRTCA: Combine a list of RTCA objects

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/RTCAfunctions.R

Description

Combine a list of RTCA objects

Usage

1

Arguments

list

A list of RTCA objects

Details

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.

Value

A new RTCA object

Note

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.

Author(s)

Jitao David Zhang jitao_david.zhang@roche.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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

RTCA documentation built on Nov. 8, 2020, 7:52 p.m.