| Bioinformatics Toolbox | ![]() |
Calculate atomic composition of a protein
Atoms = atomiccomp(SeqAA)
SeqAA | Amino acid sequence. Enter a character string or vector of integers from the table . You can also enter a structure with the field Sequence. |
Atoms = atomiccomp(SeqAA) counts the type and number of atoms in an amino acid sequence (SeqAA) and returns the counts in a 1-by-1 structure (Atoms) with fields C, H, N, O, and S.
Get an amino acid sequence from the Protein Sequence Database (PIR-PSD) and count the atoms in the sequence.
pirdata = getpir('cchu','SequenceOnly',true);
mwcchu = atomiccomp(pirdata)
mwcchu =
C: 526
H: 845
N: 143
O: 149
S: 6
mwcchu.C
ans=
526
Bioinformatics Toolbox functions aacount, msalign
| aminolookup | basecount | ![]() |
© 1994-2005 The MathWorks, Inc.