ciftify icon indicating copy to clipboard operation
ciftify copied to clipboard

Error in ciftify_peaktable

Open joebathelt opened this issue 2 years ago • 1 comments

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 fmriprep_ciftify:latest (17 November 2022) and fmriprep_ciftify: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

joebathelt avatar Nov 18 '22 07:11 joebathelt

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

DESm1th avatar Nov 18 '22 19:11 DESm1th