annotate data_manager/data_manager.py @ 2:19d9be08560c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 2db6284f6077d80d05227180a809b921b4975c60"
author iuc
date Sun, 22 Nov 2020 18:03:14 +0000
parents 1ff9996995ee
children 14785f8a3725
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
1 import argparse
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
2 import json
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
3 import os
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
4 import shutil
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
5 import tarfile
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
6 try:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
7 # For Python 3.0 and later
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
8 from urllib.request import Request, urlopen
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
9 except ImportError:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
10 # Fall back to Python 2 imports
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
11 from urllib2 import Request, urlopen
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
12
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
13 ZENODO = {
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
14 "mitos": "2683856",
2
19d9be08560c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 2db6284f6077d80d05227180a809b921b4975c60"
iuc
parents: 1
diff changeset
15 "mitos2": "4284483"
0
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
16 }
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
17 NAMES = {
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
18 "mitos1-refdata": "RefSeq39 + MiTFi tRNA models",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
19 "refseq39": "RefSeq39 (equivalent to MITOS1 data)",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
20 "refseq63m": "RefSeq63 Metazoa",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
21 "refseq63f": "RefSeq63 Fungi",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
22 "refseq63o": "RefSeq63 Opisthokonta",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
23 "refseq89m": "RefSeq89 Metazoa",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
24 "refseq89f": "RefSeq89 Fungi",
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
25 "refseq89o": "RefSeq89 Opisthokonta"
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
26 }
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
27
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
28
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
29 def url_download(tpe, db, workdir):
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
30 """
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
31 download http://ab.inf.uni-tuebingen.de/data/software/megan6/download/FNAME
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
32 to workdir
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
33 and unzip
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
34
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
35 return the name of the resulting dir
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
36 """
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
37 tarfname = os.path.join(workdir, db + ".tar.bz")
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
38 if not os.path.exists(workdir):
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
39 os.makedirs(workdir)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
40 src = None
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
41 dst = None
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
42 try:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
43 req = Request("https://zenodo.org/record/{zenodoid}/files/{db}.tar.bz2?download=1".format(zenodoid=ZENODO[tpe], db=db))
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
44 src = urlopen(req)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
45 with open(tarfname, 'wb') as dst:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
46 while True:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
47 chunk = src.read(2**10)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
48 if chunk:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
49 dst.write(chunk)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
50 else:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
51 break
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
52 finally:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
53 if src:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
54 src.close()
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
55 with tarfile.open(tarfname, "r:bz2") as tar:
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
56 dirname = tar.getnames()[0]
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
57 tar.extractall(workdir)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
58 os.remove(tarfname)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
59 return dirname
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
60
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
61
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
62 def main(tpe, db, outjson):
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
63 workdir = os.getcwd()
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
64
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
65 path = url_download(tpe, db, workdir)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
66
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
67 data_manager_entry = {}
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
68 data_manager_entry['value'] = db
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
69 data_manager_entry['name'] = NAMES[db]
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
70 data_manager_entry['type'] = tpe
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
71 data_manager_entry['path'] = path
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
72 data_manager_json = dict(data_tables=dict(mitos=data_manager_entry))
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
73
1
1ff9996995ee "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
iuc
parents: 0
diff changeset
74 with open(outjson) as fh:
1ff9996995ee "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
iuc
parents: 0
diff changeset
75 params = json.load(fh)
0
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
76 target_directory = params['output_data'][0]['extra_files_path']
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
77 os.mkdir(target_directory)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
78 # output_path = os.path.abspath(os.path.join(os.getcwd(), 'mitos'))
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
79 shutil.move(os.path.join(workdir, path), target_directory)
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
80 with open(outjson, 'w') as fh:
1
1ff9996995ee "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
iuc
parents: 0
diff changeset
81 json.dump(data_manager_json, fh, sort_keys=True)
0
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
82
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
83
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
84 if __name__ == '__main__':
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
85 parser = argparse.ArgumentParser(description='Create data manager json.')
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
86 parser.add_argument('--out', action='store', help='JSON filename')
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
87 parser.add_argument('--type', action='store', help='mitos version')
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
88 parser.add_argument('--db', action='store', help='db name')
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
89 args = parser.parse_args()
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
90
26a6f95e82c8 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
91 main(args.type, args.db, args.out)