Inria-Empenn / shanoir_downloader

Scripts to download, check and anonymize datasets
GNU General Public License v3.0
2 stars 3 forks source link

[ENH]: DICOM to NIFTI BIDS conversion with Heudiconv #9

Closed alexpron closed 2 months ago

alexpron commented 6 months ago

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:

alexpron commented 6 months ago

some bids compliance errors with default dcm2niix options used: image

alexpron commented 6 months ago
alexpron commented 6 months ago

tar or tar.gz files only are correctly handled by heudiconv (.zip files currently not supported)

alexpron commented 4 months ago

Optional

to be done in a dedicated PR

  • [ ] solr query enhancement : concatenate all queries into a single one
alexpron commented 4 months ago
alexpron commented 4 months ago

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.

alexpron commented 4 months ago

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)

alexpron commented 3 months ago
alexpron commented 3 months ago
quentinduche commented 3 months ago

datalad.runner.exception.CommandError: CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false ls-files --stage -z -- .heudiconv' failed with exitcode 128

alexpron commented 3 months ago

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*