summaryrefslogtreecommitdiff
path: root/quikr_train.py
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-02-22 14:58:44 -0500
committerCalvin <calvin@EESI>2013-02-22 14:58:44 -0500
commite00a6d4da81596d4ba79439aca24be2e180ffc59 (patch)
tree3f162ccfd2eaa38cd718b4c832e62b838d70b8e0 /quikr_train.py
parent519cc8d29f45193325320d72804aa7dc3381cdc7 (diff)
changed argument help messages
Diffstat (limited to 'quikr_train.py')
-rwxr-xr-xquikr_train.py9
1 files changed, 4 insertions, 5 deletions
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()