-
Notifications
You must be signed in to change notification settings - Fork 52
Fix visium_hd for empty dataset_id (default spaceranger output). #264
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #264 +/- ##
==========================================
+ Coverage 43.68% 50.15% +6.46%
==========================================
Files 23 26 +3
Lines 2353 2660 +307
==========================================
+ Hits 1028 1334 +306
- Misses 1325 1326 +1
|
|
For non-HD visium, the reader fails when no dataset_id can be inferred. IMO this is desirable as it forces the user to specify the dataset id manually. This helps to actually know what is stored in a spatialdata object. |
|
@grst Enforcing having a One way to solve the double requirement is to guess dataset_id from the folder name that is passed, since that usually has that meaning, but then use by default |
|
Thanks @ddiez for starting the PR. I started from your code and now the issue should be addressed. I'll merge but wait to gather feedback from the users before the next release, so if something needs to be adjusted we will do it. |
|
Hello, Let me know if that sounds good to you, and I can make a PR. |
|
@quentinblampey opened a PR here (#352). Thanks a lot! |
Aims to fix #212. This does not work satisfactorily at the moment because I did not realize
_infer_dataset_id()will fail when there is no id attached tofeature_slice.h5. It works however if we passdataset_id="". But I wonder what the optimal approach is. By defaultspacerangerwill returnfeature_slice.h5so it makes sense to accept this the default and provide the possibility of passing dataset_id when this is not true. In that case perhaps it is best to modify_infer_dataset_id()to check whetherfeature_slice.h5exists. If not then check for files with file id, unless dataset_id is passed in which caseid_feature_slice.h5will be used. Comments?