Skip to content

Commit

Permalink
Support uploading to Project and Screen objects
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidStirling committed Nov 15, 2023
1 parent d482f37 commit 40aec15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ provide credentials, a token or a connection object.
To upload data, the user needs to specify which OMERO object the table
will be associated with. To do this, the third and fourth arguments
should be the object ID and object type. Supported objects are Dataset,
Well, Plate and Image.
Well, Plate, Project, Screen and Image.

```python
import pandas
Expand Down
4 changes: 4 additions & 0 deletions omero2pandas/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@
"Image": omero.model.ImageAnnotationLinkI,
"Dataset": omero.model.DatasetAnnotationLinkI,
"Plate": omero.model.PlateAnnotationLinkI,
"Project": omero.model.ProjectAnnotationLinkI,
"Screen": omero.model.ScreenAnnotationLinkI,
"Well": omero.model.WellAnnotationLinkI,
}

OBJECT_TYPES = {
"Image": omero.model.ImageI,
"Dataset": omero.model.DatasetI,
"Plate": omero.model.PlateI,
"Project": omero.model.ProjectI,
"Screen": omero.model.ScreenI,
"Well": omero.model.WellI,
}

Expand Down

0 comments on commit 40aec15

Please sign in to comment.