########################################
##### methods for the generic function
########################################
showMethods("betweensampleVariance")
###################################################
# Creating data of a aclinicalProteomicsData class
###################################################
data(liverdata)
data(liver_pheno)
OBJECT=new("aclinicalProteomicsData")
OBJECT@rawSELDIdata=as.matrix(liverdata)
OBJECT@covariates=c("tumor" , "sex")
OBJECT@phenotypicData=as.matrix(liver_pheno)
OBJECT@variableClass=c('numeric','factor','factor')
OBJECT@no.peaks=53
Data=OBJECT
#################################################################################
# Data manipulation carried out internally by the betweensampleVariance function
#################################################################################
rawData <- proteomicsExprsData(Data)
no.peaks <- Data@no.peaks
JUNK_DATA <- sampleClusteredData(rawData,no.peaks)
JUNK_DATA=negativeIntensitiesCorrection(JUNK_DATA)
# we use the log-basetwo2 expression values
LOG_DATA <- log2(JUNK_DATA)
#######################################################################################
# compute biological variation, difference to be estimated, and the p-values
#######################################################################################
BiovarDiffSig <- betweensampleVariance(OBJECT)
BiovarDiffSig
Run the code above in your browser using DataLab