Mercurial > repos > ufz > omero_get_id
diff omero_metadata_upload.py @ 2:c7b2650718fe draft default tip
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 636cbb62d59819caca5bc9eab0a8ec31be5bdd46
author | ufz |
---|---|
date | Mon, 16 Dec 2024 20:55:50 +0000 |
parents | c23735b45a4a |
children |
line wrap: on
line diff
--- a/omero_metadata_upload.py Tue Oct 29 06:59:40 2024 +0000 +++ b/omero_metadata_upload.py Mon Dec 16 20:55:50 2024 +0000 @@ -56,6 +56,10 @@ if did is None: did = ez.post_dataset(conn, dataset_name=str(datetime.now())) result = upload_metadata(conn, "Dataset", did, data_dict, df, ann_type, an_name) + elif obj_type == "plate": + result = upload_metadata(conn, "Plate", did, data_dict, df, ann_type, an_name) + elif obj_type == "well": + result = upload_metadata(conn, "Well", did, data_dict, df, ann_type, an_name) elif obj_type == "image": result = upload_metadata(conn, "Image", did, data_dict, df, ann_type, an_name) else: @@ -74,10 +78,12 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description='Import metadata into OMERO.') - parser.add_argument("--credential-file", dest="credential_file", type=str, required=True, help="Credential file (JSON file with username and password for OMERO)") + parser.add_argument("--credential-file", dest="credential_file", type=str, required=True, + help="Credential file (JSON file with username and password for OMERO)") parser.add_argument('--host', required=True, help='OMERO host') parser.add_argument('--port', required=True, type=int, help='OMERO port') - parser.add_argument('--obj_type', required=True, choices=['project', 'screen', 'dataset', 'image'], + parser.add_argument('--obj_type', required=True, choices=['project', 'screen', 'dataset', 'plate', + 'well ', 'image'], help='Type of OMERO object') parser.add_argument('--did', type=int, help='ID of the object (if it exists)') parser.add_argument('--ann_type', required=True, choices=['table', 'KV'], help='Annotation type')