diff options
author | mutantturkey <mutantturke@gmail.com> | 2013-02-19 08:42:58 -0500 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2013-02-19 08:42:58 -0500 |
commit | c46ba680ed29676e7d61a836585f3225b5916276 (patch) | |
tree | 25f98599ea5923a7290117ddbe584d850326f264 | |
parent | aac1c1beb22827feb8eedb518533aee84699750d (diff) |
added argument to accept output (solution vector) into a csv
-rwxr-xr-x | quikr.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,6 +18,7 @@ def main(): matrix.") parser.add_argument("-f", "--fasta", help="path to a fasta file", required=True) + parser.add_argument("-o", "--output", help="the path to write your probability vector (csv output)", required=True) parser.add_argument("-t", "--trained-matrix", help="path to a custom trained matrix") parser.add_argument("-l", "--lamb", type=int, help="the default lambda value is 10,000") parser.add_argument("-k", "--kmer", type=int, @@ -52,7 +53,7 @@ def main(): input_lambda = 10000 kmer = 6 xstar = quikr(args.fasta, trained_matrix_location, kmer, input_lambda) - np.savetxt("python.csv", xstar, delimiter=",") + np.savetxt("args.output, xstar, delimiter=",") print xstar return 0 |