makeGoSet: Creates a GO feature 'MSnSet'

Description Usage Arguments Value Author(s) Examples

View source: R/makeGoSet.R

Description

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

Usage

1
2
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

1
2
3
4
5
6
7
8
library("pRolocdata")
data(dunkley2006)
data(dunkley2006params)
goset <- makeGoSet(dunkley2006[1:10, ],
                   dunkley2006params)
goset
exprs(goset)[1:10, 1:5]
image(goset)

pRoloc documentation built on Nov. 8, 2020, 6:26 p.m.