highspeed-mriqc-docs.Rmd 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ---
  2. title: "Faster than thought: Detecting sub-second activation sequences with sequential fMRI pattern analysis"
  3. subtitle: "Short project title: highspeed"
  4. author:
  5. - Lennart Wittkuhn^[Max Planck Institute for Human Development, wittkuhn@mpib-berlin.mpg.de]
  6. - Nicolas W. Schuck^[Max Planck Institute for Human Development, schuck@mpib-berlin.mpg.de]
  7. date: "Last update: `r format(Sys.time(), '%d %B, %Y')`"
  8. output:
  9. html_document:
  10. toc: true
  11. self_contained: true
  12. toc_float: true
  13. toc_depth: 3
  14. number_sections: true
  15. highlight: pygments
  16. theme: cosmo
  17. df_print: paged
  18. fig_caption: true
  19. fig.align: "center"
  20. header-includes:
  21. - \usepackage{fontspec}
  22. - \setmainfont{AgfaRotisSansSerif}
  23. email: wittkuhn@mpib-berlin.mpg.de
  24. ---
  25. ```{r, echo=FALSE, message=FALSE, include=FALSE}
  26. if (!requireNamespace("pacman")) install.packages("pacman")
  27. packages_cran <- c("here")
  28. pacman::p_load(char = packages_cran)
  29. if (basename(here::here()) == "highspeed"){
  30. path_root = here::here("highspeed-mriqc")
  31. } else {
  32. path_root = here::here()
  33. }
  34. ```
  35. # MRI quality control
  36. ## Step 1: MRI quality control using [MRIQC](https://mriqc.readthedocs.io/en/stable/)
  37. ### Overview
  38. > MRIQC extracts no-reference IQMs (image quality metrics) from structural (T1w and T2w) and functional MRI (magnetic resonance imaging) data.
  39. Please see the [official MRIQC documentation](https://mriqc.readthedocs.io/en/stable/) for details and refer to the paper listed in the References section.
  40. ### Code and software
  41. #### `mriqc` container, version 0.15.2rc1
  42. MRIQC quality control was performed using [`mriqc`](https://mriqc.readthedocs.io/en/stable/), version 0.15.2rc1
  43. ``` bash
  44. singularity pull docker://poldracklab/mriqc:0.15.2rc1
  45. ```
  46. #### MRIQC subject-level reports: `highspeed-mriqc-subject-level.sh`
  47. First, MRIQC has to run on the individual subject-, (if available, session-), modality- and run- level.
  48. This is achieved by running the `highspeed-mriqc-subject-level.sh` shell-script.
  49. The script is parallelizing all subjects, sessions, modalities and runs on the cluster.
  50. ```{bash, echo=TRUE, code=readLines(file.path(path_root, "code", "mriqc", "highspeed-mriqc-subject-level.sh")), eval=FALSE}
  51. ```
  52. #### MRIQC group-level reports: `highspeed-mriqc-group-level.sh`
  53. Afterwards, one can run the `highspeed-mriqc-group-level.sh` script to acquire group statistics of the quality metrics.
  54. ```{bash, echo=TRUE, code=readLines(file.path(path_root, "code", "mriqc", "highspeed-mriqc-group-level.sh")), eval=FALSE}
  55. ```
  56. ### References
  57. > 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)