# Consider quantitative data (i.e. QuantData) from yeast study.
# A time course study with ten time points of interests and three biological replicates.
head(QuantData)
## Calculate sample size for future experiments:
#(1) Minimal number of biological replicates per condition
designSampleSize(data=QuantData,numSample=TRUE,numPep=3,numTran=4,
desiredFC=c(1.25,1.75),FDR=0.05,power=0.8)
#(2) Minimal number of peptides per protein
designSampleSize(data=QuantData,numSample=2,numPep=TRUE,numTran=4,
desiredFC=c(1.25,1.75),FDR=0.05,power=0.8)
#(3) Minimal number of transitions per peptide
designSampleSize(data=QuantData,numSample=2,numPep=3,numTran=TRUE,
desiredFC=c(1.25,1.75),FDR=0.05,power=0.8)
#(4) Power calculation
designSampleSize(data=QuantData,numSample=2,numPep=3,numTran=4,
desiredFC=c(1.25,1.75),FDR=0.05,power=TRUE)
Run the code above in your browser using DataLab