R/mostDE.R

Defines functions mostDE

Documented in mostDE

mostDE <- function(results, n = 10) {
	if (n < length(results$DEgenes[,1])) {
		topDE = results$DEgenes[1:n,];
	} else {
		sortedGenes = results$allgenes[order(results$allgenes[["p.val.Adjusted"]]), ]
		topDE = sortedGenes[1:n, c(1,3)];
	}
	row.names(topDE) = NULL;
	return(topDE)	
}

Try the plmDE package in your browser

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

plmDE documentation built on May 29, 2017, 6:37 p.m.