Learn R Programming

VDAP (version 2.0.0)

aaDist: Position Independent Amino Acid Distributions

Description

Generates Position Independent Amino Acid Ditributions within VDAP data sets

Usage

aaDist(x, plotName = NULL, linker = TRUE)

Arguments

x
An R object, usually a data.frame generally created by the function FLoad()
plotName
A plot title may be entered here surrounded by "quotations" or a class(character) object
linker
Logical determining if a 3 residue linker "GSG" is present or not. If linker = TRUE, the "GSG" linker portion of each peptide will be excluded from distribution calculations. Default is FALSE.

Value

aaDist will return a data.frame that contains a table with the amino acid distribution over the entire array object. A ggplot2 object will also be displayed with the same information as the histogram.

Details

Uses both stringr and ggplot2 for peptide calculations and plotting

Examples

Run this code
protEx <- data.frame(Peptides = c("PWRGPWARVGSG","GYNRVGQGSG","PWRGPWARVGSG","GYNRVGQGSG","GSG"))

## Plot example with GSG linker ##

aaDistEx <- aaDist(protEx,"aaDistEx Plot",linker = TRUE)

Run the code above in your browser using DataLab