require(qpcR)
## Loading required package: qpcR
## Loading required package: MASS
## Loading required package: minpack.lm
## Loading required package: rgl
## Loading required package: robustbase
## Loading required package: Matrix
require(plyr)
## Loading required package: plyr
require(ggplot2)
## Loading required package: ggplot2
require(splitstackshape)
## Loading required package: splitstackshape
## Loading required package: data.table
rep1<-read.csv("Actin3rawfluoro.csv", header = T)
rep1$X<-NULL
rep1<-rename(rep1, c("Cycle" = "Cycles", "A1" = "H_C_1", "A2" = "N_C_1",
"A3"= "S_C_1", "A4"="H_T_1", "A5"="N_T_1","A6"="S_T_1",
"A7"="NT_C_1","B1" = "H_C_2", "B2" = "N_C_2","B3"= "S_C_2",
"B4"="H_T_2", "B5"="N_T_2", "B6"="S_T_2","B7"="NT_C_2",
"C1" = "H_C_3", "C2" = "N_C_3","C3"= "S_C_3","C4"="H_T_3",
"C5"="N_T_3", "C6"="S_T_3", "C7"="NT_C_3","D1" = "H_C_4",
"D2" = "N_C_4","D3"= "S_C_4", "D4"="H_T_4", "D5"="N_T_4",
"D6"="S_T_4", "D7"="NT_C_4","E1" = "H_C_5", "E2" = "N_C_5",
"E3"= "S_C_5", "E4"="H_T_5", "E5"="N_T_5", "E6"="S_T_5",
"F1" = "H_C_6", "F2" = "N_C_6","F3"= "S_C_6", "F4"="H_T_6",
"F5"="N_T_6", "F6"="S_T_6","G1" = "H_C_7", "G2" = "N_C_7",
"G3"= "S_C_7", "G4"="H_T_7", "G5"="N_T_7", "G6"="S_T_7",
"H1" = "H_C_8", "H2" = "N_C_8","H3"= "S_C_8", "H4"="H_T_8",
"H5"="N_T_8", "H6"="S_T_8"))
rep1ct<-pcrbatch(rep1, fluo=NULL)
## Making model for H_C_1 (l4)
## => Fitting passed...
##
## Making model for N_C_1 (l4)
## => Fitting passed...
##
## Making model for S_C_1 (l4)
## => Fitting passed...
##
## Making model for H_T_1 (l4)
## => Fitting passed...
##
## Making model for N_T_1 (l4)
## => Fitting passed...
##
## Making model for S_T_1 (l4)
## => Fitting passed...
##
## Making model for NT_C_1 (l4)
## => Fitting passed...
##
## Making model for H_C_2 (l4)
## => Fitting passed...
##
## Making model for N_C_2 (l4)
## => Fitting passed...
##
## Making model for S_C_2 (l4)
## => Fitting passed...
##
## Making model for H_T_2 (l4)
## => Fitting passed...
##
## Making model for N_T_2 (l4)
## => Fitting passed...
##
## Making model for S_T_2 (l4)
## => Fitting passed...
##
## Making model for NT_C_2 (l4)
## => Fitting passed...
##
## Making model for H_C_3 (l4)
## => Fitting passed...
##
## Making model for N_C_3 (l4)
## => Fitting passed...
##
## Making model for S_C_3 (l4)
## => Fitting passed...
##
## Making model for H_T_3 (l4)
## => Fitting passed...
##
## Making model for N_T_3 (l4)
## => Fitting passed...
##
## Making model for S_T_3 (l4)
## => Fitting passed...
##
## Making model for NT_C_3 (l4)
## => Fitting passed...
##
## Making model for H_C_4 (l4)
## => Fitting passed...
##
## Making model for N_C_4 (l4)
## => Fitting passed...
##
## Making model for S_C_4 (l4)
## => Fitting passed...
##
## Making model for H_T_4 (l4)
## => Fitting passed...
##
## Making model for N_T_4 (l4)
## => Fitting passed...
##
## Making model for S_T_4 (l4)
## => Fitting passed...
##
## Making model for NT_C_4 (l4)
## => Fitting passed...
##
## Making model for H_C_5 (l4)
## => Fitting passed...
##
## Making model for N_C_5 (l4)
## => Fitting passed...
##
## Making model for S_C_5 (l4)
## => Fitting passed...
##
## Making model for H_T_5 (l4)
## => Fitting passed...
##
## Making model for N_T_5 (l4)
## => Fitting passed...
##
## Making model for S_T_5 (l4)
## => Fitting passed...
##
## Making model for H_C_6 (l4)
## => Fitting passed...
##
## Making model for N_C_6 (l4)
## => Fitting passed...
##
## Making model for S_C_6 (l4)
## => Fitting passed...
##
## Making model for H_T_6 (l4)
## => Fitting passed...
##
## Making model for N_T_6 (l4)
## => Fitting passed...
##
## Making model for S_T_6 (l4)
## => Fitting passed...
##
## Making model for H_C_7 (l4)
## => Fitting passed...
##
## Making model for N_C_7 (l4)
## => Fitting passed...
##
## Making model for S_C_7 (l4)
## => Fitting passed...
##
## Making model for H_T_7 (l4)
## => Fitting passed...
##
## Making model for N_T_7 (l4)
## => Fitting passed...
##
## Making model for S_T_7 (l4)
## => Fitting passed...
##
## Making model for H_C_8 (l4)
## => Fitting passed...
##
## Making model for N_C_8 (l4)
## => Fitting passed...
##
## Making model for S_C_8 (l4)
## => Fitting passed...
##
## Making model for H_T_8 (l4)
## => Fitting passed...
##
## Making model for N_T_8 (l4)
## => Fitting passed...
##
## Making model for S_T_8 (l4)
## => Fitting passed...
##
## Calculating delta of first/second derivative maxima...
## .........10.........20.........30.........40.........50
## ..
## Analyzing H_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
rep1res<-setNames(data.frame(t(rep1ct)),rep1ct[,1])
rep1res<-rep1res[-1,]
rep1res$Names<-rownames(rep1res)
rep1res2<-cSplit_f(rep1res, splitCols=c("Names"), sep="_", drop = F)
rep1res2<-rename(rep1res2, c("Names_1"="Pop", "Names_2"="Treat", "Names_3"="Sample"))
rep1res2$Gene<-rep("Actin", length(rep1res2))
rep1res2$sig.eff<-as.numeric(as.character(rep1res2$sig.eff))
rep1res2$sig.cpD2<-as.numeric(as.character(rep1res2$sig.cpD2))
ggplot(rep1res2, aes(x=Names,y=sig.cpD2, fill=Pop))+geom_bar(stat="identity")
expr<-function(x,y){
newVar<-(1+x)^y
1/newVar
}
rep1res2$expression<-expr(rep1res2$sig.eff, rep1res2$sig.cpD2)
ggplot(rep1res2, aes(x=Names,y=expression, fill=Pop))+geom_bar(stat="identity")
rep2<-read.csv("Actin4rawfluoro.csv", header = T)
rep2$X<-NULL
rep2<-rename(rep2, c("Cycle" = "Cycles", "A1" = "H_C_1", "A2" = "N_C_1",
"A3"= "S_C_1", "A4"="H_T_1", "A5"="N_T_1","A6"="S_T_1",
"A7"="NT_C_1","B1" = "H_C_2", "B2" = "N_C_2","B3"= "S_C_2",
"B4"="H_T_2", "B5"="N_T_2", "B6"="S_T_2","B7"="NT_C_2",
"C1" = "H_C_3", "C2" = "N_C_3","C3"= "S_C_3","C4"="H_T_3",
"C5"="N_T_3", "C6"="S_T_3", "C7"="NT_C_3","D1" = "H_C_4",
"D2" = "N_C_4","D3"= "S_C_4", "D4"="H_T_4", "D5"="N_T_4",
"D6"="S_T_4", "D7"="NT_C_4","E1" = "H_C_5", "E2" = "N_C_5",
"E3"= "S_C_5", "E4"="H_T_5", "E5"="N_T_5", "E6"="S_T_5",
"F1" = "H_C_6", "F2" = "N_C_6","F3"= "S_C_6", "F4"="H_T_6",
"F5"="N_T_6", "F6"="S_T_6","G1" = "H_C_7", "G2" = "N_C_7",
"G3"= "S_C_7", "G4"="H_T_7", "G5"="N_T_7", "G6"="S_T_7",
"H1" = "H_C_8", "H2" = "N_C_8","H3"= "S_C_8", "H4"="H_T_8",
"H5"="N_T_8", "H6"="S_T_8"))
rep2ct<-pcrbatch(rep2, fluo=NULL)

