pycortex-guide

Generate 2D flatmaps and 3D WebGL viewers from fMRI data using pycortex.

269|20|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/NeuroAIHub/BrainPilot --skill pycortex-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pycortex-guide
Source: https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/06_fMRI_Neuroimaging/pycortex-guide
Command: npx skills add https://github.com/NeuroAIHub/BrainPilot --skill pycortex-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, matplotlib, nibabel, h5py, tornado, shapely, lxml, and includes references (resource) components.

What problem does it solve?

This skill solves the complexity of visualizing fMRI and volumetric neuroimaging data on cortical surfaces, bridging the gap between raw brain data and publication-quality visualizations.

Core Features & Use Cases

  • Surface Visualization: Generate 2D flatmaps and interactive 3D WebGL brain viewers from volumetric data.
  • Data Integration: Seamlessly import and align subjects from FreeSurfer and fMRIPrep pipelines.
  • Use Case: A researcher needs to visualize functional activation maps on a subject's cortical surface; this skill provides the exact commands to map the volume to the surface and render an interactive 3D viewer.

Quick Start

Use the pycortex-guide skill to generate a 2D flatmap of the provided volume data for subject S1.

Frequently Asked Questions about pycortex-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize fMRI data on a cortical surface using pycortex?

To visualize fMRI data on a cortical surface, pycortex maps volumetric neuroimaging data to surface geometry, enabling you to generate 2D flatmaps or interactive 3D WebGL brain viewers for functional activation maps.

Can I integrate FreeSurfer and fMRIPrep outputs for brain surface rendering?

Yes, pycortex supports seamless integration with FreeSurfer and fMRIPrep pipelines, allowing you to import and align subjects directly for accurate cortical surface visualization and volume-to-surface mapping.

What is the best way to create 2D flatmaps from volumetric neuroimaging data?

Creating 2D flatmaps from volumetric data requires volume-to-surface mapping using pycortex, which transforms 3D brain anatomy into flattened 2D representations for publication-quality visualization.

Do I need FreeSurfer to perform volume-to-surface mapping with pycortex?

FreeSurfer is commonly used to prepare the cortical surface geometry required by pycortex, but the workflow also supports fMRIPrep outputs for subject database management and brain surface rendering.

Why is my fMRI volume-to-surface mapping not working in pycortex?

Volume-to-surface mapping issues in pycortex often stem from misaligned subject anatomy or incorrect FreeSurfer integration, requiring validation of surface geometry and volumetric data alignment before rendering.