diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/python/quikr.py | 4 |
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) |