Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No b=0 volumes detected for low diffusion files #79

Open
araikes opened this issue Oct 26, 2023 · 3 comments
Open

No b=0 volumes detected for low diffusion files #79

araikes opened this issue Oct 26, 2023 · 3 comments

Comments

@araikes
Copy link

araikes commented Oct 26, 2023

  • visualqc version: master branch
  • Python version: 3.10
  • Operating System: Centos7

Description

Building on #78, visualqc_diffusion expects b=0 images to genuinely be annotated that way in the bval file. However, this may not always be the case (e.g., precise reporting from the b-matrix, preclinical imaging). This then throws an error that there are no b=0 files.

A better approach would be to set a tolerance for what to consider a b=0 image. DIPY handles this rather gracefully with read_bvals_bvecs and gradient_table.

What I Did

(qctools) [adamraikes@gpu20 app_apoe]$ visualqc_diffusion -b nifti_datalad -o visualqc -old

Diffusion MRI module
Time stamp : 2023-10-26 12:11:07

version info: visualqc 0.6.7.dev5+gdfbe142
numpy 1.26.1 / scipy 1.11.3 / matplotlib 3.8.0
python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
platform Linux-3.10.0-1160.102.1.el7.x86_64-x86_64-with-glibc2.17
#1 SMP Tue Oct 17 15:42:21 UTC 2023


	Linux distribution: {'NAME': 'CentOS Linux', 'ID': 'centos', 'PRETTY_NAME': 'CentOS Linux 7 (Core)', 'VERSION': '7 (Core)', 'ID_LIKE': 'rhel fedora', 'VERSION_ID': '7', 'ANSI_COLOR': '0;31', 'CPE_NAME': 'cpe:/o:centos:centos:7', 'HOME_URL': 'https://www.centos.org/', 'BUG_REPORT_URL': 'https://bugs.centos.org/', 'CENTOS_MANTISBT_PROJECT': 'CentOS-7', 'CENTOS_MANTISBT_PROJECT_VERSION': '7', 'REDHAT_SUPPORT_PRODUCT': 'centos', 'REDHAT_SUPPORT_PRODUCT_VERSION': '7'}
Input folder: /xdisk/adamraikes/app_apoe/nifti_datalad
Output folder: /xdisk/adamraikes/app_apoe/visualqc
outlier detection: disabled, as requested.

Restoring ratings from previous session(s), if they exist ..
To be reviewed : 45

There are no b=0 volumes for MD5E-s75029873--44e2ef85f3fe332c6930ec58a34658a0.nii.gz! Skipping it..
Skipping current subject ..

@raamana
Copy link
Owner

raamana commented Nov 7, 2023

thanks Adam - what's your specific suggestion with

A better approach would be to set a tolerance for what to consider a b=0 image. DIPY handles this rather gracefully with read_bvals_bvecs and gradient_table.

consider the first volume with b<100 to be the effective b=0 volume? or call it the minimal b volume? :)

@araikes
Copy link
Author

araikes commented Dec 4, 2023

Hi @raamana,

Thought I responded to this but apparently didn't. I'd use "effective b=0." I think that's probably more technically correct. With such a low diffusion weighting, it's effectually 0 (for analytic intents and purposes).

@raamana
Copy link
Owner

raamana commented Dec 4, 2023

Right. Let me know if want me help you walk through the codebase e.g., reg #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants