MSstatsMakeAnnotation: Create annotation

Description Usage Arguments Value Examples

View source: R/MSstatsConvert_core_functions.R

Description

Create annotation

Usage

1
MSstatsMakeAnnotation(input, annotation, ...)

Arguments

input

data.table preprocessed by the MSstatsClean function

annotation

data.table

...

key-value pairs, where keys are names of columns of annotation

Value

data.table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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")
cleaned_data = MSstatsClean(imported, protein_id_col = "Proteins")
annot_path = system.file("tinytest/raw_data/MaxQuant/annotation.csv", 
                         package = "MSstatsConvert")
mq_annot = MSstatsMakeAnnotation(cleaned_data, read.csv(annot_path),
                                 Run = "Rawfile")
head(mq_annot)

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