Learn R Programming

caOmicsV (version 1.2.0)

getRelatedPlotData: Extract subset from A Data Frame Based on Relational Information

Description

Extract subset of plot data based on relational information, e.g., expression of miRNA or DNA copy number variations that are correlated to differentially expressed genes

Usage

getRelatedPlotData(omicsData, linkData, geneNames)

Arguments

omicsData
a data frame, the dataset from which subset is extracted
linkData
a data frame, usually gene names and their related items. The first column must be the items to which the second item is linked to.
geneNames
character vector, subset of gene names for subset.

Value

A data frame with subset of the first input data.

Examples

Run this code
    data(miRNA)
    data(RNA2miRNA)
    geneNames <- as.character(RNA2miRNA[,1])
    miRNAexpr <- getRelatedPlotData(miRNA, RNA2miRNA, geneNames)

Run the code above in your browser using DataLab