setAccessions-protdata-method: Change the accession slot of a protdata object

setAccessions,protdata-methodR Documentation

Change the accession slot of a protdata object

Description

setAccessions changes the accession slot from a protdata object to a prespecified factor vector.

Usage

## S4 method for signature 'protdata'
setAccessions(object, accessions)

Arguments

object

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

accessions

A factor or character vector of accessions which will be inserted in the accession slot of the protdata object. Note that the length of this vector should be equal to the number of elements in the data slot and the number of rows in the annotation slot.

Value

A protdata object of which the accession slot is replaced by the accessions factor vector.


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