Learn R Programming

pRoloc (version 1.12.4)

getGOFromFeatures: Retrieve GO terms for feature names

Description

The function pulls the gene ontology (GO) terms for a set of feature names.

Usage

getGOFromFeatures(id, namespace = "cellular_component", evidence = NULL, params = NULL, verbose = FALSE)

Arguments

id
An character with feature names to be pulled from biomart. If and MSnSet is provided, then featureNames(id) is used.
namespace
The GO namespace. One of biological_process, cellular_component (default) or molecular_function.
evidence
The GO evidence code. See showGOEvidenceCodes for details. If NULL (default), no filtering based on the evidence code is performed.
params
An instance of class "AnnotationParams".
verbose
A logical defining verbosity of the function. Default is FALSE.

Value

A data.frame with relevant GO terms.

Examples

Run this code
library(pRolocdata)
data(dunkley2006)
data(dunkley2006params)
dunkley2006params
fn <- featureNames(dunkley2006)[1:5]
getGOFromFeatures(fn, params = dunkley2006params)

Run the code above in your browser using DataLab