annotate data_manager/hisat2_index_builder.py @ 5:8eac26f44d29 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
author iuc
date Mon, 18 Nov 2019 17:22:30 -0500
parents d210e1f185bd
children a04cebcd77f4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
1 #!/usr/bin/env python
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
2 # Based heavily on the Bowtie 2 data manager wrapper script by Dan Blankenberg
4
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
3 from __future__ import print_function
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
4
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
5 import argparse
4
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
6 import os
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
7 import shlex
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
8 import subprocess
4
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
9 import sys
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
10 from json import dumps, loads
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
11
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
12 DEFAULT_DATA_TABLE_NAME = "hisat2_indexes"
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
13
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
14
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
15 def get_id_name(params, dbkey, fasta_description=None):
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
16 # TODO: ensure sequence_id is unique and does not already appear in location file
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
17 sequence_id = params['param_dict']['sequence_id']
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
18 if not sequence_id:
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
19 sequence_id = dbkey
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
20
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
21 sequence_name = params['param_dict']['sequence_name']
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
22 if not sequence_name:
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
23 sequence_name = fasta_description
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
24 if not sequence_name:
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
25 sequence_name = dbkey
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
26 return sequence_id, sequence_name
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
27
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
28
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
29 def build_hisat_index(data_manager_dict, options, params, sequence_id, sequence_name):
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
30 data_table_name = options.data_table_name or DEFAULT_DATA_TABLE_NAME
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
31 target_directory = params['output_data'][0]['extra_files_path']
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
32 if not os.path.exists(target_directory):
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
33 os.mkdir(target_directory)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
34 fasta_base_name = os.path.split(options.fasta_filename)[-1]
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
35 sym_linked_fasta_filename = os.path.join(target_directory, fasta_base_name)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
36 os.symlink(options.fasta_filename, sym_linked_fasta_filename)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
37 args = ['hisat2-build']
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
38 args.extend(shlex.split(options.indexer_options))
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
39 args.extend([sym_linked_fasta_filename, sequence_id])
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
40 proc = subprocess.Popen(args=args, shell=False, cwd=target_directory)
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
41 return_code = proc.wait()
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
42 if return_code:
4
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
43 print("Error building index.", file=sys.stderr)
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
44 sys.exit(return_code)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
45 data_table_entry = dict(value=sequence_id, dbkey=options.fasta_dbkey, name=sequence_name, path=sequence_id)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
46 _add_data_table_entry(data_manager_dict, data_table_name, data_table_entry)
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
47
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
48
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
49 def _add_data_table_entry(data_manager_dict, data_table_name, data_table_entry):
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
50 data_manager_dict['data_tables'] = data_manager_dict.get('data_tables', {})
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
51 data_manager_dict['data_tables'][data_table_name] = data_manager_dict['data_tables'].get(data_table_name, [])
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
52 data_manager_dict['data_tables'][data_table_name].append(data_table_entry)
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
53 return data_manager_dict
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
54
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
55
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
56 def main():
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
57 # Parse Command Line
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
58 parser = argparse.ArgumentParser()
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
59 parser.add_argument('--output', dest='output', action='store', type=str, default=None)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
60 parser.add_argument('--fasta_filename', dest='fasta_filename', action='store', type=str, default=None)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
61 parser.add_argument('--fasta_dbkey', dest='fasta_dbkey', action='store', type=str, default=None)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
62 parser.add_argument('--fasta_description', dest='fasta_description', action='store', type=str, default=None)
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
63 parser.add_argument('--data_table_name', dest='data_table_name', action='store', type=str, default='hisat2_indexes')
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
64 parser.add_argument('--indexer_options', dest='indexer_options', action='store', type=str, default='')
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
65 options = parser.parse_args()
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
66
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
67 filename = options.output
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
68
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
69 params = loads(open(filename).read())
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
70 data_manager_dict = {}
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
71
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
72 if options.fasta_dbkey in [None, '', '?']:
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
73 raise Exception('"%s" is not a valid dbkey. You must specify a valid dbkey.' % (options.fasta_dbkey))
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
74
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
75 sequence_id, sequence_name = get_id_name(params, dbkey=options.fasta_dbkey, fasta_description=options.fasta_description)
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
76
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
77 # build the index
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
78 build_hisat_index(data_manager_dict, options, params, sequence_id, sequence_name)
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
79
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
80 # save info to json file
5
8eac26f44d29 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 05c191c21eba39e75a8c8d6e6a00d8db63552695"
iuc
parents: 4
diff changeset
81 open(filename, 'w').write(dumps(data_manager_dict, sort_keys=True))
4
d210e1f185bd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_hisat2_index_builder commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents: 3
diff changeset
82
0
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
83
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
84 if __name__ == "__main__":
d3eb4d51b285 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/data_managers/data_manager_hisat2_index_builder commit 1e8d3feeb391aabcfff2338b57913138deea51ec-dirty
iuc
parents:
diff changeset
85 main()