summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-03-05 12:55:10 -0500
committerCalvin <calvin@EESI>2013-03-05 12:55:10 -0500
commite36cc91bad7bfdb73c5cbca73f4f2e07d870f7cc (patch)
treee1bf8dd2199f75acb9b9f7c167402d76fe49ba46
parentc9692a2c6656ac2fc8b7ae885fd93489e9fd5f14 (diff)
simplify generate_kmers.py
-rwxr-xr-xgenerate_kmers.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/generate_kmers.py b/generate_kmers.py
index 4cd9aca..5460c03 100755
--- a/generate_kmers.py
+++ b/generate_kmers.py
@@ -2,6 +2,4 @@
import itertools
import sys
-kmer_array ='\n'.join(''.join(x) for x in itertools.product('acgt', repeat=int(sys.argv[1])))
-
-print kmer_array
+print'\n'.join(''.join(x) for x in itertools.product('acgt', repeat=int(sys.argv[1])))