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

Event type 'neutral_resp' and 'reward_resp' are not found in TSV file. #11

Open
HanadS opened this issue Nov 12, 2018 · 19 comments
Open

Comments

@HanadS
Copy link

HanadS commented Nov 12, 2018

Hello!

I am trying to rerun the analysis using ds120 for AFNI. I ran the script process_ds120_AFNI.py and here is the output from the terminal.

ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.
ERROR: Event type 'neutral_resp' not found in TSV file.
ERROR: Event type 'reward_resp' not found in TSV file.

I tried changing the conditions variable in process_ds120_AFNI.py to 'neutral' and 'reward' instead of 'neutral_resp' and 'reward_resp'. Is this the correct fix?

@nicholst
Copy link
Contributor

Thanks for this @HanadS! @AlexBowring and I are looking into it and will get back to you ASAP.

@nicholst
Copy link
Contributor

@HanadS: Can I make sure: You've downloaded the BIDS data and amended process_ds120_AFNI.py so that pre_raw_dir, and raw_dir are set to reflect where your BIDS data is placed?

CC: @AlexBowring

@HanadS
Copy link
Author

HanadS commented Nov 14, 2018 via email

@nicholst
Copy link
Contributor

Huh. What happens when you do this command, at the root for your data (for us it is
/home/maullz/NIDM-Ex/BIDS_Data/DATA/BIDS)

grep neutral_resp ds120_R1.0.0_AMENDED/sub-*/func/*_events.tsv | wc

? I get:

    653    6530   96932

@AlexBowring
Copy link
Collaborator

Hi @HanadS

Have you ran the Amendds120tsv.sh script on your raw_data directory:
https://raw.githubusercontent.com/NISOx-BDI/Software_Comparison/master/scripts/lib/Amendds120tsv.sh

This alters the event files to combine the trial_type and trial_phases columns to make them compatible with the BIDSto3col.sh. i.e. this should give you new event files, where the 'trial_type' and 'trial_phase' columns are combined as one column. In particular this means for 'neutral' trial_type and 'resp' trial_phase events, the new altered event files should just have one column with a 'neutral_resp' event, and then the process_ds120_AFNI.py should work fine.

@HanadS
Copy link
Author

HanadS commented Nov 14, 2018

Hi @AlexBowring and @nicholst ,

This is what I think the issue is.

When I run the script the FIRST time I get an error saying Amendds120tsv.sh: not found because I don't provide the full path for the Amendds120tsv.sh on line 31.

When I run the script the SECOND time without making any changes the if statement is now false because the shutil.copytree(pre_raw_dir, raw_dir) created the directory from the first execution. So the program continues without ever calling the Amendds120tsv function which is needed as @AlexBowring explains. This results in the error message that I get above.

Does this make sense? Perhaps an easy fix would be to call the Amendds120tsv.sh function outside of the if statement?

@nicholst
Copy link
Contributor

nicholst commented Nov 14, 2018 via email

@AlexBowring
Copy link
Collaborator

@HanadS I understand, and agree that is probably exactly what is happening. As a solution for now, I would suggest you delete the raw_dir ds120_R1.0.0_AMENDED, add the /*/Software_Comparison/scripts/lib directory to your shell path, and then, rerunning process_ds120_AFNI.py should work as the if statement will be true. Does that make sense? Please let us know if you need any help with this or if you get an error after doing this.

Thanks for reporting, I will add to the README that the lib directory must be in the shell path before running the scripts.

@HanadS
Copy link
Author

HanadS commented Nov 16, 2018

Hi @AlexBowring,

That makes sense. Thank you for your help. I followed your instructions and I get another error at the run level analysis. The mask_epi_anat.*.HEAD file is missing from that directory.

/home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/../SCRIPTS/level2.sh
Error in library("afex") : there is no package called ‘afex’
Execution halted
ls: cannot access '/home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/sub-*/sub*/mask_epi_anat.*.HEAD': No such file or directory
** FATAL ERROR: need datasets after '-inputs'
** Program compile date = Jan 19 2018
++ 3dTstat: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: KR Hammett & RW Cox
*+ WARNING: Input dataset is not 3D+time; assuming TR=1.0
++ The group average ACF params are:  0.794655
 3.73315
 14.4472
