matches: Get and set the number of matches in msgfPar objects

matchesR Documentation

Get and set the number of matches in msgfPar objects

Description

These functions allow you to retrieve and set the number of matches per spectrum returned by MS-GF+

Usage

matches(object)

matches(object) <- value

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

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

## S4 replacement method for signature 'msgfPar,msgfParMatches'
matches(object) <- value

Arguments

object

An msgfPar object

value

Either an integer or an msgfParMatches object

Value

In case of the getter an integer

Methods (by class)

  • msgfPar: Get the number of matches reported per spectrum

  • object = msgfPar,value = numeric: Set the number of matches reported per spectrum using an integer

  • object = msgfPar,value = msgfParMatches: Set the number of matches reported per spectrum using an msgfParMatches object

See Also

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

Examples

parameters <- msgfPar(system.file(package='MSGFplus', 'extdata', 'milk-proteins.fasta'))
matches(parameters) <- 5
matches(parameters)

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