aboutsummaryrefslogtreecommitdiff
path: root/generate_kmers.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate_kmers.py')
-rwxr-xr-xgenerate_kmers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/generate_kmers.py b/generate_kmers.py
new file mode 100755
index 0000000..4cd9aca
--- /dev/null
+++ b/generate_kmers.py
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+import itertools
+import sys
+
+kmer_array ='\n'.join(''.join(x) for x in itertools.product('acgt', repeat=int(sys.argv[1])))
+
+print kmer_array