R/PeakML.RankProducts.R

Defines functions PeakML.RankProducts

Documented in PeakML.RankProducts

PeakML.RankProducts <- function (sampleGroups, inputTable, groupA, groupB, numberOfPermutations=1000, calculateProduct=TRUE, MinNumOfValidPairs=NA, na.rm=FALSE, RandomPairs=NA)
{
	## Class labels
	HITS <- c(which(sampleGroups==groupA), which(sampleGroups==groupB))

	sampleGroups <- sampleGroups[c(HITS)]
	IntensitiesData <- t(inputTable[c(HITS),])
	cl <- as.numeric(as.factor(sampleGroups))-1

	out <- RankProducts (data=IntensitiesData, cl=cl, num.perm=1000, logged=FALSE, na.rm=na.rm, gene.names=NULL, plot=FALSE, rand = NULL, calculateProduct=calculateProduct, MinNumOfValidPairs=MinNumOfValidPairs, RandomPairs=RandomPairs)
	
	out$sampleindex <- HITS
	
	out
}

Try the mzmatch.R package in your browser

Any scripts or data that you put into this service are public.

mzmatch.R documentation built on May 31, 2017, 4:31 a.m.