[R] analyze amino acid sequence (composition)of proteins
stubben
stubben at lanl.gov
Mon Jun 19 18:48:29 CEST 2006
Have you checked the package seqinR at CRAN? It may help.
Also, if you split a string into single characters using strsplit, then
use table to count characters.
seq<-"ATGAAC"
table(strsplit(seq, ""))
A C G T
3 1 1 1
> 3. based on "AAABBB",how can i get some statistics of this string
such as how
> many letters,how many "A"s in the string.
--
-----------------
Chris Stubben
Los Alamos National Lab
BioScience Division
MS M888
Los Alamos, NM 87545
More information about the R-help
mailing list