R/get.test.data.R

get.test.data <- function(data.types = c("mRNA.T", "ann")) {

	# locate test data directory which comes with the package
	data.dir <- paste(system.file("programdata/testdata/", package = "iDOS"), "/", sep = "");

	# read meta data file
	metadata <- read.table(
		file = paste(data.dir, "metadata.txt", sep = ""), 
		row.names = 1, 
		header = TRUE, 
		sep = "\t",
		stringsAsFactors = FALSE
		);

	x <- load.datasets(
		data.dir = data.dir,
		metadata = metadata,
		data.types = data.types
		);

	return (x);

	}

Try the iDOS package in your browser

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

iDOS documentation built on May 2, 2019, 2:28 p.m.