highspeed-mriqc-docs.Rmd 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ```{r, echo=FALSE, message=FALSE, include=FALSE}
  2. if (!requireNamespace("pacman")) install.packages("pacman")
  3. packages_cran <- c("here")
  4. pacman::p_load(char = packages_cran)
  5. if (basename(here::here()) == "highspeed"){
  6. path_root = here::here("highspeed-mriqc")
  7. } else {
  8. path_root = here::here()
  9. }
  10. ```
  11. ## MRI quality control: Running MRIQC
  12. ### Overview
  13. > MRIQC extracts no-reference IQMs (image quality metrics) from structural (T1w and T2w) and functional MRI (magnetic resonance imaging) data.
  14. Please see the [official MRIQC documentation](https://mriqc.readthedocs.io/en/stable/) for details and refer to the paper listed in the References section.
  15. #### Data availability
  16. The data is freely available from https://github.com/lnnrtwttkhn/highspeed-mriqc and https://gin.g-node.org/lnnrtwttkhn/highspeed-mriqc.
  17. #### License
  18. The dataset is licensed under Creative Commons Attribution-ShareAlike 4.0.
  19. Please see https://creativecommons.org/licenses/by-sa/4.0/ for details.
  20. ### Container: `mriqc` container, version 0.15.2rc1
  21. MRIQC quality control was performed using [`mriqc`](https://mriqc.readthedocs.io/en/stable/), version 0.15.2rc1.
  22. To run MRIQC, we created a Singularity container based on the MRIQC docker image:
  23. ``` bash
  24. singularity pull docker://poldracklab/mriqc:0.15.2rc1
  25. ```
  26. ### MRIQC subject-level reports: `highspeed-mriqc-subject-level.sh`
  27. First, MRIQC has to run on the individual subject-, (if available, session-), modality- and run- level.
  28. This is achieved by running the `highspeed-mriqc-subject-level.sh` shell-script.
  29. The script is parallelizing all subjects and sessions on the cluster.
  30. ```{bash, echo=TRUE, code=readLines(file.path(path_root, "code", "mriqc", "highspeed-mriqc-subject-level.sh")), eval=FALSE}
  31. ```
  32. ### MRIQC group-level reports: `highspeed-mriqc-group-level.sh`
  33. Afterwards, one can run the `highspeed-mriqc-group-level.sh` script to acquire group statistics of the quality metrics.
  34. ```{bash, echo=TRUE, code=readLines(file.path(path_root, "code", "mriqc", "highspeed-mriqc-group-level.sh")), eval=FALSE}
  35. ```
  36. ### References
  37. > Esteban, O., Birman, D., Schaer, M., Koyejo, O. O., Poldrack, R. A., & Gorgolewski, K. J. (2017). MRIQC: Advancing the automatic prediction of image quality in MRI from unseen sites. PLoS ONE, 12(9), e0184661. [doi: 10.1371/journal.pone.0184661](https://doi.org/10.1371/journal.pone.0184661)