readMzIdData {MSnbase} | R Documentation

## Import peptide-spectrum matches

### Description

Reads as set of `mzId` files containing PSMs an generates a `data.frame`.

### Usage

    readMzIdData(files)

### Arguments

`files` | A `character` of `mzid` files.

### Details

This function uses the functionality provided by the `mzR` package to access data in the `mzId` files. An object of class `mzRident` can also be coerced to a `data.frame` using `as(, "data.frame")`.

### Value

A `data.frame` containing the PSMs stored in the `mzId` files.

### Author(s)

Laurent Gatto

### See Also

`filterIdentificationDataFrame()` to filter out unreliable PSMs.

### Examples

    idf <- "TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01-20141210.mzid"
    f <- msdata::ident(full.names = TRUE, pattern = idf)
    basename(f)
    readMzIdData(f)

[Package MSnbase version 2.20.1 Index]