Open vpzgithub opened 2 months ago
I have the same problem.
The short of adding an ROI is to:
add the ROI-defining data to the overlays.svg
file:
v = cortex.Volume(<data>, <subject>, <transform>)
or if you have vertex-defined data v = cortex.Vertex(<data>, <subject>)
cortex.add_roi(v, name = '<your ROI name>', open_inkscape = True)
open_inkscape
is true
, pycortex will automatically open inkscape for you after this method call, otherwise you will need to manually navigate to the subject directory and open the overlays.svg
fileDraw the ROI.
overlays.svg
file, the data from step 1 will be in the data
layer, inside a sublayer with the name that was passed to cortex.add_roi
. rois/shapes
sublayer, there will be an empty layer with the same name. roi/shapes
. To have the new ROI show up, when calling cortex.quickflat
or cortex.webgl
methods for the first time after adding ROIs, add the recache = True
argument to the method call, e.g. cortex.webgl.show(<data>, recache = True)
.
Hey, Pycortex is a fantastic tool, but I'm currently facing some challenges. Simply put, I'm looking to draw specific ROIs on the unfolded cortical surface, such as certain brain areas from the AAL atlas. I would like to ask for your advice on how to draw these ROI outlines. This is because I want to show others which brain areas my data points belong to, those displayed on the unfolded map. I understand that I might need to use software like Inkscape, but I'm not clear about the overall process. Could you please clarify the general workflow for me? Thank you very much for your assistance!