getDataType: Get type of dataset from an MSstatsInputFiles object.

getDataTypeR Documentation

Get type of dataset from an MSstatsInputFiles object.

Description

Get type of dataset from an MSstatsInputFiles object.

Usage

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

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"


Vitek-Lab/MSstatsConvert documentation built on Dec. 17, 2024, 1:14 a.m.