++ 3dClustSim: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: RW Cox and BD Ward
** ERROR (nifti_image_read): failed to find header file for 'mask.nii.gz'
** FATAL ERROR: can't open -mask dataset!
** Program compile date = Jan 19 2018
++ The final cluster volume threshold is: ** error: unknown trailing arguments : ['-csim_pthr', '0.001', '-csim_alpha', '0.05']
/home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/../SCRIPTS/level2.sh: 1: /home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/../SCRIPTS/level2.sh: p2dsetstat: not found
++ The voxelwise stat value threshold is: 
++ 3dcalc: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: A cast of thousands
** ERROR (nifti_image_read): failed to find header file for 'Group.nii.gz'
** FATAL ERROR: can't open dataset Group.nii.gz
** Program compile date = Jan 19 2018
++ 3dclust: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: RW Cox et alii
** FATAL ERROR: Illegal values after -2thresh
** Program compile date = Jan 19 2018
++ 3dcalc: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: A cast of thousands
** ERROR (nifti_image_read): failed to find header file for 'Positive_clust_mask.nii.gz'
** FATAL ERROR: can't open dataset Positive_clust_mask.nii.gz
** Program compile date = Jan 19 2018
++ 3dTcat: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
** ERROR (nifti_image_read): failed to find header file for 'Group_f_stat_masked_4d.nii.gz'
** ERROR (nifti_image_read): failed to find header file for 'Group_f_stat_masked_4d.nii.gz'
** FATAL ERROR: Can't open dataset Group_f_stat_masked_4d.nii.gz
** Program compile date = Jan 19 2018
++ 3dTcat: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
** ERROR (nifti_image_read): failed to find header file for 'Group.nii.gz'
** ERROR (nifti_image_read): failed to find header file for 'Group.nii.gz'
** FATAL ERROR: Can't open dataset Group.nii.gz
** Program compile date = Jan 19 2018
Traceback (most recent call last):
  File "scripts/process_ds120_AFNI.py", line 79, in <module>
    run_group_level_analysis(level1_dir, level2_dir, grp_level_template)
  File "/mnt/home_sq/hanads/Documents/Nguyen/final_version/Software_Comparison-master/scripts/lib/afni_processing.py", line 220, in run_group_level_analysis
    check_call(cmd, shell=True)
  File "/home/hanads/.conda/envs/py27/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/../SCRIPTS/level2.sh' returned non-zero exit status 1

@nicholst
Copy link
Contributor

nicholst commented Nov 16, 2018 via email

@nicholst
Copy link
Contributor

Update: @HanadS, AFNI can be a bear to install... did you do this step:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_linux_ubuntu.html#install-r
and crucially rPkgsInstall -pkgs ALL

@HanadS
Copy link
Author

HanadS commented Nov 16, 2018

Hi @nicholst, I don't believe we have R installed so that may be the issue. I'll install those packages and rerun the analysis and then let you know how it goes.

@HanadS
Copy link
Author

HanadS commented Nov 19, 2018

Hi @nicholst, I reran the analysis after installing the R packages and I get a similar error.

Z slice  93 done:  11/18/18 15:26:58.391 
Z slice  94 done:  11/18/18 15:26:58.590 
Z slice  95 done:  11/18/18 15:26:58.692 
Z slice  96 done:  11/18/18 15:26:58.842 
++ Smallest FDR q [0 (Intercept) F] = 0.00274028
*+ WARNING: Smallest FDR q [1 Agegroup F] = 0.628062 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [2 Incentive F] = 0.57981 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [3 Agegroup:Incentive F] = 0.378054 ==> few true single voxel detections
++ Smallest FDR q [4 Time F] = 1.5068e-12
++ Smallest FDR q [5 Agegroup:Time F] = 0.00447635
++ Smallest FDR q [6 Incentive:Time F] = 2.73741e-09
++ Smallest FDR q [7 Agegroup:Incentive:Time F] = 0.0267941
*+ WARNING: varying brick factors, writing NIfTI as float

Congratulations! You have got an output Group.nii.gz.

ls: cannot access '/home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/sub-*/sub*/mask_epi_anat.*.HEAD': No such file or directory
** FATAL ERROR: need datasets after '-inputs'
** Program compile date = Jan 19 2018
++ 3dTstat: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: KR Hammett & RW Cox
*+ WARNING: Input dataset is not 3D+time; assuming TR=1.0
++ The group average ACF params are:  0.794656
 3.73315
 14.4473
