Mercurial > repos > ufz > omero_import
annotate omero_metadata_upload.py @ 1:f762de618b1f draft
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
author | ufz |
---|---|
date | Wed, 07 Aug 2024 12:54:30 +0000 |
parents | |
children | 83ccd2b525e5 |
rev | line source |
---|---|
1
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
1 import argparse |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
2 from datetime import datetime |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
3 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
4 import ezomero as ez |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
5 import pandas as pd |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
6 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
7 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
8 def metadata_import_ezo(user, pws, host, port, obj_type, did=None, ann_type="table", ann_file=None, an_name=None, |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
9 log_file='metadata_import_log.txt'): |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
10 def upload_metadata(conn, obj_type, did, data_dict, df, ann_type, an_name): |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
11 try: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
12 if ann_type == "KV": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
13 id_map_ann = ez.post_map_annotation(conn, obj_type, object_id=int(did), kv_dict=data_dict, ns=an_name) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
14 ma_dict = ez.get_map_annotation(conn, id_map_ann) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
15 return ma_dict |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
16 elif ann_type == "table": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
17 id_tb_ann = ez.post_table(conn, df, object_type=obj_type, object_id=int(did), title=an_name, |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
18 headers=True) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
19 tb_dict = ez.get_table(conn, id_tb_ann) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
20 return tb_dict |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
21 except Exception as e: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
22 log_error(f"Error uploading metadata for {obj_type} with ID {did}: {str(e)}") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
23 return None |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
24 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
25 def log_error(message): |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
26 with open(log_file, 'w') as f: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
27 f.write(f"ERROR: {message}\n") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
28 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
29 def log_success(message): |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
30 with open(log_file, 'w') as f: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
31 f.write(f"SUCCESS: {message}\n") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
32 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
33 try: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
34 df = pd.read_csv(ann_file, delimiter='\t') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
35 except FileNotFoundError as e: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
36 log_error(f"Annotation file not found: {str(e)}") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
37 return |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
38 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
39 if ann_type == "table": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
40 data_dict = df.to_dict(orient='records') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
41 elif ann_type == "KV": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
42 data_dict = {col: df[col].iloc[0] for col in df.columns} |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
43 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
44 try: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
45 with ez.connect(user, pws, "", host, port, secure=True) as conn: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
46 if obj_type == "project": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
47 if did is None: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
48 did = ez.post_project(conn, project_name=str(datetime.now())) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
49 result = upload_metadata(conn, "Project", did, data_dict, df, ann_type, an_name) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
50 elif obj_type == "screen": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
51 if did is None: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
52 did = ez.post_screen(conn, screen_name=str(datetime.now())) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
53 result = upload_metadata(conn, "Screen", did, data_dict, df, ann_type, an_name) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
54 elif obj_type == "dataset": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
55 if did is None: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
56 did = ez.post_dataset(conn, dataset_name=str(datetime.now())) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
57 result = upload_metadata(conn, "Dataset", did, data_dict, df, ann_type, an_name) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
58 elif obj_type == "image": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
59 result = upload_metadata(conn, "Image", did, data_dict, df, ann_type, an_name) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
60 else: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
61 raise ValueError("Unsupported object type provided: {}".format(obj_type)) |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
62 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
63 if result is not None: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
64 log_success(f"Successfully uploaded metadata for {obj_type} with ID {did}. Result: {result}") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
65 else: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
66 log_error(f"Failed to upload metadata for {obj_type} with ID {did}.") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
67 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
68 conn.close() |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
69 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
70 except Exception as e: |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
71 log_error(f"Connection error: {str(e)}") |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
72 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
73 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
74 if __name__ == "__main__": |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
75 parser = argparse.ArgumentParser(description='Import metadata into OMERO.') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
76 parser.add_argument('--user', required=True, help='OMERO username') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
77 parser.add_argument('--pws', required=True, help='OMERO password') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
78 parser.add_argument('--host', required=True, help='OMERO host') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
79 parser.add_argument('--port', required=True, type=int, help='OMERO port') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
80 parser.add_argument('--obj_type', required=True, choices=['project', 'screen', 'dataset', 'image'], |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
81 help='Type of OMERO object') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
82 parser.add_argument('--did', type=int, help='ID of the object (if it exists)') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
83 parser.add_argument('--ann_type', required=True, choices=['table', 'KV'], help='Annotation type') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
84 parser.add_argument('--ann_file', required=True, help='Path to the annotation file') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
85 parser.add_argument('--an_name', required=True, help='Namespace or title for the annotation') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
86 parser.add_argument('--log_file', default='metadata_import_log.txt', help='Path to the log file') |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
87 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
88 args = parser.parse_args() |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
89 |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
90 metadata_import_ezo(user=args.user, pws=args.pws, host=args.host, port=args.port, |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
91 obj_type=args.obj_type, did=args.did, ann_type=args.ann_type, |
f762de618b1f
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents:
diff
changeset
|
92 ann_file=args.ann_file, an_name=args.an_name, log_file=args.log_file) |