splitModLab {ComPrAn} | R Documentation

## Split Modification and Label tags

### Description

Splits up the Modifications column into lists of vectors for modifications(Mods) and labels(Labels) It adds two more columns to the data frame:

- UniqueCombinedID_A: Unique combinations of Sequence, Mods and Charge for "scenario A".

- UniqueCombinedID_B: Unique combinations of Sequence, Mods, Charge and Labels for "scenario B"

### Usage

    splitModLab(.data)

### Arguments

`.data` | dataframe

### Value

dataframe

### Examples

    ##Use example peptide data set, read in and clean data
    inputFile <- system.file("extData", "data.txt", package = "ComPrAn")
    peptides <- peptideImport(inputFile)
    peptides <- cleanData(peptides, fCol = "Search ID")
    ## separate chemical modifications and labelling into separate columns
    peptides <- splitModLab(peptides)

[Package ComPrAn version 1.2.0 Index]