list_genes {GOexpress} | R Documentation

## Returns the genes associated with a Gene Ontology

### Description

Given a Gene Ontology (GO) identifier represented in the dataset, returns a character vector listing the feature identifiers annotated to it.

### Usage

    list_genes(go_id, result, data.only=TRUE)

### Arguments

`go_id` | A Gene Ontology (GO) identifier represented in the dataset.
`result` | The output of `GO_analyse()` or a subset of it obtained from `subset_scores()`.
`data.only` | Whether to return only the feature identifiers present in the given dataset or alternatively returns all feature identifiers associated with the GO term in the Ensembl BioMart. Default is TRUE.

### Value

A character vector listing the feature identifiers of the genes associated with the GO term.

### Author(s)

Kevin Rue-Albrecht

### See Also

Method `GO_analyse`.

### Examples

    # load the sample output data
    data(AlvMac_results)

    # List of genes associated with the GO term "toll-like receptor 4 signaling
    # pathway"
    list_genes(result=AlvMac_results, go_id="GO:0034142")

[Package GOexpress version 1.20.0 Index]