Usage Arguments Author(s) Examples
View source: R/getAverageByReps.R
1 | getAveragesByReps(eset, UR=c("PTID", "Plate"))
|
eset |
expressionSet of peptide expression |
UR |
unit of replication (e.g., patient, visit) |
Maria Suprun, Randall J. Ellis, Mayte Suárez-Fariñas
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(Egg)
# adding patient data
bbeaEgg$pData <- mutate(bbeaEgg$pData,
PTID = sapply(strsplit(Sample, "-",fixed=TRUE), head, 1),
SampleType = ifelse(grepl("Buff", Sample),"Buffer",
ifelse(grepl("PP|NP", Sample),
sapply(strsplit(Sample, "-",fixed=TRUE),head, 1), "Patient")))
PDm <- merge(bbeaEgg$pData, PDegg, by = "PTID", all.x = TRUE)
rownames(PDm) <- PDm$File
bbeaEgg$pData <- PDm[colnames(bbeaEgg$Median),]
# convert MFI to normlaized MFI
bbeaN <- MFI2nMFI(bbeaEgg, offset = 0.5, rmNeg = TRUE)
# chnage to the ExpressionSet object
eset <- nMFI2Eset(nMFI.object = bbeaN)
# Average technical replicates
eset.avg <- getAveragesByReps(eset, UR = 'PTID')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.