-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix incomplete rows in Feature extraction #51
Comments
Question for Nicole: should be just skip the row entirely or try to add Nan in case of ValueError or Joel suggested in #49 (comment) ? |
Or can we use the same wrapper functions for measurements that I'm writing for the Fractal task wrapper? See #49 (comment) |
Your implementation looks fairly similar, the output format is not the same, but should be an easy conversion. However I'm not sure all the features of the original code are present in the fractal version. For example the FAIM_HCS tags (
I might have missed stuff with the first pass, if I see anything else I'll post another comment. Thank you. |
As always, great analysis from your side @enricotagliavini :) Those are indeed also the points I was aware of that we'd have to tackle. Input & output format is not exactly the same, because I think it makes sense to abstract a few more calls (the regionprops call & the dataframe conversion) into the wrapper function. The main reason is that we could then add additional measurements to this same wrapper call that don't rely on regionprops if we want to do so going forward.
Correct. Things like FAIM_HCS tags are something that is specific to using FAIM HCS 0.1.1, thus not general enough to be used through Fractal. But there will always be some information that needs to be passed through, thus I added the
Happy to discuss this and we can also revert back to On all of those points, lets sit together the 3 of us, e.g. at some point next week? Then we can discuss if this approach makes sense and what decisions we want to take on the few renaming discussions :) |
Also, another discussion point could be whether you want to give users more control about whether they want to measure morphology or not in the prefect flows. The new wrapper function would make this an easy thing to set :) |
For the record: @nrepina fixed this and she will make a pull request soon. She used the wrapper function used by fractal. We had to make some changes (e.g python 3.8 support and slight tweaking to extend it), but it should not be an API break, so the fractal part should, hopefully, still work as before. |
Sounds great. If there are changes to make it more generally usable that break my API, happy to adapt as well :) The overall goal for me is get to a point where the wrapper function is well usable by both parts. Great that we're moving to this part and looking forward to the PR @nrepina ! |
See #49 (comment)
TL;DR with reference to
gliberal-scMultipleX/src/scmultiplex/features/FeatureProps.py
Lines 158 to 162 in 0febd7c
We append the row also if there was an Exception during feature extraction, but the row is incomplete. Add an else statement.
The text was updated successfully, but these errors were encountered: