Giter Site home page Giter Site logo

Bypass bids_validator about freesurfer HOT 7 CLOSED

bids-apps avatar bids-apps commented on July 18, 2024
Bypass bids_validator

from freesurfer.

Comments (7)

chrisgorgo avatar chrisgorgo commented on July 18, 2024

SLICE_TIMING_NOT_DEFINED is a warning and should not stop freesurfer to run. Could you provide the full validator log?

from freesurfer.

egarza avatar egarza commented on July 18, 2024

Sorry for the delay.

Here is the full report. The T1w images are fine, it is some fMRI that have one more slice that are the problem really. But it shouldn't be for freesurfer.

Thanks!

Ed

egarza@Tezcatlipoca:/media/egarza/INP_MRI_Backup/projects/INP/addimex_tms/data/mri$ sudo docker run -i --rm -v /media/egarza/INP_MRI_Backup/projects/INP/addimex_tms/data/mri/bids:/bids_dataset:ro -v /media/egarza/INP_MRI_Backup/projects/INP/addimex_tms/data/mri/outputs_freesurfer:/outputs bids/freesurfer /bids_dataset /outputs participant --participant_label 001 --license_key "*CvJ/FFLEnSE." --multiple_sessions longitudinal --parcellations aparc.a2009s
[sudo] password for egarza: 
	1: You have to define 'TaskName' for this file. (code: 50 - TASK_NAME_MUST_DEFINE)
		/sub-001/ses-t0/func/sub-001_ses-t0_task-rest_bold.nii.gz
		/sub-001/ses-t1/func/sub-001_ses-t1_task-rest_bold.nii.gz
		/sub-002/ses-t0/func/sub-002_ses-t0_task-rest_bold.nii.gz
		/sub-002/ses-t1/func/sub-002_ses-t1_task-rest_bold.nii.gz
		/sub-003/ses-t0/func/sub-003_ses-t0_task-rest_bold.nii.gz
		/sub-003/ses-t1/func/sub-003_ses-t1_task-rest_bold.nii.gz
		/sub-004/ses-t0/func/sub-004_ses-t0_task-rest_bold.nii.gz
		/sub-004/ses-t1/func/sub-004_ses-t1_task-rest_bold.nii.gz
		/sub-005/ses-t0/func/sub-005_ses-t0_task-rest_bold.nii.gz
		/sub-006/ses-t0/func/sub-006_ses-t0_task-rest_bold.nii.gz
		... and 7 more files having this issue (Use --verbose to see them all).

	2: Bold scans must be 4 dimensional. (code: 54 - BOLD_NOT_4D)
		/sub-007/ses-t0/func/sub-007_ses-t0_task-rest_bold.nii.gz
			Evidence: header field "dim" = 3,80,80,11099

	1: This file is not part of the BIDS specification, make sure it isn't included in the dataset by accident. Data derivatives (processed data) should be placed in /derivatives folder. (code: 1 - NOT_INCLUDED)
		/dcm2bids_tms.sh
			Evidence: dcm2bids_tms.sh
		/sub-001/ses-t0/dki/sub-001_ses-t0_dki.bval
			Evidence: sub-001_ses-t0_dki.bval
		/sub-001/ses-t0/dki/sub-001_ses-t0_dki.bvec
			Evidence: sub-001_ses-t0_dki.bvec
		/sub-001/ses-t0/dki/sub-001_ses-t0_dki.json
			Evidence: sub-001_ses-t0_dki.json
		/sub-001/ses-t0/dki/sub-001_ses-t0_dki.nii.gz
			Evidence: sub-001_ses-t0_dki.nii.gz
		/sub-001/ses-t1/dki/sub-001_ses-t1_dki.bval
			Evidence: sub-001_ses-t1_dki.bval
		/sub-001/ses-t1/dki/sub-001_ses-t1_dki.bvec
			Evidence: sub-001_ses-t1_dki.bvec
		/sub-001/ses-t1/dki/sub-001_ses-t1_dki.json
			Evidence: sub-001_ses-t1_dki.json
		/sub-001/ses-t1/dki/sub-001_ses-t1_dki.nii.gz
			Evidence: sub-001_ses-t1_dki.nii.gz
		/sub-002/ses-t0/dki/sub-002_ses-t0_dki.bval
			Evidence: sub-002_ses-t0_dki.bval
		... and 289 more files having this issue (Use --verbose to see them all).

	2: You should define 'SliceTiming' for this file. If you don't provide this information slice time correction will not be possible. (code: 13 - SLICE_TIMING_NOT_DEFINED)
		/sub-001/ses-t0/func/sub-001_ses-t0_task-rest_bold.nii.gz
		/sub-001/ses-t1/func/sub-001_ses-t1_task-rest_bold.nii.gz
		/sub-002/ses-t0/func/sub-002_ses-t0_task-rest_bold.nii.gz
		/sub-002/ses-t1/func/sub-002_ses-t1_task-rest_bold.nii.gz
		/sub-003/ses-t0/func/sub-003_ses-t0_task-rest_bold.nii.gz
		/sub-003/ses-t1/func/sub-003_ses-t1_task-rest_bold.nii.gz
		/sub-004/ses-t0/func/sub-004_ses-t0_task-rest_bold.nii.gz
		/sub-004/ses-t1/func/sub-004_ses-t1_task-rest_bold.nii.gz
		/sub-005/ses-t0/func/sub-005_ses-t0_task-rest_bold.nii.gz
		/sub-006/ses-t0/func/sub-006_ses-t0_task-rest_bold.nii.gz
		... and 7 more files having this issue (Use --verbose to see them all).

	3: Not all subjects contain the same files. Each subject should contain the same number of files with the same naming unless some files are known to be missing. (code: 38 - INCONSISTENT_SUBJECTS)
		/sub-001/ses-t14/anat/sub-001_ses-t14_T1w.json
		/sub-001/ses-t14/anat/sub-001_ses-t14_T1w.nii.gz
		/sub-001/ses-t14/dwi/sub-001_ses-t14_dwi.bval
		/sub-001/ses-t14/dwi/sub-001_ses-t14_dwi.bvec
		/sub-001/ses-t14/dwi/sub-001_ses-t14_dwi.json
		/sub-001/ses-t14/dwi/sub-001_ses-t14_dwi.nii.gz
		/sub-001/ses-t14/func/sub-001_ses-t14_task-rest_bold.json
		/sub-001/ses-t14/func/sub-001_ses-t14_task-rest_bold.nii.gz
		/sub-002/ses-t14/anat/sub-002_ses-t14_T1w.json
		/sub-002/ses-t14/anat/sub-002_ses-t14_T1w.nii.gz
		... and 70 more files having this issue (Use --verbose to see them all).

	4: Not all subjects/sessions/runs have the same scanning parameters. (code: 39 - INCONSISTENT_PARAMETERS)
		/sub-001/ses-t0/dwi/sub-001_ses-t0_dwi.nii.gz
		/sub-002/ses-t0/dwi/sub-002_ses-t0_dwi.nii.gz
		/sub-003/ses-t0/dwi/sub-003_ses-t0_dwi.nii.gz
		/sub-004/ses-t0/dwi/sub-004_ses-t0_dwi.nii.gz
		/sub-005/ses-t0/func/sub-005_ses-t0_task-rest_bold.nii.gz
		/sub-006/ses-t0/func/sub-006_ses-t0_task-rest_bold.nii.gz
		/sub-006/ses-t1/dwi/sub-006_ses-t1_dwi.nii.gz
		/sub-007/ses-t0/func/sub-007_ses-t0_task-rest_bold.nii.gz
		/sub-007/ses-t1/dwi/sub-007_ses-t1_dwi.nii.gz
		/sub-008/ses-t0/func/sub-008_ses-t0_task-rest_bold.nii.gz
		... and 2 more files having this issue (Use --verbose to see them all).

        Summary:                 Available Tasks:        Available Modalities: 
        439 Files, 2.01GB                                T1w                   
        9 - Subjects                                     dwi                   
        3 - Sessions                                     bold                  


Traceback (most recent call last):
  File "/run.py", line 89, in <module>
    run("bids-validator " + args.bids_dir)
  File "/run.py", line 25, in run
    raise Exception("Non zero return code: %d"%process.returncode)
Exception: Non zero return code: 1

from freesurfer.

chrisgorgo avatar chrisgorgo commented on July 18, 2024

from freesurfer.

egarza avatar egarza commented on July 18, 2024

Alright, so code: 50 - TASK_NAME_MUST_DEFINE and code: 54 - BOLD_NOT_4Ds should fix it?

Thanks

from freesurfer.

chrisgorgo avatar chrisgorgo commented on July 18, 2024

from freesurfer.

egarza avatar egarza commented on July 18, 2024

That fixed it.

Thanks

from freesurfer.

rsfmt avatar rsfmt commented on July 18, 2024

Error 1: [Code 50] TASK_NAME_MUST_DEFINE
I am getting this error whenever i am validating my file how can i fix this ? thanks

from freesurfer.

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.