Download hmc/reference/scripts/make-bids.sh from neurodeskorg/webapps: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/datasets/neurodeskorg/webapps/resolve/main/hmc/reference/scripts/make-bids.sh
- Command line
-
hf download hf://datasets/neurodeskorg/webapps/hmc/reference/scripts/make-bids.sh
-
curl -L -o make-bids.sh https://huggingface.co/datasets/neurodeskorg/webapps/resolve/main/hmc/reference/scripts/make-bids.sh
600 Bytes
| # Minimal BIDS dataset for QSIPrep: ds005577 sub-107 DWI only, files copied unchanged. | |
| set -euo pipefail | |
| SRC=/var/tmp/dwi-data/ds005577 | |
| B=/var/tmp/dwi-hmc/bids | |
| mkdir -p "$B/sub-107/dwi" | |
| cp /var/tmp/dwi-hmc/inputs/ds005577-meta/dataset_description.json "$B/dataset_description.json" | |
| for ext in nii.gz bval bvec json; do | |
| cp "$SRC/sub-107_dir-AP_dwi.$ext" "$B/sub-107/dwi/sub-107_dir-AP_dwi.$ext" | |
| done | |
| printf 'participant_id\nsub-107\n' > "$B/participants.tsv" | |
| cd "$B" | |
| find . -type f | sort | xargs sha256sum > /var/tmp/dwi-hmc/bids-sha256.txt | |
| cat /var/tmp/dwi-hmc/bids-sha256.txt | |