## Making model for H_C_1 (l4)
## => Fitting passed...
##
## Making model for N_C_1 (l4)
## => Fitting passed...
##
## Making model for S_C_1 (l4)
## => Fitting passed...
##
## Making model for H_T_1 (l4)
## => Fitting passed...
##
## Making model for N_T_1 (l4)
## => Fitting passed...
##
## Making model for S_T_1 (l4)
## => Fitting passed...
##
## Making model for NT_C_1 (l4)
## => Fitting passed...
##
## Making model for H_C_2 (l4)
## => Fitting passed...
##
## Making model for N_C_2 (l4)
## => Fitting passed...
##
## Making model for S_C_2 (l4)
## => Fitting passed...
##
## Making model for H_T_2 (l4)
## => Fitting passed...
##
## Making model for N_T_2 (l4)
## => Fitting passed...
##
## Making model for S_T_2 (l4)
## => Fitting passed...
##
## Making model for NT_C_2 (l4)
## => Fitting failed. Tagging name of NT_C_2...
##
## Making model for H_C_3 (l4)
## => Fitting passed...
##
## Making model for N_C_3 (l4)
## => Fitting passed...
##
## Making model for S_C_3 (l4)
## => Fitting passed...
##
## Making model for H_T_3 (l4)
## => Fitting passed...
##
## Making model for N_T_3 (l4)
## => Fitting passed...
##
## Making model for S_T_3 (l4)
## => Fitting passed...
##
## Making model for NT_C_3 (l4)
## => Fitting failed. Tagging name of NT_C_3...
##
## Making model for H_C_4 (l4)
## => Fitting passed...
##
## Making model for N_C_4 (l4)
## => Fitting passed...
##
## Making model for S_C_4 (l4)
## => Fitting passed...
##
## Making model for H_T_4 (l4)
## => Fitting passed...
##
## Making model for N_T_4 (l4)
## => Fitting passed...
##
## Making model for S_T_4 (l4)
## => Fitting passed...
##
## Making model for NT_C_4 (l4)
## => Fitting failed. Tagging name of NT_C_4...
##
## Making model for H_C_5 (l4)
## => Fitting passed...
##
## Making model for N_C_5 (l4)
## => Fitting passed...
##
## Making model for S_C_5 (l4)
## => Fitting passed...
##
## Making model for H_T_5 (l4)
## => Fitting passed...
##
## Making model for N_T_5 (l4)
## => Fitting passed...
##
## Making model for S_T_5 (l4)
## => Fitting passed...
##
## Making model for H_C_6 (l4)
## => Fitting passed...
##
## Making model for N_C_6 (l4)
## => Fitting passed...
##
## Making model for S_C_6 (l4)
## => Fitting passed...
##
## Making model for H_T_6 (l4)
## => Fitting passed...
##
## Making model for N_T_6 (l4)
## => Fitting passed...
##
## Making model for S_T_6 (l4)
## => Fitting passed...
##
## Making model for H_C_7 (l4)
## => Fitting passed...
##
## Making model for N_C_7 (l4)
## => Fitting passed...
##
## Making model for S_C_7 (l4)
## => Fitting passed...
##
## Making model for H_T_7 (l4)
## => Fitting passed...
##
## Making model for N_T_7 (l4)
## => Fitting passed...
##
## Making model for S_T_7 (l4)
## => Fitting passed...
##
## Making model for H_C_8 (l4)
## => Fitting passed...
##
## Making model for N_C_8 (l4)
## => Fitting passed...
##
## Making model for S_C_8 (l4)
## => Fitting passed...
##
## Making model for H_T_8 (l4)
## => Fitting passed...
##
## Making model for N_T_8 (l4)
## => Fitting passed...
##
## Making model for S_T_8 (l4)
## => Fitting passed...
##
## Calculating delta of first/second derivative maxima...
## .........10.........20.........30.........40.........50
## ..
## Analyzing H_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing *NT_C_2* ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing *NT_C_3* ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing *NT_C_4* ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
rep2res<-setNames(data.frame(t(rep2ct)),rep2ct[,1])
rep2res<-rep2res[-1,]
rep2res$Names<-rownames(rep2res)
rep2res2<-cSplit_f(rep2res, splitCols=c("Names"), sep="_", drop = F)
rep2res2<-rename(rep2res2, c("Names_1"="Pop", "Names_2"="Treat", "Names_3"="Sample"))
rep2res2$Gene<-rep("Actin", length(rep2res2))
rep2res2$sig.eff<-as.numeric(as.character(rep2res2$sig.eff))
rep2res2$sig.cpD2<-as.numeric(as.character(rep2res2$sig.cpD2))
ggplot(rep2res2, aes(x=Names,y=sig.cpD2, fill=Pop))+geom_bar(stat="identity")
expr<-function(x,y){
newVar<-(1+x)^y
1/newVar
}
rep2res2$expression<-expr(rep2res2$sig.eff, rep2res2$sig.cpD2)
ggplot(rep2res2, aes(x=Names,y=expression, fill=Pop))+geom_bar(stat="identity")
repcomp<-as.data.frame(rep1res2$sig.cpD2-rep2res2$sig.cpD2)
repcomp$Names<-rep1res2$Names
repcomp<-cSplit_f(repcomp, splitCols=c("Names"), sep="_", drop = F)
repcomp<-rename(repcomp, c("rep1res2$sig.cpD2 - rep2res2$sig.cpD2"="rep.diff", "Names_1"="Pop", "Names_2"="Treat", "Names_3"="Sample"))
ggplot(repcomp, aes(x=Names, y=rep.diff, fill=Pop))+geom_bar(stat="identity")
rep3<-read.csv("Actin1rawfluoro.csv", header = T)
rep3$X<-NULL
rep3<-rename(rep3, c("Cycle" = "Cycles", "A1" = "H_C_1", "A2" = "N_C_1",
"A3"= "S_C_1", "A4"="H_T_1", "A5"="N_T_1","A6"="S_T_1",
"A7"="NT_C_1","B1" = "H_C_2", "B2" = "N_C_2","B3"= "S_C_2",
"B4"="H_T_2", "B5"="N_T_2", "B6"="S_T_2","B7"="NT_C_2",
"C1" = "H_C_3", "C2" = "N_C_3","C3"= "S_C_3","C4"="H_T_3",
"C5"="N_T_3", "C6"="S_T_3", "C7"="NT_C_3","D1" = "H_C_4",
"D2" = "N_C_4","D3"= "S_C_4", "D4"="H_T_4", "D5"="N_T_4",
"D6"="S_T_4", "D7"="NT_C_4","E1" = "H_C_5", "E2" = "N_C_5",
"E3"= "S_C_5", "E4"="H_T_5", "E5"="N_T_5", "E6"="S_T_5",
"F1" = "H_C_6", "F2" = "N_C_6","F3"= "S_C_6", "F4"="H_T_6",
"F5"="N_T_6", "F6"="S_T_6","G1" = "H_C_7", "G2" = "N_C_7",
"G3"= "S_C_7", "G4"="H_T_7", "G5"="N_T_7", "G6"="S_T_7",
"H1" = "H_C_8", "H2" = "N_C_8","H3"= "S_C_8", "H4"="H_T_8",
"H5"="N_T_8", "H6"="S_T_8"))
rep3ct<-pcrbatch(rep3, fluo=NULL)

## Making model for H_C_1 (l4)
## => Fitting passed...
##
## Making model for N_C_1 (l4)
## => Fitting passed...
##
## Making model for S_C_1 (l4)
## => Fitting passed...
##
## Making model for H_T_1 (l4)
## => Fitting passed...
##
## Making model for N_T_1 (l4)
## => Fitting passed...
##
## Making model for S_T_1 (l4)
## => Fitting passed...
##
## Making model for NT_C_1 (l4)
## => Fitting passed...
##
## Making model for H_C_2 (l4)
## => Fitting passed...
##
## Making model for N_C_2 (l4)
## => Fitting passed...
##
## Making model for S_C_2 (l4)
## => Fitting passed...
##
## Making model for H_T_2 (l4)
## => Fitting passed...
##
## Making model for N_T_2 (l4)
## => Fitting passed...
##
## Making model for S_T_2 (l4)
## => Fitting passed...
##
## Making model for NT_C_2 (l4)
## => Fitting passed...
##
## Making model for H_C_3 (l4)
## => Fitting passed...
##
## Making model for N_C_3 (l4)
## => Fitting passed...
##
## Making model for S_C_3 (l4)
## => Fitting passed...
##
## Making model for H_T_3 (l4)
## => Fitting passed...
##
## Making model for N_T_3 (l4)
## => Fitting passed...
##
## Making model for S_T_3 (l4)
## => Fitting passed...
##
## Making model for NT_C_3 (l4)
## => Fitting passed...
##
## Making model for H_C_4 (l4)
## => Fitting passed...
##
## Making model for N_C_4 (l4)
## => Fitting passed...
##
## Making model for S_C_4 (l4)
## => Fitting passed...
##
## Making model for H_T_4 (l4)
## => Fitting passed...
##
## Making model for N_T_4 (l4)
## => Fitting passed...
##
## Making model for S_T_4 (l4)
## => Fitting passed...
##
## Making model for NT_C_4 (l4)
## => Fitting passed...
##
## Making model for H_C_5 (l4)
## => Fitting passed...
##
## Making model for N_C_5 (l4)
## => Fitting passed...
##
## Making model for S_C_5 (l4)
## => Fitting passed...
##
## Making model for H_T_5 (l4)
## => Fitting passed...
##
## Making model for N_T_5 (l4)
## => Fitting passed...
##
## Making model for S_T_5 (l4)
## => Fitting passed...
##
## Making model for H_C_6 (l4)
## => Fitting passed...
##
## Making model for N_C_6 (l4)
## => Fitting passed...
##
## Making model for S_C_6 (l4)
## => Fitting passed...
##
## Making model for H_T_6 (l4)
## => Fitting passed...
##
## Making model for N_T_6 (l4)
## => Fitting passed...
##
## Making model for S_T_6 (l4)
## => Fitting passed...
##
## Making model for H_C_7 (l4)
## => Fitting passed...
##
## Making model for N_C_7 (l4)
## => Fitting passed...
##
## Making model for S_C_7 (l4)
## => Fitting passed...
##
## Making model for H_T_7 (l4)
## => Fitting passed...
##
## Making model for N_T_7 (l4)
## => Fitting passed...
##
## Making model for S_T_7 (l4)
## => Fitting passed...
##
## Making model for H_C_8 (l4)
## => Fitting passed...
##
## Making model for N_C_8 (l4)
## => Fitting passed...
##
## Making model for S_C_8 (l4)
## => Fitting passed...
##
## Making model for H_T_8 (l4)
## => Fitting passed...
##
## Making model for N_T_8 (l4)
## => Fitting passed...
##
## Making model for S_T_8 (l4)
## => Fitting passed...
##
## Calculating delta of first/second derivative maxima...
## .........10.........20.........30.........40.........50
## ..
## Analyzing H_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
rep3res<-setNames(data.frame(t(rep3ct)),rep3ct[,1])
rep3res<-rep3res[-1,]
rep3res$Names<-rownames(rep3res)
rep3res2<-cSplit_f(rep3res, splitCols=c("Names"), sep="_", drop = F)
rep3res2<-rename(rep3res2, c("Names_1"="Pop", "Names_2"="Treat", "Names_3"="Sample"))
rep3res2$Gene<-rep("Actin", length(rep3res2))
rep3res2$sig.eff<-as.numeric(as.character(rep3res2$sig.eff))
rep3res2$sig.cpD2<-as.numeric(as.character(rep3res2$sig.cpD2))
ggplot(rep3res2, aes(x=Names,y=sig.cpD2, fill=Pop))+geom_bar(stat="identity")
expr<-function(x,y){
newVar<-(1+x)^y
1/newVar
}
rep3res2$expression<-expr(rep3res2$sig.eff, rep3res2$sig.cpD2)
ggplot(rep3res2, aes(x=Names,y=expression, fill=Pop))+geom_bar(stat="identity")
rep4<-read.csv("Actin2rawfluoro.csv", header = T)
rep4$X<-NULL
rep4<-rename(rep4, c("Cycle" = "Cycles", "A1" = "H_C_1", "A2" = "N_C_1",
"A3"= "S_C_1", "A4"="H_T_1", "A5"="N_T_1","A6"="S_T_1",
"A7"="NT_C_1","B1" = "H_C_2", "B2" = "N_C_2","B3"= "S_C_2",
"B4"="H_T_2", "B5"="N_T_2", "B6"="S_T_2","B7"="NT_C_2",
"C1" = "H_C_3", "C2" = "N_C_3","C3"= "S_C_3","C4"="H_T_3",
"C5"="N_T_3", "C6"="S_T_3", "C7"="NT_C_3","D1" = "H_C_4",
"D2" = "N_C_4","D3"= "S_C_4", "D4"="H_T_4", "D5"="N_T_4",
"D6"="S_T_4", "D7"="NT_C_4","E1" = "H_C_5", "E2" = "N_C_5",
"E3"= "S_C_5", "E4"="H_T_5", "E5"="N_T_5", "E6"="S_T_5",
"F1" = "H_C_6", "F2" = "N_C_6","F3"= "S_C_6", "F4"="H_T_6",
"F5"="N_T_6", "F6"="S_T_6","G1" = "H_C_7", "G2" = "N_C_7",
"G3"= "S_C_7", "G4"="H_T_7", "G5"="N_T_7", "G6"="S_T_7",
"H1" = "H_C_8", "H2" = "N_C_8","H3"= "S_C_8", "H4"="H_T_8",
"H5"="N_T_8", "H6"="S_T_8"))
rep4ct<-pcrbatch(rep4, fluo=NULL)

