Skip to content

Creating multiple rois with purrr #1

@seantma

Description

@seantma

Hi @bbuchsbaum ,

Thanks for your neuroim2 package. Very helpful for handling .nii images!

I have some questions of using neuroim2:

  1. Does neuroim2 depend upon the original neuroim. I was trying to take a look at the data MNI_SPACE_1MM and it somehow asked for neuroim.
  2. I'm trying to create multiple spherical rois and write them out but failed with purrr::map() on spherical_roi(). My code is below. Any suggestions?
# create roi list
roi_list <- list(c(58, -4, 23), c(-58, -14, -18))

# map roi_list to sphere_roi
roi_vol <- roi_list %>% purrr::map(~ spherical_roi(vol, ., radius = 3, fill = 1))
  1. Is there a way I could visualize the rois I've created on top of the MNI_SPACE_1MM with neuroim2?

Thanks for your pointers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions