inst/testScripts/system/pairedPSCN/R/getTumorNormalPairs.R

getTumorNormalPairs <- function(ds, pairs, ..., verbose=TRUE) {
  ## Split data set in (tumor, normal) pairs
  sets <- list(tumor=list(), normal=list());
  for (type in colnames(pairs)) {
    idxs <- match(pairs[,type], getNames(ds));
    sets[[type]] <- extract(ds, idxs);
  }

  verbose && print(verbose, sets);
  sets;
}

############################################################################
## HISTORY
## 2010-08-12
## o Created.
############################################################################

Try the aroma.cn package in your browser

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

aroma.cn documentation built on July 21, 2022, 1:05 a.m.