Hello dear all,
I am new to this PLS software and I have stucked in the PLS running. I am formating good (at least I believe so..) the datamat file and the my mask and when I am going to run PLS i got this error:
Hello,
Can you give me a little more detail on what you did prior to running the analysis? The datamat is a matrix that contains the images, so it seems that the matrix is not loading properly.
Hello,
Can you give me a little more detail on what you did prior to running the analysis? The datamat is a matrix that contains the images, so it seems that the matrix is not loading properly.
Hello,
Thanks a lot for your quick reply. If datamat is a matrix and not a function you need more details indeed :).
So I have some connectivity matrices (2d arrays) in nifti files and I formated datamat file using the structural tab. I used 1 condition and 200 subjects I saved the file and then I loaded to the Running PLS button in the section group and then I import behavioral data and run the PLS...
These details are enough or you need more to help me because I don't know what to do :(
Thank you a lot
Dr. Manousos Klados
Also I see inside the script that the function struct_get_common() doesn't have as input any variable datamat neither computes it somehow... The first use of this variable is in this line...
nice use of the structural module.. :-)
when you use that, you need to make sure that the mask you put in is the same size as your connectivity matrix and is made up of 1's. (I just made a small sample of 9 subjects with random 2d data, and it worked OK).
If you did that, check the contents of the nii header to make sure that nothing odd was entered..
You can also click the "check orientation" button when you make the datamat - it should look like one of your connectivity matrices
cheers
Nancy
nice use of the structural module.. :-)
when you use that, you need to make sure that the mask you put in is the same size as your connectivity matrix and is made up of 1's. (I just made a small sample of 9 subjects with random 2d data, and it worked OK).
If you did that, check the contents of the nii header to make sure that nothing odd was entered..
You can also click the "check orientation" button when you make the datamat - it should look like one of your connectivity matrices
cheers
Nancy
Thanks nancy...
I will check again the mask, but I don't think this is the probel... As I said before the function struct_get_common doesn't load some data to variable datamat and the first time that datamat appears is in the line mentioned above... Isn't this strange??
yes it is strange - can you post the full error message?
I have tested it with both sparse and full matrices - I only see a failure when all the .nii files are zero
sorry, missed the earlier post - if your still seeing the same error, check your mask file -
sorry, missed the earlier post - if your still seeing the same error, check your mask file -
Thanks for your help...The issue solved by loading a nii file and replacing the img.
Probably as you said something wrong was in the headings...
Thanks again for your precious help
Baycrest is an academic health sciences centre fully affiliated with the University of Toronto
Privacy Statement - Disclaimer - © 1989-2024 BAYCREST HEALTH SCIENCE. ALL RIGHTS RESERVED