Ability to specify which series to convert #146
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes a small feature addition to the
dcm2niix
command line interface, which allows the user to specify one or more DICOM data series that they wish to convert.My interest is in GUI development and data visualisation, so I would like to use
dcm2niix
in the following way:Identify the DICOM series that are present, by only outputting BIDS sidecar
.json
files:dcm2niix -b o ...
Prompt the user to select which data series they wish to view.
Convert those series from DICOM to NIFTI, using the proposed
-n
command line flag. For example, if the user only wishes to convert series 2 and 4, they would type:dcm2niix -n 2 -n 4 ...
I am proposing this feature purely from a performance point of view - by limiting which series get converted, computational time, memory, and hard disk usage can all be kept down to only what is necessary.
I figured that, in the event that multiple DICOM series with the same series number are present,
dcm2niix
's present behaviour of appending an alphabetical suffix to the series number in the generated file names would be acceptable.However, I am not particularly tied to use of the series number, so feel free to propose an alternate method of identifying which series to be converted!