Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch export ROIs from screen #156

Merged
merged 5 commits into from
Feb 21, 2020

Conversation

will-moore
Copy link
Member

I found this useful recently, exporting big CSV from many images in a Screen or Plate.

To test:

  • Create lots of ROIs on many images in a Screen or Project.
  • Try to Export ROIs via this script from Screen, Plate, Project.

@will-moore
Copy link
Member Author

Travis failed with

oving network scripts_default
The command ".omero/docker scripts" exited with 1.

Re-running...

@will-moore will-moore changed the title Batch_ROI_Export.py supports Screen, Plate, Project Batch export ROIs from screen Feb 10, 2020
@@ -247,15 +247,36 @@ def link_annotation(objects, file_ann):
o.linkAnnotation(file_ann)


def get_images_from_plate(plate):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for self
This is the kind of method to add to "omero-py-toolbox"

message = "Exported %s shapes" % len(export_data)
return file_ann, message


def run_script():
"""The main entry point of the script, as called by the client."""
data_types = [rstring('Dataset'), rstring('Image')]
data_types = [rstring(s) for s in
Copy link
Member

@jburel jburel Feb 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much more than Screen as indicated in the PR title.
All types of containers need to be reviewed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is in the description. Not space in the title for all testing instructions.

@will-moore will-moore closed this Feb 17, 2020
@will-moore will-moore reopened this Feb 17, 2020
@pwalczysko
Copy link
Member

  • run it on Project, Dataset, Plate, Screen, aslo in multiples
  • All works as expected, but couple of RFEs see below.

RFEs:

  • For plates, have a well (row, column, e.g. A1) as a parameter in the csv
  • For plates, the activities do not suggest "navigate to the plate where I just attached the csv" icon (unlike for P/Ds)
  • For multi-selections (select several Datasets or several Plates or several Projects or Screens, then run the script) or single Projects and Screens with multiple Datasets and Plates respectively, the parameter missing is the originating P/D/S/P

@jburel
Copy link
Member

jburel commented Feb 21, 2020

RFE #172

@jburel jburel merged commit cd74e00 into ome:develop Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants