myTAI (version 0.9.3)

SelectGeneSet: Select a Subset of Genes in an ExpressionSet

Description

Select a subset of genes stored in the input ExpressionSet.

Usage

SelectGeneSet(ExpressionSet, gene.set, use.only.map = FALSE)

Arguments

ExpressionSet

a standard PhyloExpressionSet or DivergenceExpressionSet object.

gene.set

a character vector storing the gene ids for which gene expression profiles shall be visualized.

use.only.map

a logical value indicating whether instead of a standard ExpressionSet only a Phylostratigraphic Map or Divergene Map is passed to the function.

Details

This function selects a subset of genes specified in gene.set stored in the input ExpressionSet and returns a subset ExpressionSet.

This function is useful for studying the evolutionary properties of a subset of genes stored in the ExpressionSet.

See Also

PlotGeneSet, PlotEnrichment, DiffGenes

Examples

Run this code
# NOT RUN {
data(PhyloExpressionSetExample)

# receive a subset ExpressionSet for the fist 5 genes stored in
# the PhyloExpressionSetExample
SelectGeneSet(ExpressionSet = PhyloExpressionSetExample,
            gene.set      = PhyloExpressionSetExample[1:5, 2])
            
            
# get a gene subset using only a phylostratihraphic map
ExamplePSMap <- PhyloExpressionSetExample[ , 1:2]

SelectGeneSet(ExpressionSet = ExamplePSMap,
              gene.set      = PhyloExpressionSetExample[1:5, 2],
              use.only.map  = TRUE)          
            
# }

Run the code above in your browser using DataCamp Workspace