getDataType: Get type of dataset from an MSstatsInputFiles object.

Description Usage Arguments Value Examples

Description

Get type of dataset from an MSstatsInputFiles object.

Usage

1
2
3
4
getDataType(msstats_object)

## S4 method for signature 'MSstatsInputFiles'
getDataType(msstats_object)

Arguments

msstats_object

object that inherits from MSstatsInputFiles class.

Value

character - label of a data type. Currently, "MSstats" or "MSstatsTMT"

character "MSstats" or "MSstatsTMT".

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)
getDataType(imported) # "MSstats"

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