Closed satra closed 7 years ago
I am not sure I understand the problem. Things are being grouped together by parse_and_group
that you think should be separate?
The parse_and_group
method just groups based on the values corresponding to keys provided by the group_by
argument. By default those keys are: 'SeriesInstanceUID', 'SeriesNumber', 'ProtocolName', and 'ImageOrientationPatient'. If that default isn't working you can override it.
Also, I do np.allclose tests on 'ImageOrientationPatient' to allow slightly different values. Maybe the threshold there needs to be adjusted?
@moloney - i'll take a closer look this weekend.
Can this one be closed?
@moloney - we have a dataset that's collected on a siemens trio with vb17 that's giving https://github.com/nipy/heudiconv some trouble.
specifically, all we need is dcmstack's parse and group functionality and then we hand over the conversion to any converter in batches.
https://github.com/nipy/heudiconv/blob/master/bin/heudiconv#L67
however in our dataset 2 of the 28 participants are showing the following patterns for some sequences:
and the 2 participants are not sequential.
any ideas as to what could be causing this?
and more generally we would like to simply have that functionality be an api call in dcmstack, without any nifti conversion. it should simply give us a list of series with grouped dicomfiles and their metadata.