summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2025-11-13 08:48:28 +0100
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2025-11-13 09:50:52 +0100
commit83fceaa743b326ca354ca47b6297098a4cc4e1b2 (patch)
treea6eeac97feaa6443173cc19885d57b53cbc135e1
parent1573f7f57b4d1122844b2397fda5ad7a213068cc (diff)
neuroscience: Add dcm2bids.
* guix-science/packages/neuroscience.scm (dcm2bids): New variable.
-rw-r--r--guix-science/packages/neuroscience.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/guix-science/packages/neuroscience.scm b/guix-science/packages/neuroscience.scm
index 9b76e5d..27e19d0 100644
--- a/guix-science/packages/neuroscience.scm
+++ b/guix-science/packages/neuroscience.scm
@@ -229,6 +229,44 @@ manipulation, such as thresholding and resampling. The tool can also be used to
229obtain information about image files.") 229obtain information about image files.")
230 (license license:gpl3)))) 230 (license license:gpl3))))
231 231
232(define-public dcm2bids
233 (package
234 (name "dcm2bids")
235 (version "3.2.0")
236 (source
237 (origin
238 (method git-fetch)
239 (uri (git-reference
240 (url "https://github.com/UNFmontreal/Dcm2Bids")
241 (commit version)))
242 (file-name (git-file-name name version))
243 (sha256
244 (base32 "1p57smyrbmi6km1af8m69c2r6yg2f6faqxzjwpwzgpqwayygynwi"))))
245 (build-system pyproject-build-system)
246 (arguments
247 (list
248 #:test-flags
249 #~(list
250 ;; Ignore buggy tests.
251 "--deselect=tests/test_helper.py::test_helper")
252 #:phases
253 #~(modify-phases %standard-phases
254 (add-after 'unpack 'fix-requirements
255 (lambda _
256 (substitute* "setup.py"
257 ;; Not a runtime requirement.
258 (("'packaging.*'")
259 "")))))))
260 (inputs (list dcm2niix))
261 (native-inputs (list python-pybids python-pytest
262 python-pytest-console-scripts python-setuptools))
263 (home-page "https://unfmontreal.github.io/Dcm2Bids/")
264 (synopsis "DICOM to BIDS converter")
265 (description
266 "Convert data from DICOM and organise the resulting NIfTI files into
267@acronym{BIDS, Brain Imaging Data Structure}.")
268 (license license:gpl3)))
269
232(define-public dcm2niix 270(define-public dcm2niix
233 (package 271 (package
234 (name "dcm2niix") 272 (name "dcm2niix")