setAnnotations-protdata-method: Change the annotation slot of a protdata object

setAnnotations,protdata-methodR Documentation

Change the annotation slot of a protdata object

Description

setAnnotations changes the annotation slot from a protdata object to a prespecified matrix.

Usage

## S4 method for signature 'protdata'
setAnnotations(object, annotations)

Arguments

object

A protdata object of which the annotation slot needs to be modified.

annotations

A matrix which will be inserted in the annotation slot of the protdata object. Note that the number of rows of this matrix should be equal to the number of elements in both the accession and the data slot.

Value

A protdata object of which the annotation slot is replaced by the matrix annotations.


statOmics/MSqRob documentation built on Dec. 8, 2022, 6 a.m.