annotate data_manager/kma_build_index.py @ 0:889cc43b72d6 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
author iuc
date Tue, 18 Feb 2020 16:24:23 -0500
parents
children 8c2e674a93bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
1 #!/usr/bin/env python
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
2
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
3 from __future__ import print_function
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
4
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
5 import argparse
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
6 import errno
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
7 import json
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
8 import os
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
9 import subprocess
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
10 import uuid
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
11
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
12
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
13 DATA_TABLE_NAME = "kma_index"
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
14
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
15
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
16 def kma_build_index(kma_index_args, index_name, target_directory, data_table_name=DATA_TABLE_NAME):
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
17 UUID = str(uuid.uuid4())
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
18
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
19 os.mkdir(os.path.join(target_directory, UUID))
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
20
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
21 args = [
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
22 '-k', str(kma_index_args["k"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
23 '-k_t', str(kma_index_args["k_t"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
24 '-k_i', str(kma_index_args["k_i"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
25 '-ML', str(kma_index_args["ML"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
26 '-ht', str(kma_index_args["ht"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
27 '-hq', str(kma_index_args["hq"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
28 '-o', os.path.join(UUID, "index"),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
29 '-i', " ".join(kma_index_args["fasta"]),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
30 ]
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
31
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
32 subprocess.check_call(' '.join(['kma index'] + args), cwd=target_directory, shell=True)
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
33
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
34 data_table_entry = {
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
35 'data_tables': {
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
36 data_table_name: [
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
37 {
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
38 "value": UUID,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
39 "name": index_name,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
40 "path": os.path.join(UUID, "index"),
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
41 }
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
42 ]
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
43 }
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
44 }
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
45
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
46 return data_table_entry
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
47
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
48
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
49 def main(args):
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
50
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
51 data_manager_input = json.loads(open(args.data_manager_json).read())
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
52
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
53 target_directory = data_manager_input['output_data'][0]['extra_files_path']
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
54
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
55 try:
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
56 os.mkdir( target_directory )
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
57 except OSError as exc:
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
58 if exc.errno == errno.EEXIST and os.path.isdir( target_directory ):
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
59 pass
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
60 else:
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
61 raise
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
62
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
63 data_manager_output = {}
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
64
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
65 kma_index_args = {
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
66 "k": args.k,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
67 "k_t": args.k_t,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
68 "k_i": args.k_i,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
69 "ML": args.ML,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
70 "ht": args.ht,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
71 "hq": args.hq,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
72 "fasta": args.fasta,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
73 }
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
74
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
75 data_manager_output = kma_build_index(
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
76 kma_index_args,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
77 args.index_name,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
78 target_directory,
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
79 )
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
80
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
81 open(args.data_manager_json, 'w').write(json.dumps(data_manager_output))
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
82
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
83
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
84 if __name__ == "__main__":
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
85 parser = argparse.ArgumentParser()
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
86 parser.add_argument('data_manager_json')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
87 parser.add_argument('--k', dest='k', type=int, default=16, help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
88 parser.add_argument('--k_t', dest='k_t', type=int, default=16, help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
89 parser.add_argument('--k_i', dest='k_i', type=int, default=16, help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
90 parser.add_argument('--ML', dest='ML', type=int, default=16, help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
91 parser.add_argument('--ht', dest='ht', type=float, default=1.0, help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
92 parser.add_argument('--hq', dest='hq', type=float, default=1.0, help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
93 parser.add_argument('--name', dest='index_name', help='')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
94 parser.add_argument('fasta', nargs='+', help='fasta file(s) to index')
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
95 args = parser.parse_args()
889cc43b72d6 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kma_index/ commit cf775591e6aa55798abe20c77572761076cc535f"
iuc
parents:
diff changeset
96 main(args)