getDataType {MSstatsConvert} | R Documentation |
Get type of dataset from an MSstatsInputFiles object.
getDataType(msstats_object) ## S4 method for signature 'MSstatsInputFiles' getDataType(msstats_object)
msstats_object |
object that inherits from |
character - label of a data type. Currently, "MSstats" or "MSstatsTMT"
character "MSstats" or "MSstatsTMT".
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"