Git Product home page Git Product logo

Comments (12)

hcp4715 avatar hcp4715 commented on August 16, 2024 2

@rnair07 great!
it works now! Thanks a lot!
This is the fastest response I ever had online!
_20180314203422

from bidskit.

jmtyszka avatar jmtyszka commented on August 16, 2024 1

Hi @rnair07 - let me fix #29 before you update the Docker image. Should have a fix today.

from bidskit.

nair-r avatar nair-r commented on August 16, 2024 1

Perfect - good to know! I'll be creating an updated docker image with additional features as per the new convertor script, so do keep an eye out for that! :)

from bidskit.

nair-r avatar nair-r commented on August 16, 2024 1

Yes, post first pass conversion, the files are in the conversion folder. You then need to edit the protocol translator as per BIDS conventions and run a second pass. More info. here: https://github.com/jmtyszka/bidskit#second-pass-conversion and here :https://github.com/jmtyszka/bidskit#edit-translator-dictionary
That puts the files in the BIDS folder.

from bidskit.

jmtyszka avatar jmtyszka commented on August 16, 2024

Hi Chuan-Peng,

Thanks for the detailed breakdown of the issue - really appreciate the screencaps. Do you see a conversion/ subfolder in analysis/work/ and does it contain any .json or nii.gz files? Trying to work out if the dcm2niix conversion failed somehow. I've tagged @nair-r on this too - she's our container expert.

So far we've tested under Centos/Linux and OS X, but I'll extend this to Windows 7/8/10 asap to see if I can reproduce this behaviour (and fix it).

from bidskit.

rnair07 avatar rnair07 commented on August 16, 2024

Hi @hcp4715 - let me look into this and update soon. There have been several new fixes and updates to the bids converter over the last few days which I'd like to incorporate into the new docker image as well. In the meantime, same question as Mike : did it create any interim files whatsoever, such as the protocol translator in the derivatives folder?

from bidskit.

rnair07 avatar rnair07 commented on August 16, 2024

Hi @hcp4715 - could you confirm this as well: Your command mounts the path that includes 'raw_dicom' whereas your folder structure shows only '../../analysis/dicom' and not raw_dicom. Does raw_dicom contain all the same files as dicom folder? Could you re-check/change the path and retry - just want to rule out path errors.

from bidskit.

rnair07 avatar rnair07 commented on August 16, 2024

@hcp4715 Sorry for spamming :) Try this command: specifies the path correctly:
docker run -it -v G:\Data\coiltest\analysis:/mnt rnair07/bidskit --indir=/mnt/dicom --outdir=/mnt/BIDS

This assumes all your subjects dicom are in the 'dicom' folder which is a sub-folder of 'analysis'.

from bidskit.

hcp4715 avatar hcp4715 commented on August 16, 2024

Thanks so much for the quick response!

@jmtyszka in the analysis/work/ folder, there is a folder called conversion, but the conversion folder is empty; the analysis/derivative/conversion contain a .json file called "Protocol_Translator.json", but it is empty too.

@rnair07 , thanks for pointing that out, I put my raw data in analysis/dicom, tried

docker run -it -v G:\Data\coiltest\analysis\dicom:/mnt rnair07/bidskit --indir=/mnt/dicom --outd
ir=/mnt/BIDS
the results is the same.

from bidskit.

nair-r avatar nair-r commented on August 16, 2024

Hi @hcp4715 you don't actually need to specify the dicom folder when mounting, only need to specify it in the --indir flag. Use the command docker run -it -v G:\Data\coiltest\analysis:/mnt rnair07/bidskit --indir=/mnt/dicom --outdir=/mnt/BIDS instead of docker run -it -v G:\Data\coiltest\analysis\dicom:/mnt rnair07/bidskit --indir=/mnt/dicom --outdir=/mnt/BIDS

from bidskit.

hcp4715 avatar hcp4715 commented on August 16, 2024

update: the converted file was in 'work/conversion', not in BIDS

from bidskit.

hcp4715 avatar hcp4715 commented on August 16, 2024

Hi, @nair-r ,
I two addition minor issues:
first, the code for the second pass was as below on the website :

docker run -it -v /PATH_TO_YOUR_RAW_DICOM_FOLDER/:/mnt rnair07/bidskit --indir=/mnt/dicom --outdir=/mnt/source

If I understand correctly, the final BIDS file should be in the BIDS folder, instead of the source folder, so the 'outdir=/mnt/source' should change to 'outdir=/mnt/BIDS' if I hope to put the converted files in BIDS folder. Am I right?

Second, after I delete all the folders generated by the first pass ( because I trying to do the whole process again), and tried to run the first pass conversion again, the output showed that the protocol dictionary already exists. Only after restart docker could I re-run the first-pass.

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.