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

Cannot set the working directory #728

Open
bertram0611 opened this issue May 29, 2024 · 8 comments
Open

Cannot set the working directory #728

bertram0611 opened this issue May 29, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@bertram0611
Copy link

Hi experts,

I am new to the HALFpipe.
I used the following command line to launch the HALFpipe through the Singularity 3.8.3.
singularity run --containall --bind /:/ext /mnt/data3/HALFpipe/halfpipe-latest.sif --keep none --verbose.

When I set the working directory, I cannot see the directories that I already set. Please see the following picture.
Does anyone know how to fix this issue? Who has experienced the same situation?
image

Best,
Lin

@bertram0611 bertram0611 added the bug Something isn't working label May 29, 2024
@F-Tomas
Copy link
Collaborator

F-Tomas commented Jun 14, 2024

Hi Lin,
is your selected directory completely empty, or are there any other sub directories?
Best,
Tomas

@bertram0611
Copy link
Author

Hi Tomas,

Sorry to reply you so late.
The selected directory includes two folders, where are stored BIDS data for two subjects as follows.

/mnt/data3/HALFpipe/Test$ tree
.
|-- err.txt
|-- log.txt
|-- sub-K1908261100
| |-- T1
| | |-- error.log
| | |-- sub-K1908261100_T1w.json
| | |-- sub-K1908261100_T1w.nii.gz
| | |-- sub-K1908261100_T2w.json
| | |-- sub-K1908261100_T2w.nii.gz
| | |-- sub-K1908261100_notNORM_T1w.json
| | |-- sub-K1908261100_notNORM_T1w.nii.gz
| | |-- sub-K1908261100_notNORM_T2w.json
| | -- sub-K1908261100_notNORM_T2w.nii.gz | |-- dwi | | |-- sub-K1908261100_acq-107axis_dir-AP_dwi.bval | | |-- sub-K1908261100_acq-107axis_dir-AP_dwi.bvec | | |-- sub-K1908261100_acq-107axis_dir-AP_dwi.json | | |-- sub-K1908261100_acq-107axis_dir-AP_dwi.mif | | |-- sub-K1908261100_acq-107axis_dir-AP_dwi.nii.gz | | |-- sub-K1908261100_acq-107axis_dir-AP_sbref.json | | |-- sub-K1908261100_acq-107axis_dir-AP_sbref.nii.gz | | |-- sub-K1908261100_acq-107axis_dir-PA_dwi.bval | | |-- sub-K1908261100_acq-107axis_dir-PA_dwi.bvec | | |-- sub-K1908261100_acq-107axis_dir-PA_dwi.json | | |-- sub-K1908261100_acq-107axis_dir-PA_dwi.mif | | |-- sub-K1908261100_acq-107axis_dir-PA_dwi.nii.gz | | |-- sub-K1908261100_acq-107axis_dir-PA_sbref.json | | |-- sub-K1908261100_acq-107axis_dir-PA_sbref.nii.gz | | |-- sub-K1908261100_acq-99axis_dir-AP_dwi.json | | |-- sub-K1908261100_acq-99axis_dir-AP_dwi.nii.gz | | |-- sub-K1908261100_acq-99axis_dir-PA_dwi.bval | | |-- sub-K1908261100_acq-99axis_dir-PA_dwi.bvec | | |-- sub-K1908261100_acq-99axis_dir-PA_dwi.json | | |-- sub-K1908261100_acq-99axis_dir-PA_dwi.nii.gz | | |-- sub-K1908261100_acq-axis99_dir-AP_sbref.json | | |-- sub-K1908261100_acq-axis99_dir-AP_sbref.nii.gz | | |-- sub-K1908261100_acq-axis99_dir-PA_sbref.json | | -- sub-K1908261100_acq-axis99_dir-PA_sbref.nii.gz
| |-- fMRI
| | |-- sub-K1908261100_task-rest_a_dir-AP_run-01_bold.json
| | |-- sub-K1908261100_task-rest_a_dir-AP_run-01_bold.nii.gz
| | |-- sub-K1908261100_task-rest_a_dir-AP_run-02_bold.json
| | |-- sub-K1908261100_task-rest_a_dir-AP_run-02_bold.nii.gz
| | |-- sub-K1908261100_task-rest_dir-AP_run-01_sbref.json
| | |-- sub-K1908261100_task-rest_dir-AP_run-01_sbref.nii.gz
| | |-- sub-K1908261100_task-rest_dir-AP_run-02_sbref.json
| | |-- sub-K1908261100_task-rest_dir-AP_run-02_sbref.nii.gz
| | |-- sub-K1908261100_task-rest_dir-PA_run-01_bold.json
| | |-- sub-K1908261100_task-rest_dir-PA_run-01_bold.nii.gz
| | |-- sub-K1908261100_task-rest_dir-PA_run-01_sbref.json
| | |-- sub-K1908261100_task-rest_dir-PA_run-01_sbref.nii.gz
| | |-- sub-K1908261100_task-rest_dir-PA_run-02_bold.json
| | |-- sub-K1908261100_task-rest_dir-PA_run-02_bold.nii.gz
| | |-- sub-K1908261100_task-rest_dir-PA_run-02_sbref.json
| | -- sub-K1908261100_task-rest_dir-PA_run-02_sbref.nii.gz | |-- fmap | | |-- sub-K1908261100_dir-AP_run-01_epi.json | | |-- sub-K1908261100_dir-AP_run-01_epi.nii.gz | | |-- sub-K1908261100_dir-AP_run-01_phase.json | | |-- sub-K1908261100_dir-AP_run-01_phase.nii.gz | | |-- sub-K1908261100_dir-AP_run-02_epi.json | | |-- sub-K1908261100_dir-AP_run-02_epi.nii.gz | | |-- sub-K1908261100_dir-AP_run-02_phase.json | | |-- sub-K1908261100_dir-AP_run-02_phase.nii.gz | | |-- sub-K1908261100_dir-PA_run-01_epi.json | | |-- sub-K1908261100_dir-PA_run-01_epi.nii.gz | | |-- sub-K1908261100_dir-PA_run-01_phase.json | | |-- sub-K1908261100_dir-PA_run-01_phase.nii.gz | | |-- sub-K1908261100_dir-PA_run-02_epi.json | | |-- sub-K1908261100_dir-PA_run-02_epi.nii.gz | | |-- sub-K1908261100_dir-PA_run-02_phase.json | | -- sub-K1908261100_dir-PA_run-02_phase.nii.gz
| -- masks | |-- CAREN.nii.gz | |-- Yeo17_Atlas.nii.gz | -- Yeo7_Atlas.nii.gz
`-- sub-K2001171700

Best,
Lin

@F-Tomas
Copy link
Collaborator

F-Tomas commented Jul 3, 2024

Can you try to set as a working directory some completely empty directory which will not be within the data directory?

@bertram0611
Copy link
Author

bertram0611 commented Jul 4, 2024

I think I can set an empty working directory (i.e., Test1). Please see the photo below.

Best,
Lin

Fig111

@F-Tomas
Copy link
Collaborator

F-Tomas commented Jul 4, 2024

Yes, this looks fine. You can now proceed further by replying to the prompted questions. I think that the working folder needs to be without any subdirectories.

@bertram0611
Copy link
Author

Hi,
Thank you for your reply.
If I proceed it even if I cannot see the working directories,
it seems data could be recognized successfully.
But I got another error, reminding me of no FreeSurfer license.
Details please see the attached pdf. Could help you take a look at it?
Regarding the warnings, should I deleted all json files when I analyze data or just leave it?

Best,
Lin

HALFpipeBug.pdf

@lalalavi
Copy link
Collaborator

lalalavi commented Jul 9, 2024

Hi Lin!
You need to get a FreeSurfer license ( you can download it for free after completing this registration: https://surfer.nmr.mgh.harvard.edu/registration.html ) and place it inside of the empty working directory you created. Try this and let us know how it went.
You can also keep the json file as is.

@bertram0611
Copy link
Author

Hi,

Thank you very much for your information.
I have fixed the bugs and got the preprocessed data.
I still have another question regarding the output (Please see the attached figure).
Because I have two runs of rsfMRI data (run01 and run02), and each run includes AP and PA directions.
From the output, it seems HALFpipe did not provide an integrated preprocessed data combining two directions.
If I want to calculate functional connectivity, how can I use these files?
Should I combine these two directions and two runs into one file?

Maybe these questions are naive, could you please explain the output?

Best,
Lin
111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants