Closed DVSneuro closed 1 year ago
heudiconv
command in your invocation, since it is already an entry point in that container:
$> datalad containers-run --container-name nipy-heudiconv
[INFO ] Making sure inputs are available (this may take some time)
[INFO ] == Command start (output follows) =====
WARNING: Nothing to be done - displaying usage help
usage: heudiconv [-h] [--version] [-d DICOM_DIR_TEMPLATE | --files [FILES ...]] [-s [SUBJS ...]] [-c {dcm2niix,none}]
[-o OUTDIR] [-l LOCATOR] [-a CONV_OUTDIR] [--anon-cmd ANON_CMD] [-f HEURISTIC] [-p] [-ss SESSION]
[-b [BIDSOPTION1 [BIDSOPTION2 ...]]] [--overwrite] [--datalad] [--dbg]
[--command {heuristics,heuristic-info,ls,populate-templates,sanitize-jsons,treat-jsons,populate-intended-for}]
[-g {studyUID,accession_number,all,custom}] [--minmeta] [--random-seed RANDOM_SEED] [--dcmconfig DCMCONFIG]
[-q {SLURM,None}] [--queue-args QUEUE_ARGS]
Example: heudiconv -d 'rawdata/{subject}' -o . -f heuristic.py -s s1 s2 s3
...
- the actual issue is probably in the large number of those dicom files you are pointing to, i.e. do smth like that to discover that
/bin/ls -1 inputs/rawdata/Smith-SRA-10369//scans///DICOM/files/.dcm | nl | tail -n 1
which is what triggers that error message
- I don't think you want to use `-d` argument (since not using template) but rather directly `--files` and then do not bother listing the files but point to folders e.g. `--files inputs/rawdata/Smith-SRA-10369/*/scans/*/*/DICOM/files`
Thanks! That fixed it! Closing this issue.
Hi -- I'm trying to use the ReproNim container for HeuDiConv in datalad, and I'm getting and error with singularity_cmd (
containers/scripts/singularity_cmd: Argument list too long
) when usingdatalad containers-run
. I wasn't sure if I should post this here or the datalad issues page, but I think thesingularity_cmd
is from this repository.Example code is below.
And here's the full output of the error:
Thanks for any tips or pointers!
David