diff options
author | Calvin <calvin@EESI> | 2013-03-05 12:55:10 -0500 |
---|---|---|
committer | Calvin <calvin@EESI> | 2013-03-05 12:55:10 -0500 |
commit | e36cc91bad7bfdb73c5cbca73f4f2e07d870f7cc (patch) | |
tree | e1bf8dd2199f75acb9b9f7c167402d76fe49ba46 /generate_kmers.py | |
parent | c9692a2c6656ac2fc8b7ae885fd93489e9fd5f14 (diff) |
simplify generate_kmers.py
Diffstat (limited to 'generate_kmers.py')
-rwxr-xr-x | generate_kmers.py | 4 |
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]))) |