This repository was archived by the owner on Jan 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Pulkit Goyal edited this page Nov 29, 2022
·
2 revisions
This is the high level flow of the code.
Please refer to the docstrings in functions and the sections of the notebook for better understanding.
- Load data from Benson et. al. PRF analysis, which contains
- PRF analysis results
- Related atlases
- Create Pandas DataFrame from the 4D Numpy Array ->
df
- Add additional columns for parcellation and hemisphere using an atlas
- Download and read GIFTI files (coordinate and mask/atlas) from HCP to get coordinates
- using the
get_coors
function (use appropriate surface and volume spaces) - Add columns to the DataFrame for coordinates (x, y, and z)
- using the
- Filter the DataFrame to remove points
- with less confidence (based on R2) ->
df_
- not of interest (based on
ROI
array) ->dfv
- with less confidence (based on R2) ->
- Create separate DataFrames for either hemispheres ->
dfv_l
anddfv_r
- Group DataFrame by subject ID
- For each group, use
group
function to further- group by
- parcellation
- bins of eccentricity and angular coordinates
- aggregate for each combination of parcellation, eccentricity, and angular bin based on provided aggregation function (mean)
- group by
- Use
l2
function to find the difference between two parcellations for each bin and calculate the L2 distance - Create a pivot table of eccentricity and angular bins with distances as values ->
dfv_d
- For each group, use
- Plot the final mean pivot table across participants