Learn R Programming

pRoloc (version 1.12.4)

makeGoSet: Creates a GO feature MSnSet

Description

Creates a new "MSnSet" instance populated with a GO term binary matrix based on an original object.

Usage

makeGoSet(object, params, namespace = "cellular_component", evidence = NULL)

Arguments

object
An instance of class "MSnSet" or a character of feature names.
params
An instance of class "AnnotationParams", compatible with featureNames(object)'s format.
namespace
The ontology name space. One or several of "biological_process", "cellular_component" or "molecular_function".
evidence
GO evidence filtering.

Value

A new "MSnSet" with the GO terms for the respective features in the original object.

Examples

Run this code
library("pRolocdata")
data(dunkley2006)
data(dunkley2006params)
goset <- makeGoSet(dunkley2006[1:10, ],
                   dunkley2006params)
goset
exprs(goset)[1:10, 1:5]
image(goset)

Run the code above in your browser using DataLab