charge | R Documentation |
charge
calculates the net charge of amino acid sequences using
the method of Moore, 1985, with exclusion of the C-terminus and N-terminus charges.
charge(seq, pH = 7.4, pK = NULL, normalize = FALSE)
seq |
vector strings defining of amino acid sequences. |
pH |
environmental pH. |
pK |
named vector defining pK values for each charged amino acid,
where names are the single-letter amino acid character codes
|
normalize |
if |
A vector of net charges for the sequence(s).
Moore DS. Amino acid and peptide net charges: A simple calculational procedure. Biochem Educ. 13, 10-11 (1985).
https://emboss.sourceforge.net/apps/cvs/emboss/apps/iep.html
For additional pK scales see pK
.
seq <- c("CARDRSTPWRRGIASTTVRTSW", "XXTQMYVRT")
# Unnormalized charge
charge(seq)
# Normalized charge
charge(seq, normalize=TRUE)
# Use the Murray et al, 2006 scores from the seqinr package
library(seqinr)
data(pK)
x <- setNames(pK[["Murray"]], rownames(pK))
# Calculate charge
charge(seq, pK=x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.