Description Usage Arguments Value Author(s) References See Also Examples
View source: R/AutoPamGeneMix.R
This is a wrapper function for PamGeneMix
and can be used to fit peptide-specific semi-parametric mixed effects
models to cleaned PamChip microarray data from function PreProcessAllPeptides
. The structure of the function is more or less the same as PamGeneMix
.
However, it automates the analysis for list of peptides.
Function can handel complex mean structures and complex random effects structures depending on the experimental design of the PamChip arrays.
It estimates mean smoothing function and first order derivative, the velocity, of the fitted curve along with point-wise 95% confidence intervals.
The estimated group specific velocities are compared and tested at first, end time points as well as for entire velocity profile.
However, velocities can be compared at any time point within the available time range. All these tests are performed for each peptide separately.
This function can handel two or more grouping structures in the data. Function returns list of data frames in which p-values are given.
And corresponsing fitted gamm output ojects for each peptide is saved as Rdata file.
For S4 class information, s. PamChipAllPepResults
.
1 2 3 4 5 6 | AutoPamGeneMix(formula=y~-1+ResTrt+s(time,by=ResTrt,bs="tp",m=3),
Weights=varIdent(form=~1|ResTrt),
Random.structure=list(ArrayNum=~1,CellLineResTrt=~1+time+time2,ID=~1+time+time2),
CleanedPamData,
TestAt=NA,
PathOutPut)
|
formula |
A GAM formula (see also |
Weights |
In the generalized case, weights with the same meaning as |
Random.structure |
The (optional) random effects structure as specified in a call to |
CleanedPamData |
A data frame with cleaned PamChip array data from |
TestAt |
Time point at which test should be performed, possible value should be 0<t<end time. By default the estimated group specific velocities will be compared and tested at first, end time points as well as for entire velocity profile |
PathOutPut |
Direct path where the output object from PamGeneMix can be saved. If missing objects are saved to current working directory. |
A list of objects of class PamChipAllPepResults
.
Pushpike Thilakarathne, Ziv Shkedy and Dan Lin
Bowman,A.W. and Azzalini,A. (1997) Applied Smoothing Techniques for Data Analysis. Oxford Science Publications, New York.
Fitzmaurice,G. et al. (eds) (2008) Longitudinal Data Analysis. Chapman & Hall/CRC, New York
Pushpike J. Thilakarathne, Lieven Clement, Dan Lin,Ziv Shkedy, Adetayo Kasim, Willem Talloen, Matthias Versele, and Geert Verbeke. The use of semiparametric mixed models to analyze PamChip peptide array data: an application to an oncology experiment. Bioinformatics (2011) 27(20): 2859-2865 first published online August 16, 2011 doi:10.1093/bioinformatics/btr475.
Versele,M. et al. (2009) Response prediction to a multitargeted kinase inhibitor in cancer cell lines and xenograft tumors using high-content tyrosine peptide arrays with a kinetic readout. Mol. Cancer Therap., 8, 1846-1855.
Wood,S.N. (2006) Generalized Additive Models: An Introduction with R . Chapman & Hall/CRC, New York.
Wood, S.N. (2003) Thin plate regression splines. J.R.Statist.Soc.B 65(1):95-114
PamGeneMix
, PreProcessAllPeptides
, PreProcessPam
, gamm
, lme
, gam
, glm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | data(PamChipData)
PeptidesNames<-setdiff(colnames(PamChipData),
c("ID", "ResState", "ArrayNum", "CellName", "TreatName","Time"))
#------- only two groups in the data -------------------
temp1<-PreProcessAllPeptides(pep.names=PeptidesNames[1:5],
PamSig=PamChipData[PamChipData[,c("ResState")]=="R",],PathOutPut="C:/Temp")
# Case I -----------------------------------
# Testing the group specific velocities at t=0,t=end and for entire profile.
Results1<-AutoPamGeneMix(formula=y~-1+ResTrt+s(time,by=ResTrt,bs="tp",m=3),
Weights=varIdent(form=~1|ResTrt),
Random.structure=list(ArrayNum=~1,CellLineResTrt=~1+time+time2,ID=~1+time+time2),
temp1,PathOutPut="C:/FittedGamm")
#---- use show
show(Results1)
#- output -
#-------- Results for set of Peptides --------
#Class : PamChipAllPepResults
#No. Peptides : 5
#Total Run time (in seconds) : 133.89
#Number of Groups : 2
#Fitted Gamm Objects are saved as RData Objects in :
# C:/FittedGamm
#-----------------------------------------
#use --
VolcanoPam(Results1,Topp=5,plotting=TRUE)
# Case II-----------------------------------
# Testing the group specific velocities at t=0,t=end, t=30, and for entire profile.
Results2<-AutoPamGeneMix(formula=y~-1+ResTrt+s(time,by=ResTrt,bs="tp",m=3),
Weights=varIdent(form=~1|ResTrt),
Random.structure=list(ArrayNum=~1,CellLineResTrt=~1+time+time2,ID=~1+time+time2),
temp1,TestAt=30,PathOutPut="C:/FittedGamm")
#---- use show
#show(Results2)
#VolcanoPam(Results2,Topp=5,plotting=TRUE)
#------- Four groups in the data ---
# Apply preprocessing steps for each peptide
temp2<-PreProcessAllPeptides(pep.names=PeptidesNames,
PamSig=PamChipData,PathOutPut="C:/Temp")
#-----------------------------------
# Fit the model for each peptide
# This would take approximately 6 hrs to run !!! and depends on your system speed.
ResultsAll<-AutoPamGeneMix(formula=y~-1+ResTrt+s(time,by=ResTrt,bs="tp",m=3),
Weights=varIdent(form=~1|ResTrt),
Random.structure=list(ArrayNum=~1,CellLineResTrt=~1+time+time2,ID=~1+time+time2),
temp2,TestAt=30,PathOutPut="C:/FittedGamm")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.