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

4D datasets #17

Closed
fotaras-github opened this issue Jun 20, 2022 · 7 comments
Closed

4D datasets #17

fotaras-github opened this issue Jun 20, 2022 · 7 comments
Assignees

Comments

@fotaras-github
Copy link

Hi Amir,

Can the tool also deal with 4D datasets (e.g. fMRI)? I find that matplotlib returns an error ('Third dimension must be 3 or 4') when the input is 4D.

Am I missing something here?

Thanks!

@satishev
Copy link
Contributor

Looping in @Amir-Reza-Sadri

@Amir-Reza-Sadri
Copy link
Collaborator

Hello,

It should be working, can you share some of your data with me: ars329@case.edu

Thanks.

@fotaras-github
Copy link
Author

Hello,

It should be working, can you share some of your data with me: ars329@case.edu

Thanks.

@Amir-Reza-Sadri Done!

@cammu00
Copy link

cammu00 commented Sep 14, 2022

Hi Amir,
I got a same error for 4D dataset (fMRI, DTI). How to input my dataset or where could I change in codes?

Thanks!

@Amir-Reza-Sadri
Copy link
Collaborator

Please use the code QC4d.py instead of QC.py with the same settings for 4D data.
Here are the considerations for this version:

  1. Assuming the volumetric 4D data is in the form of x × y × z × w, w is the fourth dimension (let's say the time). Right now, you can run the MRQy for a fixed time volume of the data. Depending on the time sequence of your data, you can specify the desired time at line #147 of the QC4d.py script (default value: time_dim=5).
  2. If you want to compare other dimensions of your data in terms of quality metrics, feel free to replace the arguments in line #150.
    Some important things:
  3. Make sure your data files have different names or id.
  4. Make sure your volumetric inputs have the same size.
  5. Make sure you have at least 6 input data.
    Let me know if this works.
    Thanks.

@fotaras-github
Copy link
Author

Please use the code QC4d.py instead of QC.py with the same settings for 4D data. Here are the considerations for this version:

  1. Assuming the volumetric 4D data is in the form of x × y × z × w, w is the fourth dimension (let's say the time). Right now, you can run the MRQy for a fixed time volume of the data. Depending on the time sequence of your data, you can specify the desired time at line #147 of the QC4d.py script (default value: time_dim=5).
  2. If you want to compare other dimensions of your data in terms of quality metrics, feel free to replace the arguments in line #150.
    Some important things:
  3. Make sure your data files have different names or id.
  4. Make sure your volumetric inputs have the same size.
  5. Make sure you have at least 6 input data.
    Let me know if this works.
    Thanks.

Thank you for the update Amir.

With the default time_dim=5, QC4d.py works on datasets with the following dimensions: [64x64x36x200]. But what is time_dim exactly? Time, in seconds/milliseconds, required for each volume? That's the part unclear to me.

@Amir-Reza-Sadri
Copy link
Collaborator

It is the desired time that you want to run the QC over. This way, the tool focuses/compares all scans in a single time-origin.

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

5 participants