[R] Construct All Possible Strings from 4 Bases (ATCG)
gundalav at gmail.com
Wed Dec 17 10:00:26 CET 2008
Is there an efficient way in R to construct all strings from 4 bases (ATCG).
If we want a length L string, there are 4 ^ L possible strings of such.
e . g with L = 2 we have AA, AT, AC, AG, .. GC, GA, GT, GG as many as
4 ^ 2 = 16 strings,
with L = 3 we have as many as 4 ^ 3 = 64 strings
- Gundala Viswanath
Jakarta - Indonesia
More information about the R-help