-
Notifications
You must be signed in to change notification settings - Fork 32
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
Hcs keyvals from csv #195
Hcs keyvals from csv #195
Conversation
Hi Will, sorry, that my response time is so slow at the moment. This is still an important topic for me, it's just the lab work, that is keeping me busy at the moment. I did a test right now and also really, really like the CSV delimiter sniffing. Thanks @JensWendt for the idea. Worked well for my data, which saves some effort and helps to avoid errors due to the commas in the default image names. I only encountered one issue, when creating an Excel file with the annotations and then saving it to csv, which is the most likely scenario for our biologists. When I tried to import this csv file, the script struggled with the BOM at the beginning. The info message is green, but the log stucks at the column headers:
Maybe this is something you could capture and remove the BOM before processing? Thank you very much for your effort! Looking forward to enroll the script on our production system once it's finally released. Anna |
Hi Anna, I also encountered this problem. |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/multiple-key-value-pair-map-annoation-questions/62976/5 |
Hi @JensWendt @abhamacher, |
Hi Will, I tried it out with two different .csv files and it worked. |
See https://forum.image.sc/t/uploading-key-value-pairs-from-csv-files-into-omero-web-for-plates/60202/37 for issues with delimiter sniffing... |
Code extension from Jens Wendt for a more robust delimiter sniffing. Slightly modified and tested by myself, see discussion at https://forum.image.sc/t/uploading-key-value-pairs-from-csv-files-into-omero-web-for-plates/60202/51
Removed unnecessary "pass" commands, as supposed by Will Moore.
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/uploading-key-value-pairs-from-csv-files-into-omero-web-for-plates/60202/58 |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/uploading-key-value-pairs-from-csv-files-into-omero-web-for-plates/60202/61 |
Hello @will-moore , I checked with two plates in one screen. Both with multiple wells and multiple images per well. There was one combined .csv.
in line 137+ at the beginning of
Second the value after "/". Determined by Third, we iterate over the objects (plates) first and then over all the rows. With multiple plates worth of image and well names of course we only match with a fraction of the correct names. Every other name is labeled "not found". This leads to an irritating amount of false negatives with "396 image names not found". Well, that concludes my inputs. If I have a super-smart idea how to solve the "images not found" issue I will let you know. |
@JensWendt Thanks for that - I've pushed a fix (but not had time to test it yet)... |
Worked fine for me. Tested also a file with BOM. Ready to merge fmpov. |
This PR contains all commits from mpievolbio-scicomp#1.
To test: a CSV of this format should behave according to the comment after each row:
A couple of additional points addressed in this PR:
Hcs keyvals from csv mpievolbio-scicomp/omero-scripts#1 (review))
This is now shown in response message:
cc @abhamacher Does this look OK?
If you could give this a final test and 👍 if looking good, that would be great, thanks.
To test (OME)
Using Plate at https://merge-ci.openmicroscopy.org/web/webclient/?show=plate-16105 (user-3).
This has a test
.csv
file attached, using the format above. Sample of it pasted below. Thetarget
column says what should be annotated by each row.Download, inspect and edit the file, then use to run the
annotations_scripts/KeyVal_from_csv.py
script.Rows which have an
image
name will annotate that Image (Well column is ignored)Rows without an
image
will annotate the Well.NB: Can use the
Remove_KeyVal.py
script to remove all Well and Image annotations on the Plate if needed.