Mercurial > repos > lldelisle > omero_get_children_ids
annotate omero_get_children_ids.py @ 1:82f2efb46200 draft default tip
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
author | lldelisle |
---|---|
date | Mon, 17 Jun 2024 08:05:48 +0000 |
parents | b0876c73076b |
children |
rev | line source |
---|---|
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
1 import argparse |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
2 import json |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
3 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
4 from omero.gateway import BlitzGateway |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
5 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
6 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
7 def get_omero_credentials(config_file): |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
8 if config_file is None: # IDR connection |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
9 omero_username = "public" |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
10 omero_password = "public" |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
11 else: # other omero instance |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
12 with open(config_file) as f: |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
13 cfg = json.load(f) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
14 omero_username = cfg["username"] |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
15 omero_password = cfg["password"] |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
16 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
17 if omero_username == "" or omero_password == "": |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
18 omero_username = "public" |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
19 omero_password = "public" |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
20 return (omero_username, omero_password) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
21 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
22 |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
23 def recursive_get_children_id(parent_object, final_object_type, get_name): |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
24 output = [] |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
25 if parent_object.OMERO_CLASS == 'WellSample': |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
26 if get_name: |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
27 parent_image = parent_object.getImage() |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
28 return [f"{parent_image.id}\t{parent_image.getName()}"] |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
29 else: |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
30 return [parent_object.getImage().id] |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
31 for children in parent_object.listChildren(): |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
32 if children.OMERO_CLASS == final_object_type.title(): |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
33 if get_name: |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
34 output.append(f"{children.id}\t{children.getName()}") |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
35 else: |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
36 output.append(children.id) |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
37 else: |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
38 # We need to go one step further |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
39 output += recursive_get_children_id( |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
40 children, final_object_type, get_name |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
41 ) |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
42 return output |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
43 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
44 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
45 def get_children_ids(parent_object_type, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
46 omero_id, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
47 final_object_type, |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
48 get_name, |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
49 omero_username, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
50 omero_password, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
51 omero_host="idr.openmicroscopy.org", |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
52 omero_secured=False): |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
53 # Connect to omero: |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
54 with BlitzGateway( |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
55 omero_username, omero_password, host=omero_host, secure=omero_secured |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
56 ) as conn: |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
57 # Retrieve omero object |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
58 parent_object = conn.getObject(parent_object_type.title(), omero_id) |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
59 return recursive_get_children_id( |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
60 parent_object, final_object_type, get_name |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
61 ) |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
62 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
63 |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
64 if __name__ == "__main__": |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
65 p = argparse.ArgumentParser() |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
66 p.add_argument("-oh", "--omero-host", type=str, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
67 default="idr.openmicroscopy.org") |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
68 p.add_argument("--omero-secured", action="store_true", default=True) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
69 p.add_argument("-cf", "--config-file", dest="config_file", |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
70 default=None) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
71 p.add_argument("--parent-object-type", dest="parent_object_type", |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
72 type=str, default=None, required=True) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
73 p.add_argument("--omero-id", dest="omero_id", |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
74 type=int, default=None, required=True) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
75 p.add_argument("--final-object-type", dest="final_object_type", |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
76 type=str, default=None, required=True) |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
77 p.add_argument("--get-name", dest="get_name", |
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
78 action="store_true", default=False) |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
79 p.add_argument("--output", type=str, default=None, required=True) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
80 args = p.parse_args() |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
81 children_ids = get_children_ids( |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
82 args.parent_object_type, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
83 args.omero_id, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
84 args.final_object_type, |
1
82f2efb46200
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 3a5c830ad68e29c5e9f91edffa0a548c77aac141
lldelisle
parents:
0
diff
changeset
|
85 args.get_name, |
0
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
86 *get_omero_credentials(args.config_file), |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
87 omero_host=args.omero_host, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
88 omero_secured=args.omero_secured, |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
89 ) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
90 with open(args.output, 'w') as fo: |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
91 fo.write('\n'.join([str(id) for id in children_ids])) |
b0876c73076b
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_get_children_ids commit 8ac44b0341c70ce330fc0f24712b6f9b59b14731
lldelisle
parents:
diff
changeset
|
92 fo.write('\n') |