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) 

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: bc3net
Loading required package: c3net
Loading required package: infotheo
Loading required package: Matrix
Loading required package: lattice

caOmicsV documentation built on Nov. 8, 2020, 8:23 p.m.