storeDRCurveParams <- function(data, params){
## Store estimated dose response curve parameters in featureData.
## Initialize variables to prevent "no visible binding for global
## variable" NOTE by R CMD check:
expName = protID <- NULL
expNames <- names(data)
curvePars <- drCurveParamNames(names = TRUE, info = TRUE)
for (en in expNames){
idsInDataset <- featureNames(data[[en]])
parsTmp <- subset(params, expName==en & protID %in% idsInDataset,
select=c("protID", curvePars))
fillData <- data.frame("protID"=idsInDataset)
newData <- join(fillData, parsTmp, by="protID")
pData(featureData(data[[en]]))[,curvePars] <- newData[,curvePars]
}
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.