Learn R Programming

VDAP (version 2.0.0)

vSep: Select Peptides of a Particular Length/Charge Combination

Description

Select Peptides that have a specified length/charge combination, a subfunction for lcScan, and all methods of LCMotif and LcComp

Usage

vSep(File, Length = NULL, Charge = NULL)

Arguments

File
An R object, usually a data.frame generally created by the function FLoad()
Length
An integer value, specifies the desired length to subset.
Charge
An integer value, specified the desired charge to subset.

Value

Returns a data.frame with peptides of the selected Length/Charge combination.

Examples

Run this code
protExChargeSep <- data.frame(Peptides = c("PWRGPWARVGSG","GYNRVGQGSG","PWRGPWARVGSG"),
Length = c(12,10,12), Charge = c(2,1,2))

## Length/Charge Combination ##

hitSelEx <- vSep(protExChargeSep,10,1)

## Charge only ##

hitSelEx <- vSep(protExChargeSep,Charge = 1)

## Length Only ##

hitSelEx <- vSep(protExChargeSep,Length = 12)

Run the code above in your browser using DataLab