gravy | R Documentation |
gravy
calculates the Grand Average of Hydrophobicity (gravy) index
of amino acid sequences using the method of Kyte & Doolittle. Non-informative
positions are excluded, where non-informative is defined as any character in
c("X", "-", ".", "*")
.
gravy(seq, hydropathy = NULL)
seq |
vector of strings containing amino acid sequences. |
hydropathy |
named numerical vector defining hydropathy index values for
each amino acid, where names are single-letter amino acid
character codes. If |
A vector of gravy scores for the sequence(s).
Kyte J, Doolittle RF. A simple method for displaying the hydropathic character of a protein. J Mol Biol. 157, 105-32 (1982).
For additional hydrophobicity indices see aaindex
.
# Default scale
seq <- c("CARDRSTPWRRGIASTTVRTSW", "XXTQMYVRT")
gravy(seq)
# Use the Kidera et al, 1985 scores from the seqinr package
library(seqinr)
data(aaindex)
x <- aaindex[["KIDA850101"]]$I
# Rename the score vector to use single-letter codes
names(x) <- translateStrings(names(x), ABBREV_AA)
# Calculate hydrophobicity
gravy(seq, hydropathy=x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.