++ 3dClustSim: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: RW Cox and BD Ward
** ERROR (nifti_image_read): failed to find header file for 'mask.nii.gz'
** FATAL ERROR: can't open -mask dataset!
** Program compile date = Jan 19 2018
++ The final cluster volume threshold is: ** error: unknown trailing arguments : ['-csim_pthr', '0.001', '-csim_alpha', '0.05']
/home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/../SCRIPTS/level2.sh: 1: /home/hanads/Documents/Nguyen/final_version/Software_Comparison-master/ds120/output/ds120/AFNI/LEVEL1/../SCRIPTS/level2.sh: p2dsetstat: not found
++ The voxelwise stat value threshold is: 
++ 3dcalc: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: A cast of thousands
** ERROR (nifti_image_read): failed to find header file for 'mask.nii.gz'
** FATAL ERROR: can't open dataset mask.nii.gz
** Program compile date = Jan 19 2018
++ 3dclust: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: RW Cox et alii
** FATAL ERROR: Illegal values after -2thresh
** Program compile date = Jan 19 2018
++ 3dcalc: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ Authored by: A cast of thousands
** ERROR (nifti_image_read): failed to find header file for 'Positive_clust_mask.nii.gz'
** FATAL ERROR: can't open dataset Positive_clust_mask.nii.gz
** Program compile date = Jan 19 2018
++ 3dTcat: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
** ERROR (nifti_image_read): failed to find header file for 'Group_f_stat_masked_4d.nii.gz'
** ERROR (nifti_image_read): failed to find header file for 'Group_f_stat_masked_4d.nii.gz'
** FATAL ERROR: Can't open dataset Group_f_stat_masked_4d.nii.gz
** Program compile date = Jan 19 2018
++ 3dTcat: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ elapsed time = 0.4 s
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]
++ 3dAFNItoNIFTI: AFNI version=AFNI_18.0.09 (Jan 19 2018) [64-bit]

@nicholst
Copy link
Contributor

nicholst commented Nov 19, 2018 via email

@AlexBowring
Copy link
Collaborator

@nicholst That is the right path, AFNI creates its own sub directory for results...

@HanadS I see you are running AFNI version 18.0.09, can i suggest updating to the latest version of AFNI? We used AFNI version 18.1.09 to run these analyses

@HanadS
Copy link
Author

HanadS commented Nov 25, 2018

@nicholst @AlexBowring Thank you for your replies. I will update afni and run the pipeline again.

@HanadS
Copy link
Author

HanadS commented Dec 18, 2018

Hello, sorry for the delay. I updated AFNI and this is the error I am getting now

(hanad) labopb@criugm0283:~/Documents/third_dataset$ python Software_Comparison-master/scripts/process_ds120_AFNI.py 
/home/labopb/Downloads/Enter/envs/hanad/lib/python3.5/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-01_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-01_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-01_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-01_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-01_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-01_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-02_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-02_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-02_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-02_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-02_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-02_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-03_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-03_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-03_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-03_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-03_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-03_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-04_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-04_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-04_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-04_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-04_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-04_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-06_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-06_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-06_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-06_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-06_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-06_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-08_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-08_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-08_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-08_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-08_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-08_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-10_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-10_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-10_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-10_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-10_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-10_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-11_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-11_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-11_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-11_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-11_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-11_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-14_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-14_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-14_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-14_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-14_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-14_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-17_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-17_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-17_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-17_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-17_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-17_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-18_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-18_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-18_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-18_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-18_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-18_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-19_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-19_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-19_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-19_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-19_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-19_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-21_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-21_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-21_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-21_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-21_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-21_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-22_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-22_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-22_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-22_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-22_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-22_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-25_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-25_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-25_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-25_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-25_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-25_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-26_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-26_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-26_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-26_run-01_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-26_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-26_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-27_run-02_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-27_run-02_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-27_run-03_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-27_run-03_reward.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-27_run-01_neutral.txt'
Creating '/home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS/sub-27_run-01_reward.txt'
/home/labopb/Documents/third_dataset/Software_Comparison-master/scripts/lib/3coltoAFNI.sh /home/labopb/Documents/third_dataset/output/ds120/AFNI/ONSETS
/home/labopb/Documents/third_dataset/output/ds120/AFNI/PREPROCESSING/../SCRIPTS/sub-02_SSWarper.sh
** unexpected option #1 = 'sub-02_T1w.nii.gz'
Traceback (most recent call last):
  File "Software_Comparison-master/scripts/process_ds120_AFNI.py", line 75, in <module>
    run_SSWarper(preproc_dir, SSWarper_template)
  File "/home/labopb/Documents/third_dataset/Software_Comparison-master/scripts/lib/afni_processing.py", line 421, in run_SSWarper
    check_call(cmd, shell=True)
  File "/home/labopb/Downloads/Enter/envs/hanad/lib/python3.5/subprocess.py", line 271, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/labopb/Documents/third_dataset/output/ds120/AFNI/PREPROCESSING/../SCRIPTS/sub-02_SSWarper.sh' returned non-zero exit status 1

@AlexBowring
Copy link
Collaborator

Hi @HanadS,

Sorry for the delay with this reply.

Can you please tell me which version of AFNI you are using now.

Then can you try putting @SSwarper in your terminal and checking your version of AFNI has the function. If that works can you please paste here exactly what is in the sub-02_SSWarper.sh script.

@HanadS
Copy link
Author

HanadS commented Jan 7, 2019

Hi @AlexBowring!

The afni version I am using is 18.3.16. The @SSwarper apears to be working.

Here is what is in the script.

#!/usr/bin/env tcsh 

@SSwarper sub-02_T1w.nii.gz sub-02

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

3 participants