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

setAnnotations,protLM-methodR Documentation

Change the annotation slot of a protLM object

Description

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

Usage

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

Arguments

object

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

annotations

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

Value

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


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