diff options
author | mutantturkey <mutantturke@gmail.com> | 2013-03-08 14:26:35 -0500 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2013-03-08 14:26:35 -0500 |
commit | d1c402420cfe75a04a7c181d5b3e45cdde7bcf72 (patch) | |
tree | e3c327bf644e58b7125a7e7f317c5d4354790622 /quikr | |
parent | 4a4ae4e3f5e86e5a45f5c027cca58f42f8b0b080 (diff) |
fix quikr
Diffstat (limited to 'quikr')
-rwxr-xr-x | quikr | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,9 @@ #!/usr/bin/python import sys +import os import argparse import quikr +import numpy as np def main(): @@ -36,7 +38,8 @@ def main(): if args.lamb is not None: lamb = args.lamb - xstar = quikr_load_trained_matrix_from_file(args.fasta, args.trained_matrix, args.kmer, lamb) + trained_matrix = quikr.load_trained_matrix_from_file(args.trained_matrix) + xstar = quikr.calculate_estimated_frequencies(args.fasta, trained_matrix, args.kmer, lamb) np.savetxt(args.output, xstar, delimiter=",", fmt="%f") return 0 |