getPlotOmicsData: Extract Subset from A Data Frame

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.R

Description

Extract a subset from the input data for a set of samples and genes

Usage

1
    getPlotOmicsData(omicsData, sampleNames, geneNames)

Arguments

omicsData

a data frame with all samples and all genes

sampleNames

character vector, names of samples to be extracted from dataset.

geneNames

character vector, names of genes to be extracted from dataset.

Value

A data frame with subset of input data

Author(s)

Henry Zhang

Examples

1
2
3
4
5
    data(RNASeq)
    data(RNASeqDemoData)
    geneNames  <- as.character(RNASeqDemoData[,1])
    sampleNames <- colnames(RNASeqDemoData)[-1]
    plotData <- getPlotOmicsData(RNASeq, sampleNames, geneNames) 

hzhanghenry/caOmicsV documentation built on May 17, 2019, 10:07 p.m.