I am trying to make figures which are automatically generated by TPP.
At this moment, I am stuck in the passing which information into fctSigmoidTR()). This should be different than CCR I believe C: how to plot does response curves using TPP?
I have tried to make the plot for one of the protein named AAK1 as follows:
I think I should pass few constants values like a, b and plateau but I don't know how, I also know that I should be ploting it with TPP:::fctSigmoidTR()) but I don't know which argument it gets as input and with which structure
library(TPP)
library(dplyr)
data("hdacTR_smallExample")
tempRepl1 <- as.numeric(hdacTR_config[1,-1])
TRresults <- analyzeTPPTR(configTable=hdacTR_config, data=hdacTR_data, plotCurves=FALSE)
AAK1 <- TRresults %>% filter(Protein_ID == "AAK1")
hill <- AAK1$slope_Panobinostat_1
if I do this
y <- eval(parse(text = TPP:::fctSigmoidTR()), list(deriv=2, hill=hill))
I get an error
Error in TPP:::fctSigmoidTR() :
argument "deriv" is missing, with no default
and also for ggplot I should give x values too
ggplot(data.frame(x,y)) + geom_line(aes(x=x, y=y)) + ggtitle("TR-curve for AAK1")
is the x like CCR ?