Learn R Programming

VDAP (version 2.0.0)

Attrib: Calculate Peptide Length and Charge Attributes

Description

Calculates the length and charge of peptides in the first column of a given dataset. A sub-function of vFormat

Usage

Attrib(x)

Arguments

x
An R object, generally a data.frame, containing peptides in the first column

Value

Returns a data.frame of 3 columns, starting with Peptide, the peptide's length, followed by charge.

Examples

Run this code

protEx <- data.frame(Peptides = c("PWRGPWARVGSG","GYNRVGQGSG","PNGYRSGVKGSG"),
C_6uM = c(65011.48,47462.24,24778), C_3uM = c(62637.81,31899.85,21313.67),
C_1.5uM = c(57893.22,25911.35,10397.99))

attribEx <- Attrib(protEx)

Run the code above in your browser using DataLab