bids-apps / CPAC

BIDS Application for the Configurable Pipeline for the Analysis of Connectomes (C-PAC)
Apache License 2.0
14 stars 18 forks source link

test_config not working giving error #35

Open egarza opened 5 years ago

egarza commented 5 years ago

Hi,

I'm using the latest bids/cpac and I get the following error when running test_config using docker and singularity:

#### Running C-PAC
Number of participants to run in parallel: 1
Input directory: /bids_dataset
Output directory: /output/output
Working directory: /scratch/working
Crash directory: /output/crash
Log directory: /output/log
Remove working directory: True
Available memory: 6.0 (GB)
Available threads: 1
Number of threads for ANTs: 1
args.aws_data_input_creds None
Traceback (most recent call last):
  File "/code/run.py", line 338, in <module>
    config_dir="/scratch/")
  File "/usr/local/miniconda/lib/python2.7/site-packages/CPAC/utils/build_data_config.py", line 882, in get_BIDS_data_dct
    sites_dct=sites_subs_dct)
  File "/usr/local/miniconda/lib/python2.7/site-packages/CPAC/utils/build_data_config.py", line 1377, in get_nonBIDS_data
    raise Exception(err)
Exception: 

[!] No anatomical input file paths found given the data settings provided.

Anatomical file template being used: /bids_dataset/*/sub-*/anat/sub-*_T1w.nii.gz

It seems it wants to force to find the session folder but my data does not have one because it is only one session.

The culprit seems to be the following line in build_data_config.py:

 else:
        # no session level
        data_dct = get_nonBIDS_data(anat, func, file_list=file_list,
                                    anat_scan=anat_scan,
                                    scan_params_dct=scan_params_dct,
                                    fmap_phase_template=fmap_phase,
                                    fmap_mag_template=fmap_mag,
                                    aws_creds_path=aws_creds_path,
                                    inclusion_dct=inclusion_dct,
                                    exclusion_dct=exclusion_dct,
                                    sites_dct=sites_subs_dct)

Thanks

Eduardo