How to create masks from highlighted regions in a NeuroQuery map and apply them to my subjects

Hi,

I used NeuroQuery to generate an image highlighting the brain regions associated with my search term. Now, I would like to:

  1. Create binary masks from these highlighted regions.
  2. Apply these masks to my own subjects’ fMRI data (in MNI space) to extract signals or perform further analysis.

Could you please guide me on the recommended workflow or tools to:

  • Convert the NeuroQuery statistical map into region masks (e.g., thresholding, clustering, atlas-based masking).
  • Align and apply these masks to my preprocessed subject data.

Thank you in advance for your help!

I may be off but I think this example in nilearn can give you a few pointers on how to start processing things.

1 Like

Thank you so much
Will try with it !

Thanks for ur answer!