aa.comp()

Description

Returns a table with the amino acid composition of the target protein

Usage

aa.comp(target, uniprot = TRUE)

Arguments

target a character string specifying the UniProt ID of the protein of interest or, alternatively, the sequence of that protein.

uniprot logical, if TRUE the argument ‘target’ should be an ID.

Value

Returns a dataframe with the absolute frequency of each type of residue found in the target peptide.

See Also

aa.at(), is.at(), renum.pdb(), renum.meto(), renum()

Details

The ptm package offers a set of ancillary functions aimed to carry out rutinary work, which may be needed when more elaborated analysis are required. Among these ancillary function are:

The function aa.comp() provides us the amino acid composition of a given sequence.

library(knitr)
mytable <- aa.comp('P01009')
mytable$percent <- round(100 * mytable$frequency/sum(mytable$frequency), 1)                
kable(mytable)

aafrequencypercent
A266.2
R71.7
N194.5
D245.7
C30.7
Q184.3
E327.7
G245.7
H133.1
I204.8
L5112.2
K348.1
M102.4
F276.5
P194.5
S256.0
T307.2
W30.7
Y61.4
V276.5

Above we have passed the UniProt ID of the protein of interest, but we can also provide any customized sequence:

library(knitr)
mytable <- aa.comp('MAARESAPFDR', uniprot = FALSE)
mytable$percent <- round(100 * mytable$frequency/sum(mytable$frequency), 1)                
kable(mytable)

aafrequencypercent
A327.3
R218.2
N00.0
D19.1
C00.0
Q00.0
E19.1
G00.0
H00.0
I00.0
L00.0
K00.0
M19.1
F19.1
P19.1
S19.1
T00.0
W00.0
Y00.0
V00.0