selectAccessions-protdata-method: Select accessions from a protdata object

selectAccessions,protdata-methodR Documentation

Select accessions from a protdata object

Description

Select certain elements from a protdata object based on one or more accession and/or numeric indices. If keep==FALSE, these indices are omitted instead of selected. Note that for selecting, one could also use the "[" method.

Usage

## S4 method for signature 'protdata'
selectAccessions(object, i, keep = TRUE)

Arguments

object

A protdata object of which certain elements will be selected or removed.

i

Either a character or a factor vector containing accessions present in the accessions slot of the protdata object or a numeric vector containing indices pointing to certain elements in the the protdata object or a combination of both (deprecated).

keep

A logical indicating whether the selected elements should be retained (keep==TRUE) or removed (keep==FALSE). Defaults to TRUE.

Value

A reduced protdata object containing only the elements specified in i (if keep==TRUE) or all elements except those specified in i (if keep==FALSE).


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