View source: R/load.datasets.R
load.datasets | R Documentation |
Function to load and systemise molecular datasets
load.datasets(
data.dir = "./",
metadata = NULL,
data.types = c("mRNA.T", "ann")
)
data.dir |
Path to base data directory or directory containing molecular profiles |
metadata |
Dataset by profile metadata matrix containing file names of the molecular profiles for different datasets |
data.types |
Datatypes to be read Valid datatypes are: mRNA.T, mRNA.N, CNA (includes: log2, calls and fractions), annotations |
List of lists containing datasets and respective molecular profiles as matrices
Syed Haider
# 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 = c("mRNA.T", "mRNA.N", "ann")
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.