instrument: Get and set instrument in msgfPar objects

instrumentR Documentation

Get and set instrument in msgfPar objects

Description

These functions allow you to retrieve and set the instrument type used for acquisition

Usage

instrument(object)

instrument(object) <- value

## S4 method for signature 'msgfPar'
instrument(object)

## S4 replacement method for signature 'msgfPar,numeric'
instrument(object) <- value

## S4 replacement method for signature 'msgfPar,character'
instrument(object) <- value

## S4 replacement method for signature 'msgfPar,msgfParInstrument'
instrument(object) <- value

Arguments

object

An msgfPar object

value

Either an integer, string or msgfParInstrument object

Value

In case of the getter a named integer

Methods (by class)

  • msgfPar: Get the instrument currently used

  • object = msgfPar,value = numeric: Set the instrument using the key for the instrument

  • object = msgfPar,value = character: Set the instrument using the name of the instrument

  • object = msgfPar,value = msgfParInstrument: Set the instrument using an msgfParInstrument object

See Also

Other msgfPar-getter_setter: chargeRange, db, enzyme, fragmentation, isotopeError, lengthRange, matches, mods, ntt, protocol, tda, tolerance

Examples

parameters <- msgfPar(system.file(package='MSGFplus', 'extdata', 'milk-proteins.fasta'))
instrument(parameters) <- 'TOF'
instrument(parameters) <- 3
instrument(parameters)


thomasp85/MSGFplus documentation built on Oct. 2, 2024, 9:26 a.m.