edickie / ciftify

The tools of the Human Connectome Project (HCP) adapted for working with non-HCP datasets
https://edickie.github.io/ciftify/
MIT License
112 stars 158 forks source link

Error in ciftify_peaktable #178

Open joebathelt opened 1 year ago

joebathelt commented 1 year ago

I'm trying to use ciftify_peaktable and ciftify_statclust_report with the --output-peaks flag to generate reports for statistical maps. Unfortunately, ciftify_peaktable throws an error when trying to call the cluster function.

Here is an example:

ciftify_peaktable /data/*.dscalar.nii \
    --outputbase /out/TEST

Error:

option -- unrecognized - ignored
Usage: cluster <options> graphfile
    -C k - generate no more than k clusters (0)
       0 : no limit
    -c k - use clustering method k (0)
       0 : use modularity
       1 : use modularity quality
    -o <outfile> - output file (stdout)
    -v   - verbose mode
    -?   - print usage

I ran this from inside the _fmriprepciftify:latest (17 November 2022) and _fmriprepciftify:1.1.8-2.1.1 docker containers, i.e. using docker run --rm -it --entrypoint bash tigrlab/fmriprep_ciftify:1.1.8-2.1.1 and then calling ciftify_peaktable

DESm1th commented 1 year ago

This is related to this issue https://github.com/edickie/ciftify/issues/166

As a temporary fix, if you run export PATH=/usr/lib/fsl/5.0:${PATH} before ciftify_peaktable it'll find the correct version of the 'cluster' command