summaryrefslogtreecommitdiff
path: root/src/python/quikr.py
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-03-13 17:26:46 -0400
committerCalvin <calvin@EESI>2013-03-13 17:26:46 -0400
commit2818dc1df11ea3e91a759a177071d3014d87c705 (patch)
tree1f7ddb8c06385f031be2e5944bc265ecf7c654d0 /src/python/quikr.py
parent1e59439b88e1649ecf2d1b58cff0836f01c1068c (diff)
fix bad old commit
Diffstat (limited to 'src/python/quikr.py')
-rwxr-xr-xsrc/python/quikr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/quikr.py b/src/python/quikr.py
index 368ab31..e1ed69d 100755
--- a/src/python/quikr.py
+++ b/src/python/quikr.py
@@ -56,12 +56,12 @@ def train_matrix(input_file_location, kmer):
kmer_file_name = str(kmer) + "mers.txt"
- kmer_output = Popen(["generate_kmers", str(kmer)], stdout=PIPE)
- input_file = Popen(["probabilities-by-read", str(kmer), input_file_location] , stdout=PIPE)
+ input_file = Popen(["probabilities-by-read", str(kmer), input_file_location, kmer_file_name] , stdout=PIPE)
# load and normalize the matrix by dividing each element by the sum of it's column.
# also do some fancy rotations so that it works properly with quikr
matrix = np.loadtxt(input_file.stdout)
+
matrix = np.rot90(matrix)
matrix = matrix / matrix.sum(0)