-
Notifications
You must be signed in to change notification settings - Fork 9
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
Mediation analysis Error message #8
Comments
@HippocampusGirl there seems to an issue with referencing the adjacency set with cython. Any thoughts? @mgogniat I have few of questions: Thank you, |
It seems like one of the inputs to run has zero length. @trislett, could you point me to where you call the function? |
Here it is:
|
@HippocampusGirl that was my first thought too. I used the script successfully yesterday. |
Hello, (a) tfce_mediation 1.5.2 Thanks for your help, Marissa |
Hi @HippocampusGirl , I would be happy to do that but I am not sure what you mean by example input. This is the command I ran that generated this error: tfce_mediation step1-voxel-mediation -i ../home/millerlab/mag53440/TFCE_mediation/MVPA_resids.csv ../home/millerlab/mag53440/TFCE_mediation/DKEFS_resids.csv -c ../home/millerlab/mag53440/TFCE_mediation/covars.csv -m M Thanks |
@mgogniat Just to double check, are you running the command from the same directory as python_temp folder? Does running tfce_mediation step1-voxel-mediation also give you an error? e.g., Could you please move MVPA_resids.csv, DKEFS_resids.csv, and covars.csv files to the same directory as your python_temp folder and retry? Last, could you please tell me the platform you are running the analysis on? |
Hi @trislett When I run the original command (tfce_mediation step1-voxel-mediation) from the python_temp file with all of the files also in the python_temp file, I get this error: IOError: [Errno 2] No such file or directory: 'python_temp/raw_nonzero.npy' Although there is a file called raw_nonzero.npy in my python_temp directory. When I run the command you sent me above also from the python_temp file, I also get this error: IOError: [Errno 2] No such file or directory: 'python_temp/raw_nonzero.npy' I have double checked that everything is in the same directory that I am running the commands from (i.e., I already thought that might the source of the error and have been running everything from there). In terms of the platform, our server is running Red Hat Enterprise Linux 7.5. It is physically a Thanks, Marissa |
Hi Marissa (@mgogniat ), I finally got a RHEL/fedora virtual image up an running, and I haven't had any issues. If you run
If you do have these files/folders, could you please post the output from running?
Could you also please try running Thank you, Tris |
Hi Tris (@trislett), After re-running step0, I got some output (that looks good)! However, I am having an issue with Step 5 (permutation testing). This is the command I used: tfce_mediation step2-randomise-parallel --voxel -n 10000 -m M -p 8 End of output: Evaluating 10000 permuations And it created no perm_SobelZ folder, just a file called cmd_TFCE_randomise_1537981295. Is there something I am doing wrong here? Marissa |
Hi @mgogniat , That error means that GNU parallel is not installed ("parallel: command not found"). You have a few options.
Good luck! |
Hi @trislett, Thanks for all of you help. I was able to complete option c) above and family wise error correct the file. I am now just trying to figure out how to extract a table of this information from the resulting image file. Marissa |
Along this same line, is the SobelZ_M_TFCE_FWEcorrP.nii.gz already thresholded at p=.05? Thanks, Marissa |
Just following up on my questions above, thanks! |
Hi @mgogniat, The SobelZ_M_TFCE_FWEcorrP.nii.gz is a 1-P(FWER corrected) image. That means that any values in the image above 0.95 are significant. |
Hi Dr. Lett, thank you for all of your help. I am running into some issues with the mediation step and I have attached the error message I continue to receive below. Do you have an idea as to why this may be happening?
Command:
TFCEfunc.run(voxelStat_out, voxelStat_TFCE)
tfce_mediation step1-voxel-mediation -i ../home/millerlab/mag53440/TFCE_mediation/MVPA_resids.csv ../home/millerlab/mag53440/TFCE_mediation/DKEFS_resids.csv -c ../home/millerlab/mag53440/TFCE_mediation/covars.csv -m M
Error Message:
File "tfce_mediation/tfce.pyx", line 45, in tfce_mediation.tfce.CreateAdjSet.run
IndexError: Out of bounds on buffer access (axis 0)
The text was updated successfully, but these errors were encountered: