MSstatsImport: Import files from signal processing tools.

Description Usage Arguments Value Examples

View source: R/MSstatsConvert_core_functions.R

Description

Import files from signal processing tools.

Usage

1
MSstatsImport(input_files, type, tool, tool_version = NULL, ...)

Arguments

input_files

list of paths to input files or data.frame objects. Interpretation of this parameter depends on values of parameters type and tool.

type

chr, "MSstats" or "MSstatsTMT".

tool

chr, name of a signal processing tool that generated input files.

tool_version

not implemented yet. In the future, this parameter will allow handling different versions of each signal processing tools.

...

optional additional parameters to data.table::fread.

Value

an object of class MSstatsInputFiles.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
evidence_path = system.file("tinytest/raw_data/MaxQuant/mq_ev.csv", 
                            package = "MSstatsConvert")
pg_path = system.file("tinytest/raw_data/MaxQuant/mq_pg.csv", 
                      package = "MSstatsConvert")
evidence = read.csv(evidence_path)
pg = read.csv(pg_path)
imported = MSstatsImport(list(evidence = evidence, protein_groups = pg),
                         "MSstats", "MaxQuant")
class(imported)
head(getInputFile(imported, "evidence"))

MSstatsConvert documentation built on Nov. 8, 2020, 5:49 p.m.