## Making model for H_C_1 (l4)
## => Fitting passed...
##
## Making model for N_C_1 (l4)
## => Fitting passed...
##
## Making model for S_C_1 (l4)
## => Fitting passed...
##
## Making model for H_T_1 (l4)
## => Fitting passed...
##
## Making model for N_T_1 (l4)
## => Fitting passed...
##
## Making model for S_T_1 (l4)
## => Fitting passed...
##
## Making model for NT_C_1 (l4)
## => Fitting passed...
##
## Making model for H_C_2 (l4)
## => Fitting passed...
##
## Making model for N_C_2 (l4)
## => Fitting passed...
##
## Making model for S_C_2 (l4)
## => Fitting passed...
##
## Making model for H_T_2 (l4)
## => Fitting passed...
##
## Making model for N_T_2 (l4)
## => Fitting passed...
##
## Making model for S_T_2 (l4)
## => Fitting passed...
##
## Making model for NT_C_2 (l4)
## => Fitting passed...
##
## Making model for H_C_3 (l4)
## => Fitting passed...
##
## Making model for N_C_3 (l4)
## => Fitting passed...
##
## Making model for S_C_3 (l4)
## => Fitting passed...
##
## Making model for H_T_3 (l4)
## => Fitting passed...
##
## Making model for N_T_3 (l4)
## => Fitting passed...
##
## Making model for S_T_3 (l4)
## => Fitting passed...
##
## Making model for NT_C_3 (l4)
## => Fitting passed...
##
## Making model for H_C_4 (l4)
## => Fitting passed...
##
## Making model for N_C_4 (l4)
## => Fitting passed...
##
## Making model for S_C_4 (l4)
## => Fitting passed...
##
## Making model for H_T_4 (l4)
## => Fitting passed...
##
## Making model for N_T_4 (l4)
## => Fitting passed...
##
## Making model for S_T_4 (l4)
## => Fitting passed...
##
## Making model for NT_C_4 (l4)
## => Fitting passed...
##
## Making model for H_C_5 (l4)
## => Fitting passed...
##
## Making model for N_C_5 (l4)
## => Fitting passed...
##
## Making model for S_C_5 (l4)
## => Fitting passed...
##
## Making model for H_T_5 (l4)
## => Fitting passed...
##
## Making model for N_T_5 (l4)
## => Fitting passed...
##
## Making model for S_T_5 (l4)
## => Fitting passed...
##
## Making model for H_C_6 (l4)
## => Fitting passed...
##
## Making model for N_C_6 (l4)
## => Fitting passed...
##
## Making model for S_C_6 (l4)
## => Fitting passed...
##
## Making model for H_T_6 (l4)
## => Fitting passed...
##
## Making model for N_T_6 (l4)
## => Fitting passed...
##
## Making model for S_T_6 (l4)
## => Fitting passed...
##
## Making model for H_C_7 (l4)
## => Fitting passed...
##
## Making model for N_C_7 (l4)
## => Fitting passed...
##
## Making model for S_C_7 (l4)
## => Fitting passed...
##
## Making model for H_T_7 (l4)
## => Fitting passed...
##
## Making model for N_T_7 (l4)
## => Fitting passed...
##
## Making model for S_T_7 (l4)
## => Fitting passed...
##
## Making model for H_C_8 (l4)
## => Fitting passed...
##
## Making model for N_C_8 (l4)
## => Fitting passed...
##
## Making model for S_C_8 (l4)
## => Fitting passed...
##
## Making model for H_T_8 (l4)
## => Fitting passed...
##
## Making model for N_T_8 (l4)
## => Fitting passed...
##
## Making model for S_T_8 (l4)
## => Fitting passed...
##
## Calculating delta of first/second derivative maxima...
## .........10.........20.........30.........40.........50
## ..
## Analyzing H_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_1 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_2 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_3 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing NT_C_4 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_5 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_6 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_7 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_C_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing H_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing N_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
##
## Analyzing S_T_8 ...
## Calculating 'eff' and 'ct' from sigmoidal model...
## Using window-of-linearity...
## Fitting exponential model...
## Using linear regression of efficiency (LRE)...
rep4res<-setNames(data.frame(t(rep4ct)),rep4ct[,1])
rep4res<-rep4res[-1,]
rep4res$Names<-rownames(rep4res)
rep4res2<-cSplit_f(rep4res, splitCols=c("Names"), sep="_", drop = F)
rep4res2<-rename(rep4res2, c("Names_1"="Pop", "Names_2"="Treat", "Names_3"="Sample"))
rep4res2$Gene<-rep("Actin", length(rep4res2))
rep4res2$sig.eff<-as.numeric(as.character(rep4res2$sig.eff))
rep4res2$sig.cpD2<-as.numeric(as.character(rep4res2$sig.cpD2))
ggplot(rep4res2, aes(x=Names,y=sig.cpD2, fill=Pop))+geom_bar(stat="identity")
expr<-function(x,y){
newVar<-(1+x)^y
1/newVar
}
rep4res2$expression<-expr(rep4res2$sig.eff, rep4res2$sig.cpD2)
ggplot(rep4res2, aes(x=Names,y=expression, fill=Pop))+geom_bar(stat="identity")
repcomp<-as.data.frame(rep3res2$sig.cpD2-rep4res2$sig.cpD2)
repcomp$Names<-rep3res2$Names
repcomp<-cSplit_f(repcomp, splitCols=c("Names"), sep="_", drop = F)
repcomp<-rename(repcomp, c("rep3res2$sig.cpD2 - rep4res2$sig.cpD2"="rep.diff", "Names_1"="Pop", "Names_2"="Treat", "Names_3"="Sample"))
ggplot(repcomp, aes(x=Names, y=rep.diff, fill=Pop))+geom_bar(stat="identity")
actstandard<-as.data.frame(cbind(rep1res2$expression,rep1res2$Names,rep1res2$Pop,rep1res2$Treat,rep2res2$expression,rep3res2$expression,rep4res2$expression,rep1res2$sig.cpD2,rep2res2$sig.cpD2,rep3res2$sig.cpD2,rep4res2$sig.cpD2))
actstandard<-rename(actstandard, c(V1="rep1.expr","V2"="name","V3"="pop","V4"="treat"
,"V5"="rep2.expr","V6"="rep3.expr","V7"="rep4.expr",
"V8"="rep1.Ct","V9"="rep2.Ct","V10"="rep3.Ct","V11"="rep4.Ct"))
actstandard$rep1.expr<-as.numeric(as.character(actstandard$rep1.expr))
actstandard$rep2.expr<-as.numeric(as.character(actstandard$rep2.expr))
actstandard$rep3.expr<-as.numeric(as.character(actstandard$rep3.expr))
actstandard$rep4.expr<-as.numeric(as.character(actstandard$rep4.expr))
actstandard$avgexpr<-rowMeans(actstandard[,c("rep1.expr","rep2.expr","rep3.expr","rep4.expr")],na.rm=F)
actstandard<-actstandard[which(actstandard$pop!=c("NT")),]
ggplot(actstandard, aes(x=treat,y=avgexpr, fill=pop))+geom_boxplot()
fit<-aov(avgexpr~pop+treat+pop:treat,data=actstandard)
fit
## Call:
## aov(formula = avgexpr ~ pop + treat + pop:treat, data = actstandard)
##
## Terms:
## pop treat pop:treat Residuals
## Sum of Squares 1.408412e-17 5.411087e-17 9.717390e-18 1.658841e-16
## Deg. of Freedom 2 1 2 42
##
## Residual standard error: 1.987366e-09
## Estimated effects may be unbalanced
TukeyHSD(fit)
## Tukey multiple comparisons of means
## 95% family-wise confidence level
##
## Fit: aov(formula = avgexpr ~ pop + treat + pop:treat, data = actstandard)
##
## $pop
## diff lwr upr p adj
## N-H 1.129511e-09 -5.775478e-10 2.836571e-09 0.2537138
## S-H -3.818664e-11 -1.745246e-09 1.668873e-09 0.9983730
## S-N -1.167698e-09 -2.874757e-09 5.393611e-10 0.2317285
##
## $treat
## diff lwr upr p adj
## T-C -2.123497e-09 -3.281277e-09 -9.657172e-10 0.0006182
##
## $`pop:treat`
## diff lwr upr p adj
## N:C-H:C 2.177609e-09 -7.887820e-10 5.143999e-09 0.2632276
## S:C-H:C 1.906935e-10 -2.775697e-09 3.157084e-09 0.9999612
## H:T-H:C -1.272179e-09 -4.238569e-09 1.694212e-09 0.7938935
## N:T-H:C -1.190764e-09 -4.157155e-09 1.775626e-09 0.8351472
## S:T-H:C -1.539245e-09 -4.505636e-09 1.427145e-09 0.6354210
## S:C-N:C -1.986915e-09 -4.953306e-09 9.794755e-10 0.3597559
## H:T-N:C -3.449787e-09 -6.416178e-09 -4.833967e-10 0.0143596
## N:T-N:C -3.368373e-09 -6.334763e-09 -4.019824e-10 0.0178899
## S:T-N:C -3.716854e-09 -6.683245e-09 -7.504635e-10 0.0068191
## H:T-S:C -1.462872e-09 -4.429263e-09 1.503518e-09 0.6833126
## N:T-S:C -1.381458e-09 -4.347848e-09 1.584933e-09 0.7324909
## S:T-S:C -1.729939e-09 -4.696330e-09 1.236452e-09 0.5135711
## N:T-H:T 8.141429e-11 -2.884976e-09 3.047805e-09 0.9999994
## S:T-H:T -2.670668e-10 -3.233457e-09 2.699324e-09 0.9997952
## S:T-N:T -3.484811e-10 -3.314872e-09 2.617909e-09 0.9992493
