miykael / nipype_tutorial

Learn Nipype with these tutorial notebooks - go here to see them online -->
https://miykael.github.io/nipype_tutorial
BSD 3-Clause "New" or "Revised" License
122 stars 69 forks source link

Mistake in `basic_data_output` tutorial example output #150

Open axiezai opened 4 years ago

axiezai commented 4 years ago

Hi Miykael,

I was going over the basic_data_output tutorial, and it seems like there's a mistake in the outputs of the notebook cells in the section "How to use Datasink".

The 3 outputs of the cells with !tree are identical, when you first clean up the datasink, restructure the folders, and when you use substitutions to replace the file names.

they are always:


! tree /output/working_dir/preprocWF_output

/output/working_dir/preprocWF_output
├── in_file
│   ├── sub-01_ses-test_task-fingerfootlips_bold_mcf_smooth.nii.gz
│   └── sub-01_smooth.nii.gz
├── mean_img
│   ├── sub-01_mean.nii.gz
│   └── sub-01_ses-test_task-fingerfootlips_bold_mcf.nii.gz_mean_reg.nii.gz
├── par_file
│   ├── sub-01.par
│   └── sub-01_ses-test_task-fingerfootlips_bold_mcf.nii.gz.par
└── preproc
    ├── sub-01_mean.nii.gz
    ├── sub-01.par
    ├── sub-01_ses-test_task-fingerfootlips_bold_mcf.nii.gz_mean_reg.nii.gz
    ├── sub-01_ses-test_task-fingerfootlips_bold_mcf.nii.gz.par
    ├── sub-01_ses-test_task-fingerfootlips_bold_mcf_smooth.nii.gz
    └── sub-01_smooth.nii.gz