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

the have.fsl command is true but i am facing the error of finding FSLDIR #12

Open
amirka1379 opened this issue Sep 14, 2021 · 13 comments
Open

Comments

@amirka1379
Copy link

here is the code

have.fsl()
[1] TRUE
getOption("fsl.path")
[1] "C:/Users/Asus/FSL/FSLVm7_64.vmwarevm"
#options(fsl.path = "C:/Users/Asus/FSL/FSLVm7_64.vmwarevm")
setwd("/Users/Asus/Desktop/Neurohacking_data-0.0/kirby21/visit_1/113")
nim = readNIfTI("113-01-MPRAGE.nii.gz", reorient = F)
mean(nim)
[1] 143789.2
fslstats("113-01-MPRAGE.nii.gz", opts= "-m")
FSLDIR="C:/Users/Asus/FSL/FSLVm7_64.vmwarevm"; PATH=${FSLDIR}/bin:${PATH};export PATH FSLDIR; FSLOUTPUTTYPE=NIFTI_GZ; export FSLOUTPUTTYPE; ${FSLDIR}/bin/fslstats "C:\Users\Asus\Desktop\Neurohacking_data-0.0\kirby21\visit_1\113\113-01-MPRAGE.nii.gz" -m

Error in system(cmd, intern = TRUE) :
'FSLDIR="C:/Users/Asus/FSL/FSLVm7_64.vmwarevm";' not found

@muschellij2
Copy link
Owner

muschellij2 commented Sep 14, 2021 via email

@amirka1379
Copy link
Author

dear John thanks for your reply.
I was entering the code in Rstudio and R and the FSLDIR error kept popping up.
after your reply, I tried running the same command in fsl terminal in VMware16 in windows 10 because you said I should enter it in virtualmachine and this is what appears for every command
syntax error near unexpected token `"113-01-MPRAGE.nii.gz",'

@amirka1379
Copy link
Author

when installing
devtools::install_github("muschellij2/fslr")
this appears
Skipping install of 'fslr' from a github remote, the SHA1 (0c588287) has not changed since last install.
Use force = TRUE to force installation

as I read in git hub apparently there is no way to solve this error
I ran the force command
do you think it is the cause?

@muschellij2
Copy link
Owner

muschellij2 commented Sep 14, 2021 via email

@amirka1379
Copy link
Author

the codes i mentioned where picked from theme 3 of course and are designed for R
so when I run them in VM ware syntax error appears
image

@muschellij2
Copy link
Owner

muschellij2 commented Sep 14, 2021 via email

@amirka1379
Copy link
Author

image
this the error

@amirka1379
Copy link
Author

image
and this is R
I really appreciate your help and sorry if this is going long

@muschellij2
Copy link
Owner

muschellij2 commented Sep 14, 2021 via email

@amirka1379
Copy link
Author

Sorry John but i don't know how to run R in VMware virtual machine
image

@amirka1379
Copy link
Author

image
this is ubuntu linux terminal

@muschellij2
Copy link
Owner

muschellij2 commented Sep 14, 2021 via email

@amirka1379
Copy link
Author

thanks a lot, John. my issue was resolved. I truly appreciate your help and dedication

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