highspeed-masks-docs.Rmd 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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-masks")
  7. } else {
  8. path_root = here::here()
  9. }
  10. ```
  11. ## Feature selection: Anatomical masks
  12. ### Overview
  13. As described in the paper, we used a feature selection approach that combined binarized anatomical ROIs with functional ROIs based on first-level GLMs.
  14. #### Data availability
  15. The data is freely available from https://github.com/lnnrtwttkhn/highspeed-masks and https://gin.g-node.org/lnnrtwttkhn/highspeed-masks.
  16. #### License
  17. The dataset is licensed under Creative Commons Attribution-ShareAlike 4.0.
  18. Please see https://creativecommons.org/licenses/by-sa/4.0/ for details.
  19. ### Creating binary anatomical masks using `highspeed-masks.py`
  20. We created binarized anatomical masks of occipito-temporal cortex and hippocampus based on the participant-specific Freesurfer parcellation using a Nipype workflow:
  21. ```{python, echo=TRUE, code=readLines(file.path(path_root, "code", "masks", "highspeed-masks.py")), eval=FALSE, python.reticulate=FALSE}
  22. ```
  23. ### Plotting masked data using `highspeed-masks-plot.py`
  24. We generated some plots of the data using the following code:
  25. ```{python, echo=TRUE, code=readLines(file.path(path_root, "code", "masks", "highspeed-masks-plot.py")), eval=FALSE, python.reticulate=FALSE}
  26. ```
  27. ### Software: Required packages
  28. The `requirements.txt` file lists the required packages which can be installed e.g., using `pip install -r requirements.txt`
  29. ```{bash, echo=TRUE, code=readLines(file.path(path_root, "requirements.txt")), eval=FALSE}
  30. ```