Nothing
convert_2dData_wide_to_long <- function(datWide, idColname, fcStr){
# Convert 2D-TPP dataset to long table
## Initialize variables to prevent "no visible binding for global
## variable" NOTE by R CMD check:
columnName = fc = uniqueID <- NULL
# ptrn <- paste0(idColname,
# "|temperature|",
# "^", fcStr, "[0-9,\\.]+$|",
# "^", fcStr, "[0-9,\\.]+_unmodified")
ptrn <- paste0(idColname,"|temperature|", fcStr)
datLong <- datWide %>% tibble::as_tibble() %>%
select(matches(ptrn)) %>%
gather(columnName, fc, contains(fcStr))
if (idColname != "uniqueID"){
datLong[["uniqueID"]] <- datLong[[idColname]]
datLong[[idColname]] <- NULL
}
datLong <- arrange(datLong, uniqueID)
# Add column with drug concentrations
ptrn <- paste(fcStr, "([0-9,\\.]+)[^0-9]*", sep="")
oldValues <- unique(datLong$columnName)
newValues <- paste(sub(ptrn, "\\1", oldValues), "uM", sep="")
newCol <- plyr::mapvalues(datLong$columnName, oldValues, newValues)
datLong2 <- datLong %>% mutate(drugConc = newCol)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.