R/writeAnnotation.R

Defines functions writeAnnotation

Documented in writeAnnotation

writeAnnotation <- function(res.list, datafile=NULL, datafile.ignore.cols=1, format=c("list","matrix"), outFolder=tempdir()) {

format <- match.arg(format)
res <- lapply(res.list, FUN=function(res) {
	fout <- basename(res$fname)
	if (format == "matrix") fout <- gsub("txt", "csv", fout);
	writeGOannot(res, fname = (paste("Annot", fout)), datafile = datafile, format=format, outFolder=outFolder)

})

outFolder

}

Try the PloGO2 package in your browser

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

PloGO2 documentation built on Nov. 8, 2020, 5:40 p.m.