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.


ludgergoeminne/MSqRob documentation built on Jan. 11, 2023, 1:32 p.m.