readMzTabData_v0.9: Read an 'mzTab' file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/readWriteMzTab.R

Description

This function can be used to create a "MSnSet" by reading and parsing an mzTab file. The metadata section is always used to populate the MSnSet's experimentData slot.

Usage

1
readMzTabData_v0.9(file, what = c("PRT", "PEP"), verbose = isMSnbaseVerbose())

Arguments

file

A character with the mzTab file to be read in.

what

One of "PRT" or "PEP", defining which of protein of peptide section should be parse. The metadata section, when available, is always used to populate the experimentData slot.

verbose

Produce verbose output.

Value

An instance of class MSnSet.

Author(s)

Laurent Gatto

See Also

writeMzTabData to save an "MSnSet" as an mzTab file.

Examples

1
2
3
4
5
6
7
8
9
testfile <- "https://raw.githubusercontent.com/HUPO-PSI/mzTab/master/legacy/jmztab-1.0/examples/mztab_itraq_example.txt"

prot <- readMzTabData_v0.9(testfile, "PRT")

prot

pep <- readMzTabData_v0.9(testfile, "PEP")

pep

MSnbase documentation built on Jan. 23, 2021, 2 a.m.