Closed alexpron closed 2 months ago
some bids compliance errors with default dcm2niix options used:
tar or tar.gz files only are correctly handled by heudiconv (.zip files currently not supported)
Optional
to be done in a dedicated PR
- [ ] solr query enhancement : concatenate all queries into a single one
include debug mode with directory kept i.e. switch to manually specified directories and manual delete if required by default temporary directory are deleted after context execution. The delete keyword allowing to keep the directory is only available in python 3.12 which is too restrictive currently Hence temporary directory mechanism will be replaced by directories and conditional manual deletion
See https://docs.python.org/3.12/library/tempfile.html#tempfile.TemporaryDirectory and https://docs.python.org/3.11/library/tempfile.html#tempfile.TemporaryDirectory
An heuristic covering automri conversion was included into few commits. However it was decided to focus on BIDS conversion only. An script belonging to a different repo (bids_to_automri) was written as well as a PR to evaluate the time needed to go from automri to BIDS ontology as the new organisation of the automri code.
request optimisation has been started but not implemented in the end as it would require to rethink the whole configuration file usage (e.g. using a proper heuristic for each study instead of direct mapping)
datalad.runner.exception.CommandError: CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false ls-files --stage -z -- .heudiconv' failed with exitcode 128
Clean Installation instructions For Debug
conda create -n test python=3.11
conda activate test
conda install python-dotenv
conda install -c conda-forge heudiconv pybids datalad git-annex=*=alldep*
Adding datalad support within shanoir2bids.py script relying on heudiconv software.
Tried to reproduce as far as possible the current usage of the shanoir2bids.py script from configuration.json file
TODO: