makeGoSet: Creates a GO feature 'MSnSet'

View source: R/makeGoSet.R

makeGoSetR Documentation

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.

Author(s)

Laurent Gatto

Examples

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

lgatto/pRoloc documentation built on Oct. 23, 2024, 12:51 a.m.