[MINC-users] Determining DICOM Series File Members?

Andrew Janke a.janke at gmail.com
Wed Aug 5 21:51:19 EDT 2015


Beat me to it...

The only wrinkle is that it uses DICOM.pm (and my mods of it), I had
always planned to port it to use dcmdump from dcmtk but never got to
it. Be sure to use the --rename_log option, it makes life easier if
things go awry!


a


On 6 August 2015 at 02:19, Gabriel A. Devenyi <gdevenyi at gmail.com> wrote:
> I did want to know which series corresponds to T1 etc, turns out dicomsort
> does that *and* sorts it into nice directories for me, which is very
> convenient. The directories it creates are named the series name as well.
>
> --
> Gabriel A. Devenyi B.Eng. Ph.D.
> Research Computing Associate
> Computational Brain Anatomy Laboratory
> Cerebral Imaging Center
> Douglas Mental Health University Institute
> McGill University
> t: 514.761.6131x4781
> e: gdevenyi at gmail.com
>
> On Wed, Aug 5, 2015 at 12:11 PM, Jon Pipitone <jon at pipitone.ca> wrote:
>
>> Ah, I think I misunderstood. You don't want to determine whether a dicom
>> is from a T1 or T2 or etc... just group together all of the dicoms from
>> each series (or a specific series) by number?
>>
>> Jon.
>>
>> On 08/05, Gabriel A. Devenyi wrote:
>> > Thanks for the quick replies!
>> >
>> > As is usually the case, I can across another Andrew Janke tool
>> > https://github.com/andrewjanke/mnc2dcm
>> >
>> > dcmsort does exactly what i'm looking for
>> >
>> > --
>> > Gabriel A. Devenyi B.Eng. Ph.D.
>> > Research Computing Associate
>> > Computational Brain Anatomy Laboratory
>> > Cerebral Imaging Center
>> > Douglas Mental Health University Institute
>> > McGill University
>> > t: 514.761.6131x4781
>> > e: gdevenyi at gmail.com
>> >
>> > On Wed, Aug 5, 2015 at 11:51 AM, Andrew Wood <andrew at biospective.com>
>> wrote:
>> >
>> > > Hi Gabriel,
>> > >
>> > > This is a pretty dumb way to do it, but here's what I run:
>> > >
>> > > $ dcmdump +P 0008,103e +F * | grep MySequenceName -B 1 | grep dcmdump
>> | awk
>> > > '{print $NF}'
>> > >
>> > > - Andrew
>> > >
>> > > On Wed, Aug 5, 2015 at 11:49 AM, Jon Pipitone <jon at pipitone.ca> wrote:
>> > >
>> > > > We've been dealing with this in a pretty stupid but functional way:
>> > > > regexs on the StudyDescription field. The descriptions varies from
>> > > > scanner to scanner, and tech to tech, of course, so you have to tweak
>> > > > your library of regexs as you encounter new data but, you know, it
>> > > > works. :-)
>> > > >
>> > > > pydicom is your friend for this.
>> > > >
>> > > > Jon.
>> > > >
>> > > > On 08/05, Gabriel A. Devenyi wrote:
>> > > > > Hi all,
>> > > > >
>> > > > > If I have a large collection of DICOM files from a single scanning
>> > > > session
>> > > > > (~1000 files), does anyone know of a way to pick out the files of a
>> > > > > specific series? i.e. I have a bunch of scan types and I want to
>> know
>> > > > which
>> > > > > files are the DICOMs for T1s?
>> > > > >
>> > > > > Thanks.
>> > > > >
>> > > > > --
>> > > > > Gabriel A. Devenyi B.Eng. Ph.D.
>> > > > > Research Computing Associate
>> > > > > Computational Brain Anatomy Laboratory
>> > > > > Cerebral Imaging Center
>> > > > > Douglas Mental Health University Institute
>> > > > > McGill University
>> > > > > t: 514.761.6131x4781
>> > > > > e: gdevenyi at gmail.com
>> > > > > _______________________________________________
>> > > > > MINC-users at bic.mni.mcgill.ca
>> > > > > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>> > > > _______________________________________________
>> > > > MINC-users at bic.mni.mcgill.ca
>> > > > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>> > > >
>> > > _______________________________________________
>> > > MINC-users at bic.mni.mcgill.ca
>> > > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>> > >
>> > _______________________________________________
>> > MINC-users at bic.mni.mcgill.ca
>> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>> _______________________________________________
>> MINC-users at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users


More information about the MINC-users mailing list