runSAM(data, labels, nbpermut = 500, q = 0.05, plot = TRUE, method
="d.stat",var.equal = TRUE, include.zero = FALSE, paired = FALSE,
seed=123)If 'method = d.stat', a modified t-statistic or F-statistic, respectively, will be computed as proposed by Tusher et al. (2001).
If 'method = wilc.stat', a Wilcoxon rank sum statistic or Wilcoxon signed rank statistic will be used as expression score.
For an analysis of categorical data such as SNP data, 'method' can be set to 'chisq.stat'. In this case Pearson's ChiSquare statistic is computed for each row.
If the variables are ordinal and a trend test should be applied (e.g., in the two-class case, the Cochran-Armitage trend test), 'method = trend.stat' can be employed.
sam ## load data
data(marty)
## Not run:
# ## filtering data
# marty <- expFilter(marty, threshold=3.5, graph=FALSE)
# ## End(Not run)
##Class label 0/1
marty.type.num <- ifelse(marty.type.cl=="Her2+",0,1)
## run sam analysis on example set
example.subset <- marty[1:100,]
samOUT <- runSAM(example.subset, marty.type.num, nbpermut=50, q=0.05, plot=TRUE)
samSIGN <- samOUT[which(samOUT[,"Significant"]),]
Run the code above in your browser using DataLab