Skip to content
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

Ability to specify which series to convert #146

Merged
merged 3 commits into from
Dec 13, 2017

Conversation

pauldmccarthy
Copy link

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:

  1. Identify the DICOM series that are present, by only outputting BIDS sidecar .json files:
    dcm2niix -b o ...

  2. Prompt the user to select which data series they wish to view.

  3. 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!

@neurolabusc neurolabusc merged commit 070dca1 into rordenlab:master Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants