From e00a6d4da81596d4ba79439aca24be2e180ffc59 Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 22 Feb 2013 14:58:44 -0500 Subject: changed argument help messages --- quikr_train.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'quikr_train.py') diff --git a/quikr_train.py b/quikr_train.py index 6415f67..6534b6f 100755 --- a/quikr_train.py +++ b/quikr_train.py @@ -16,9 +16,9 @@ def main(): " quikr_train returns a custom trained matrix that can be used with \ the quikr function. \n You must supply a kmer. \n ") - parser.add_argument("-i", "--input", help="path to the database", required=True) - parser.add_argument("-o", "--output", help="path to output", required=True) - parser.add_argument("-k", "--kmer", type=int, help="specifies which kmer to use", required=True) + parser.add_argument("-i", "--input", help="training database of sequences (fasta format)", required=True) + parser.add_argument("-o", "--output", help="sensing matrix (text file)", required=True) + parser.add_argument("-k", "--kmer", type=int, help="kmer size (integer)", required=False, dtype=int) args = parser.parse_args() @@ -29,7 +29,6 @@ def main(): matrix = quikr_train(args.input, args.kmer) np.save(args.output, matrix) - np.savetxt("python.csv", matrix, delimiter=",") return 0 @@ -41,7 +40,7 @@ def quikr_train(input_file_location, kmer): kmer_file_name = str(kmer) + "mers.txt" if not os.path.isfile(kmer_file_name): - print "could not find kmer file" + print "could not find kmer file" exit() -- cgit v1.2.3