Mercurial > repos > iuc > data_manager_mash_sketch_builder
annotate data_manager/mash_sketch_builder.py @ 1:b6016642539d draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit 848c47fb29e9f1d319056a94a7dbd90129a4aafc"
author | iuc |
---|---|
date | Tue, 07 Apr 2020 23:20:17 -0400 |
parents | 2af9137ba067 |
children | ce1d5c8d5bff |
rev | line source |
---|---|
0
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
1 #!/usr/bin/env python |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
2 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
3 import argparse |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
4 import errno |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
5 import json |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
6 import os |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
7 import subprocess |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
8 import uuid |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
9 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
10 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
11 DATA_TABLE_NAME = "mash_sketches" |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
12 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
13 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
14 def mash_sketch(mash_sketch_args, sketch_name, target_directory, data_table_name=DATA_TABLE_NAME): |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
15 UUID = str(uuid.uuid4()) |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
16 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
17 os.mkdir(os.path.join(target_directory, UUID)) |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
18 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
19 sketch_path = os.path.join(target_directory, UUID, "sketch") |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
20 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
21 args = [ |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
22 '-k', str(mash_sketch_args["kmer_size"]), |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
23 '-s', str(mash_sketch_args["sketch_size"]), |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
24 '-w', str(mash_sketch_args["probability_threshold"]), |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
25 '-o', str(sketch_path), |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
26 '-p', str(mash_sketch_args["threads"]), |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
27 str(mash_sketch_args["fasta"]), |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
28 ] |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
29 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
30 if mash_sketch_args["individual_sequences"]: |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
31 args = args + ["-i"] |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
32 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
33 subprocess.check_call(['mash', 'sketch'] + args, cwd=target_directory) |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
34 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
35 data_table_entry = { |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
36 'data_tables': { |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
37 data_table_name: [ |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
38 { |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
39 "value": UUID, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
40 "name": sketch_name, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
41 "path": UUID, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
42 } |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
43 ] |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
44 } |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
45 } |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
46 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
47 return data_table_entry |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
48 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
49 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
50 def main(): |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
51 parser = argparse.ArgumentParser() |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
52 parser.add_argument('data_manager_json') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
53 parser.add_argument('--kmer-size', dest='kmer_size', type=int, default=35, help='kmer length') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
54 parser.add_argument('--sketch-size', dest='sketch_size', type=int, default=31, help='minimizer length') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
55 parser.add_argument('--probability-threshold', dest='probability_threshold', type=float, default=0.01, help='Probability threshold for warning about low k-mer size') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
56 parser.add_argument('--individual-sequences', dest='individual_sequences', action='store_true', default=False, help='Sketch individual sequences (for multi-fasta files)') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
57 parser.add_argument('--fasta', dest='fasta', help='Fasta file to sketch') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
58 parser.add_argument('--threads', dest='threads', default=1, help='threads') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
59 parser.add_argument('--sketch-name', dest='sketch_name', help='Name for sketch') |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
60 args = parser.parse_args() |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
61 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
62 data_manager_input = json.loads(open(args.data_manager_json).read()) |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
63 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
64 target_directory = data_manager_input['output_data'][0]['extra_files_path'] |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
65 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
66 try: |
1
b6016642539d
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit 848c47fb29e9f1d319056a94a7dbd90129a4aafc"
iuc
parents:
0
diff
changeset
|
67 os.mkdir(target_directory) |
0
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
68 except OSError as exc: |
1
b6016642539d
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit 848c47fb29e9f1d319056a94a7dbd90129a4aafc"
iuc
parents:
0
diff
changeset
|
69 if exc.errno == errno.EEXIST and os.path.isdir(target_directory): |
0
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
70 pass |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
71 else: |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
72 raise |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
73 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
74 data_manager_output = {} |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
75 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
76 mash_sketch_args = { |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
77 "kmer_size": args.kmer_size, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
78 "sketch_size": args.sketch_size, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
79 "probability_threshold": args.probability_threshold, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
80 "fasta": args.fasta, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
81 "individual_sequences": args.individual_sequences, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
82 "threads": args.threads, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
83 } |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
84 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
85 data_manager_output = mash_sketch( |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
86 mash_sketch_args, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
87 args.sketch_name, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
88 target_directory, |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
89 ) |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
90 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
91 open(args.data_manager_json, 'w').write(json.dumps(data_manager_output, sort_keys=True)) |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
92 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
93 |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
94 if __name__ == "__main__": |
2af9137ba067
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit c6efcbece52dec310253537b35419839746fff7f"
iuc
parents:
diff
changeset
|
95 main() |