Git Product home page Git Product logo

Comments (3)

jmtyszka avatar jmtyszka commented on August 16, 2024

This is something we went back and forth about at our end too, but we encounter multiple subject visits more often than most I guess. I like the idea of the code being compliant to the user's wishes on this, so how about making the input DICOM directory organization dictate whether a session level will be inserted. If a session directory level is present in the DICOM directory, the BIDS source directory will also contain a session level, and the filenames will include the session key-value. Otherwise, not. I'll try to work on this next week.

from bidskit.

celstark avatar celstark commented on August 16, 2024

Exactly - that's my idea. If your DICOM has Session1 in there from the start, we roll with the assumption you want it in there in the BIDS, even if right now, it's just the one session. If your DICOMs live in the subject-level directory, no session gets added.

Code-wise, it doesn't look too bad to add this in.

from bidskit.

jmtyszka avatar jmtyszka commented on August 16, 2024

Added --no-sessions flag (default False) to the command line args. Avoids problems with different DICOM file sources generating different heirarchies for subjects, sessions and series (eg Horus vs Osirix vs DICOM CDs, etc). Simply add this flag to the command line and dcm2bids.py won't use sessions at all. All files within a given subjects DICOM tree will be converted as though they were one session. Let me know if this works for you - I'm others will prefer this to the forced session structure.

from bidskit.

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.