sulantha2006 / VoxelStats

A MATLAB package for multi-modal voxel-wise brain image analysis
Other
16 stars 9 forks source link

T-test issues #10

Open dahyunyi opened 2 years ago

dahyunyi commented 2 years ago

Dear Sulantha,

Thank you so much for your work.

I'm trying to run a group difference analysis. I am assuming that t-Test option is to be used.

The csv file was created (an example below): subid imagefile groupvar 001 /Users/A/dir/image/pet_001.nii n 002 /Users/A/dir/image/pet_002nii n 003 /Users/A/dir/image/pet_003.nii p 004 /Users/A/dir/image/pet_004.nii p ...so on...

I've tried to put the following in the GUI: Image Column: imagefile Groupling Column: groupvar Group 1: n Group 2:p

I've then tried to Run. However, the message I got was "Warning: Variable names were modified to make them valid MATLAB identifiers.".

I've tried to use the same csv file for the LM option (just to check if the readTable was somehow now working), but LM seems to be working fine.

Is there a specific way to prep the csv file to perform t-Test?

Your help is greatly appreciated!

Thank you so much.

sulantha2006 commented 2 years ago

Can you try with numerical group variable with 0,1 ?

On Wed, May 18, 2022 at 9:05 PM Dahyun Yi @.***> wrote:

Dear Sulantha,

Thank you so much for your work.

I'm trying to run a group difference analysis. I am assuming that t-Test option is to be used.

The csv file was created (an example below): subid imagefile groupvar 001 /Users/A/dir/image/pet_001.nii n 002 /Users/A/dir/image/pet_002nii n 003 /Users/A/dir/image/pet_003.nii p 004 /Users/A/dir/image/pet_004.nii p ...so on...

I've tried to put the following in the GUI: Image Column: imagefile Groupling Column: groupvar Group 1: n Group 2:p

I've then tried to Run. However, the message I got was "Warning: Variable names were modified to make them valid MATLAB identifiers.".

I've tried to use the same csv file for the LM option (just to check if the readTable was somehow now working), but LM seems to be working fine.

Is there a specific way to prep the csv file to perform t-Test?

Your help is greatly appreciated!

Thank you so much.

— Reply to this email directly, view it on GitHub https://github.com/sulantha2006/VoxelStats/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZL5ZMZYND54CZ4RPMU7LVKW4ZBANCNFSM5WK2UWOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Tatsuhiro-Terada commented 1 year ago

Dear Sulantha Hi, long time no see. Thank you for your work. I have learned VoxelStats in MCSA in 2020. I have a trouble with t-test in Voxelstats. I would appreciate it if you advise me.

I prepared the CSV file, and tried to conduct Voxelstats t-test. First, I made the list by using Excel, and export it as CSV file. Exam. group, PET_images AD, PET_image1_nii AD, PET_image2_nii NC, PET_image3_nii NC, PET_image4_nii and so on

And, the model of VoxelStats t-test is as follows. Image Column: PET_image Group column: group Goup1: AD, Group2:NC

However, the error of " File reading failed for : PET image1_nii" occurred.

Just in case, I changed the type of image file from nifty to minc, however it did not work.

According to the previous letter raised by you, I tried with numerical group variable as follows. Group1: 0, Group2: 1 However, VoxelStats stopped and I failed to conduct.

Of course, in a simillar way, I could conduct LM analysis in VxelStats. Therefore, I was wondering whether there are any mistake in CSV or model.

I am struggling to deal with this problem. Do you have any idea for solving this problem? I would appreciate it if you could help me.

sincerely Tatsuhiro