Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

instrument

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

Examples

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

MSGFplus

An interface between R and MS-GF+

v1.24.0
GPL (>= 2)
Authors
Thomas Lin Pedersen
Initial release
2020-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.