as.matrix.MSMSpepXML: Transforms an 'MSMSpepXML' object in a simplified matrix.

Description Usage Arguments Value Warning Author(s) Examples

View source: R/MSMSpepXML-class.R

Description

This function transforms an "MSMSpepXML" instance in a matrix. The object is significantly simplified, as only the first search results and hits are kept. The matrix includes query index, spectrum id, ion score, peptide sequence, the number of proteins inferred and the protein(s) name(s).

Usage

1

Arguments

x

an object of class "MSMSpepXML".

...

further options passed to next methods.

all

logical, whether all rows or only the ones with identified peptides should ne returned.

Value

A matrix.

Warning

If search results and hits are removed, warnings are issued.

Author(s)

Laurent Gatto

Examples

1
2
3
4
5
 pepxml <- system.file("extdata","tinySearch.pepXML",package="RpepXML")
 x <- parseMSMSpepXML(pepxml)
 as.matrix(x)
 as.matrix(filterHits(x),all=TRUE)
 as.matrix(filterHits(x),all=FALSE)

lgatto/RpepXML documentation built on May 21, 2019, 6:04 a.m.