makeGoSet {pRoloc} | R 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)[1:10, 1:5]
    image(goset)

[Package pRoloc version 1.27.6 Index]