-
Notifications
You must be signed in to change notification settings - Fork 15
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
Refactor tests #55
Comments
@matthew-brett better late than never. A solution that might be beneficial to users and other packages is to create a "DICOM Gallery" repository holding a catalog of references to other repositories containing sample datasets. This approach is highly inspired by @neurolabusc's Once a gallery is available, |
Just checking that I understand what we don't have now. Is the idea to create a new repository, called - say - What do the Worth setting up such a thing now to give us an idea what would work? |
I made a couple of quick examples and created the base |
Aha - so is the idea that each repository is then a separate Series in the DICOM sense? Rather than a separate DICOM-conversion problem as in the |
Exactly. Some items (repos) might be added to demonstrate particular aspects of encoding or conversion, but the idea is that it will be a more general resource.
I'm not sure whether that's possible or not. Seems like most |
And how about testing for identifying and converting more than one Series contained in a directory? How would you deal with that? Or someone (like me) who would like an example of the set of files from one subject? (By the way - I found one - https://github.com/matthew-brett/insular-dicoms.) |
It's not ideal, but that would require a dedicated repo for this test case (which will not be included in the DICOM gallery).
That might out of the scope of what DICOM gallery is meant to help with, however, perhaps some series may be declared as belonging to the same subject, so that you'll just need to access a number of repos but you'll have all the files. |
This looks nice. I have a couple comments about the MRIcroGL screenshot:
Another option might be to allow the user to interactively view the |
All examples in I am not sure I would worry about ensuring that a tool can disambiguate different series that share the same folder. Perhaps a single repository could validate that conditional. There are two edge cases you will want to handle: first Siemens multi-echo images where identical series and instance numbers are generated for each echo (in my experience, this is the leading cause of data loss for Siemens users, where PACS and data storage tools assume the images are duplicates and only retain one 2D slice for all echoes). The other odd case is some GE systems where a single DICOM series is stored in multiple folders. Here the system limits each file to 1000 DICOM images. Therefore, a series with more than 1000 2D slices gets stored in multiple folders, and even a series with less than 1000 slices can get exported to separate folders if the preceding series use up most of the capacity of the initial folder. If you want to segment each dcm_qa_* repository into one repository per series, you could automate this using dcm2niix's renaming function. It would look something like this (the %o avoids overwriting Siemens field maps where the instance number is identical for different images):
Note that some |
It might be worth checking that Very impressive job parsing the CSA values. |
Thank you! I created a script template to be used and updated the instructions in the README.
I think that could be great. I wish it could be embedded, but I think that would require some JS and GitHub does not allow using script tags in markdown. In any case, I think a link might work well in addition to the png.
That's a great point. I use
I appreciate that! Looking at the exported JSON made me want to clean it up a little more. I have to admit the current implementation for the ASCII header parsing is poorly written (looking back, it seems like a lot of it should simply be replaced with a |
@ZviBaratz - is your ASCII parser parsing the |
Yes.
I definitely wouldn't mind a PR to replace/improve the current implementation based on it. |
I had a go at the integration - see: #85 |
This issue got a little off track, so I'm just summarizing the current state of things and what still needs to be done in the context of this repo:
Trying to provide a better alternative, I proposed a general template repository for uploading sample .dcm and To close this issue, the following steps will be required:
I will probably not have time to push this forward in the next couple of months. However, I wanted to share this here so that I can jump back in more easily in the future, or, of course, if anyone else wants to take this on. |
Move test files to an independent repository and refactor fixtures.
The text was updated successfully, but these errors were encountered: