Coder Social home page Coder Social logo

Comments (3)

dlevitas avatar dlevitas commented on July 17, 2024

Hi @uriartel,

I've also run into protocols with non-normalized T1w images. For me, I use SideCarFilename instead of SeriesDescription, since both the regular T1w and non-nromalized T1w tend to have the same series description in the protocol. Here's an example from a portion of a configuration file (dcm2bids version 2.1.4):

{
         "dataType": "anat",
         "modalityLabel": "T1w",
         "criteria": {
            "SidecarFilename": "003*"
         }
      },

In this protocol example, a localizer was run first, followed by the T1w scan. So in terms of SideCarFilename the localizer was "001*", the non-normlized T1w was "002*", and the regular T1w was "003*". Since I didn't want to convert the localizer and non-normalized T1w, those were left out of the configuration file.

Hopefully this provides some assistance.

from dcm2bids.

IvanAlvarez avatar IvanAlvarez commented on July 17, 2024

Hi,

In case anyone else lands on this page looking for help, I found another solution for distinguishing between normalised and non-normalised data. The problem with @dlevitas solution is that it relies on the sidecar filenames being in a consistent and predictable order. In their example, 002 corresponding to the non-normalised data and 003 corresponding to the normalised data.

In SIEMENS sequences, the ImageType field contains the field "NORM" when the image is normalised. So, when I specify my .json configuration file, I use:

{
        "dataType": "func",
        "modalityLabel": "bold",
        "criteria": {
            "SeriesDescription": "<some_relevant_series_descriptor>",
            "ImageType": ["ORIGINAL", "PRIMARY", "M", "ND", "NORM", "MOSAIC"]
            },
}

Where the contents of ImageType matches the normalised images, but not the non-normalised images, which read:

"ImageType": ["ORIGINAL", "PRIMARY", "M", "ND", "MOSAIC"]

from dcm2bids.

arnaudbore avatar arnaudbore commented on July 17, 2024

Dear @IvanAlvarez.
Glad @dlevitas was able to help you with this.
Thank you @dlevitas

from dcm2bids.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.