Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory.
The 3 matches
- [1] § Methods › Behavioral analysis methods ↔ behavioral analysis scripts/02_make_measures_17.R, lines 463 to 501 · score 0.67 · Holm Bonferroni correction, confidence intervals, Pearson, bootstrap, height, correlation · Report a mismatch
- [2] § Results › Behavioral results ↔ behavioral analysis scripts/02_make_measures_17.R, lines 367 to 453 · score 0.59 · bootstrap CI, visual field asymmetries, polar angle, Pearson, variance, HVA · Report a mismatch
- [3] § Methods › Behavioral task ↔ behavioral analysis scripts/02_make_measures_17.R, lines 367 to 453 · score 0.58 · confidence interval, visual field asymmetry, polar angle, variance, bootstrapped, axis · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 502 lines · 19 KB · no license · 3 matches
- library(tidyr)
- library(ez)
- library(tidyverse)
- library(reshape)
- library(ggthemes)
- library(dplyr)
- library(effsize)
- library(boot)
- #library(ggpubfigs)
- rm(list=ls()) # Clear workspace
- # -----------------------------------------------------------------------------------------------------
- # Load data
- script_folder = "/Users/juliapapiernik-klodzinska/Desktop/PhD/_17_Simon_WM/analysis/"
- setwd(script_folder)
- DAT = read.csv(paste(script_folder,'all_clean_17_shuffled.csv', sep = ""), header = TRUE, sep = ",") #length(unique(dat$ID))
- # Dataframe for distances
- datDIST = DAT[,c(1:10)]
- datDIST = gather(datDIST, loc, dist, distance0:distance7, factor_key=TRUE)
- datDIST = datDIST[order(datDIST$participant,datDIST$trial),]
- levels(datDIST$loc) = c(0:7)
- datDIST$dist = datDIST$dist / 6.8 # Normalize
- mdat = melt(datDIST, id=c("loc","trial"), measure="dist", var = "THS")
- cdat = data.frame(cast(mdat, loc+trial ~ ..., mean))
- cdat$dist <- cdat$dist*6.8 #Use only for plotting!
- # ggplot(data=cdat, aes(x=trial, y=dist, group=loc)) + geom_line(aes(color=loc,linewidth=1)) +
- # guides(color = guide_legend(override.aes = list(linewidth = 1)))
- # plt_1 <- ggplot(data=cdat, aes(x=trial, y=dist, color=loc)) +
- # geom_line(aes(group=loc),linewidth=1) +
- # labs(title = "Grand Average of Distance Changes Across Trials", y = "Distance", x = "Trial", color = "Location") +
- # scale_color_manual(values = friendly_pal("tol_eight"), labels = c("Right", "Upper Right", "Up", "Upper Left", "Left", "Lower Left", "Down", "Lower Right")) +
- # theme_minimal() +
- # theme(plot.title = element_text(size = 12), # Title text size
- # axis.title.x = element_text(size = 11), # X-axis title size
- # axis.title.y = element_text(size = 11), # Y-axis title size
- # axis.text.y = element_text(size = 10), # Y-axis tick labels size
- # axis.text.x = element_text(size = 10), # X-axis tick labels size
- # legend.title = element_text(size = 9), # Legend title size
- # legend.text = element_text(size = 8) )
- # plt_1
- # ggsave("plot_grand_avg_stair.png", plot = last_plot(), width = 15, height = 9, units = "cm")
- # Dataframe for reaction times
- mdat = melt(DAT, id=c("participant","targetpos"), measure="rt", var = "THS")
- datRT = data.frame(cast(mdat, participant+targetpos ~ ..., c(mean,sd) ))
- datRT$participant = factor(datRT$participant)
- datRT$targetpos = factor(datRT$targetpos)
- mdat = melt(datRT, id=c("targetpos"), measure="rt_mean", var = "THS")
- cdat = data.frame(cast(mdat, targetpos ~ ..., mean))
- ggplot(data=cdat, aes(x=targetpos, y=rt_mean)) +
- geom_bar(stat="identity",aes(fill=targetpos)) +
- scale_y_continuous(limits = c(0, 1.25), breaks = seq(0, 1.25, by = 0.2))
- #------------------------------------------------------------------------------------------------------
- #RENAME THE LOCATIONS AND CHANGE THE TITLE BEFORE DOING FINAL PLOTS
- mdat <- melt(DAT, id=c('participant'),
- measure=c('distance0','distance1','distance2','distance3','distance4','distance5','distance6','distance7'), var = "DISTANCE")
- cdat <- cast(mdat, participant ~ ..., mean)
- library(tidyr)
- data_long <- gather(cdat, distance, mean, distance0:distance7, factor_key=TRUE)
- data_long <- data_long[order(data_long$participant),]
- cdat <- cast(mdat, participant ~ ..., sd)
- fuu <- gather(cdat, distance, sd, distance0:distance7, factor_key=TRUE)
- fuu <- fuu[order(fuu$participant),]
- data_long$sd = fuu$sd
- # for (s in c(1:nrow(cdat))){
- # fuu = DAT[DAT$participant == cdat$participant[s],]
- # fuu_long <- gather(fuu, distance, val, distance0:distance7, factor_key=TRUE)
- # fuu_long <- data.frame(fuu_long[order(fuu_long$trial),])
- # str(fuu_long)
- #
- # participant_number <- fuu_long$participant[1]
- #
- # custom_labels <- c("distance0" = "Right",
- # "distance1" = "Upper right",
- # "distance2" = "Up",
- # "distance3" = "Upper left",
- # "distance4" = "Left",
- # "distance5" = "Lower left",
- # "distance6" = "Down",
- # "distance7" = "Lower right")
- #
- #
- # # Map the levels of the 'distance' variable to the custom labels
- # levels(fuu_long$distance) <- custom_labels
- #
- # # Plots of individual PPs
- #
- # plt_1 <- ggplot(data=fuu_long, aes(x=trial, y=val, color=distance)) +
- # geom_step(aes(group=distance),linewidth=0.7) + ylim(1,12) +
- # labs(title = paste("Participant", participant_number, " - Performance Across Locations"),
- # y = tools::toTitleCase("distance from the center"),
- # x = tools::toTitleCase("trial"),
- # color = "Location") +
- # theme_light() +
- # theme(legend.key.size = unit(0.5, 'cm'),
- # legend.title = element_text(size = 8),
- # plot.title = element_text(hjust = 0.3, margin = margin(b = 20), size = 12),
- # axis.title.x = element_text(size = 8),
- # axis.title.y = element_text(size = 8),
- # axis.text.x = element_text(size = 10),
- # axis.text.y = element_text(size = 10),
- # axis.ticks = element_line(size = 0.5))
- #
- # print(plt_1)
- #
- # #ggsave(plot = last_plot(), path = "C:/Users/julia/OneDrive/Pulpit/PhD/_17_Simon_WM/analysis/presentation_plots", device = "png", filename = paste("Rplot participant", participant_number, ".png"), units = "cm", width = 10, height = 6)
- # }
- # -----------------------------------------------------------------------------------------------------
- # Group the distance data and calculate necessary statistics
- dat <- datDIST %>%
- group_by(participant, loc) %>%
- summarize(
- dist_M = mean(dist, na.rm = TRUE),
- dist_SD = sd(dist, na.rm = TRUE),
- dist_M_5 = mean(tail(dist, 5), na.rm = TRUE), # Last 5 trials or fewer
- dist_SD_5 = sd(tail(dist,5), na.rm = TRUE), # SD of last 5 trials
- dist_FIN = tail(dist, 1), # Last trial
- dist_M_5_true = mean(tail(unique(dist), 5), na.rm = TRUE),
- .groups = 'drop'
- )
- # Ensure the factors are aligned in datRT
- datRT$participant <- factor(datRT$participant)
- datRT$targetpos <- factor(datRT$targetpos)
- # Join the summarized distance data with reaction time data
- dat$rt_mean <- datRT$rt_mean
- dat$rt_SD <- datRT$rt_sd
- # -----------------------------------------------------------------------------------------------------
- # Plot distributions of the distances and SD
- # Final distance
- stat <- ezANOVA(data=dat, dv=.(dist_FIN), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="dist_FIN", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$dist_FIN_M + cdat$dist_FIN_SE, ymin= cdat$dist_FIN_M - cdat$dist_FIN_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=dist_FIN_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- # Average distance over final 5 trials
- stat <- ezANOVA(data=dat, dv=.(dist_M_5), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="dist_M_5", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$dist_M_5_M + cdat$dist_M_5_SE, ymin= cdat$dist_M_5_M - cdat$dist_M_5_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=dist_M_5_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- # Average distance over final 5 trials
- stat <- ezANOVA(data=dat, dv=.(dist_M_5_true), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="dist_M_5_true", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$dist_M_5_true_M + cdat$dist_M_5_true_SE, ymin= cdat$dist_M_5_true_M - cdat$dist_M_5_true_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=dist_M_5_true_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- # SD of distance over final 5 trials
- stat <- ezANOVA(data=dat, dv=.(dist_SD_5), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="dist_SD_5", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$dist_SD_5_M + cdat$dist_SD_5_SE, ymin= cdat$dist_SD_5_M - cdat$dist_SD_5_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=dist_SD_5_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- # SD over all trials
- stat <- ezANOVA(data=dat, dv=.(dist_SD), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="dist_SD", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$dist_SD_M + cdat$dist_SD_SE, ymin= cdat$dist_SD_M - cdat$dist_SD_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=dist_SD_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- # Average over all trials
- stat <- ezANOVA(data=dat, dv=.(dist_M), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="dist_M", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$dist_M_M + cdat$dist_M_SE, ymin= cdat$dist_M_M - cdat$dist_M_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=dist_M_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- # SD of reaction times
- stat <- ezANOVA(data=dat, dv=.(rt_SD), wid=.(participant), within=.(loc), type=3)
- print(stat)
- mdat <- melt(dat, id=c("loc"), measure="rt_SD", var = "THS")
- cdat <- cast(mdat, loc ~ ..., function(x) c( M=mean(x), SE=sd(x)/sqrt(length(x))))
- limits <- aes(ymax = cdat$rt_SD_M + cdat$rt_SD_SE, ymin= cdat$rt_SD_M - cdat$rt_SD_SE, width=0.2)
- p <- ggplot(data=cdat, aes(x=loc, y=rt_SD_M)) +
- geom_bar(stat="identity",aes(fill=loc)) +
- geom_errorbar(limits)
- p
- write.csv(dat, paste(script_folder,'long_data_final_shuffled.csv',sep=""), row.names = FALSE)
- # -----------------------------------------------------------------------------------------------------
- # Make indices
- inds = data.frame(IDs = unique(dat$participant))
- inds$MD = NA # mean distance over all 8 locations
- inds$HVA = NA # horizontal-vertical asymmetry
- inds$VMA = NA # vertical meridian asymmetry
- inds$LRA = NA # left-right asymmetry
- inds$LR_VFA = NA #left-right visual field asymmetry
- inds$UD_VFA = NA #up-down visual field asymmetry
- inds$TA = NA # total asymmetry
- inds$RDA = NA # right-down asymmetry
- for (r in c(1:nrow(inds))) {
- fuu = dat$dist_M_5[which(dat$participant == inds$IDs[r])]
- inds$MD[r] = mean(fuu)
- inds$HVA[r] = (( mean(fuu[c(1,5)]) - mean(fuu[c(3,7)]) ) / mean(fuu[c(1,3,5,7)]))*100
- inds$VMA[r] = ( fuu[7] - fuu[3] ) / mean(fuu[c(3,7)]) * 100
- inds$LRA[r] = ( fuu[1] - fuu[5] ) / mean(fuu[c(1,5)])
- inds$LR_VFA[r] = ((mean (fuu[c(4,5,6)] - mean(fuu[c(1,2,8)]) / mean(fuu[c(1,2,4,5,6,8)])))) * 100
- inds$UD_VFA[r] = (( mean(fuu[c(6,7,8)] - mean (fuu[c(2,3,4)]) / mean(fuu[c(2,3,4,6,7,8)])))) * 100
- inds$TA[r] = sd(fuu)
- inds$RDA[r] = ( fuu[1] ) / (fuu[7])
- }
- hist(inds$MD)
- hist(inds$HVA)
- hist(inds$VMA)
- hist(inds$LRA)
- hist(inds$LR_VFA)
- hist(inds$UD_VFA)
- hist(inds$TA)
- hist(inds$RDA)
- cor.test(inds$HVA,inds$MD)
- ggplot(inds, aes(x=HVA, y=MD)) + geom_point(size=2) + geom_smooth(method=lm,col="red")
- # -----------------------------------------------------------------------------------------------------
- # Add sex and age from DAT
- for (i in 1:nrow(inds)) {
- participant_id <- inds$IDs[i]
- participant_data <- DAT[DAT$participant == participant_id, ]
- inds$sex[i] <- participant_data$sex[1]
- inds$age[i] <- participant_data$age[1]
- inds$eye.dominance[i] <- participant_data$eye.dominance[1]
- inds$height[i] <- participant_data$height[1]
- inds$weight[i] <- participant_data$weight[1]
- }
- #Correcting one weird datapoint, as I suppose it was a typo
- inds$height[inds$height == 0.57] <- 1.57
- # descriptives of HVA and VMA
- mean(inds$HVA)
- min(inds$HVA)
- max(inds$HVA)
- sd(inds$HVA)
- mean(inds$VMA)
- min(inds$VMA)
- max(inds$VMA)
- sd(inds$VMA)
- # descriptives of VFIs
- mean(inds$LR_VFA)
- min(inds$LR_VFA)
- max(inds$LR_VFA)
- sd(inds$LR_VFA)
- mean(inds$UD_VFA)
- min(inds$UD_VFA)
- max(inds$UD_VFA)
- sd(inds$UD_VFA)
- # bootstrapped confidence intervals for indices
- # Define a function to calculate variance for bootstrapping
- variance_function <- function(data, indices) {
- sample_data <- data[indices] # Select the bootstrap sample
- return(var(sample_data)) # Calculate and return variance
- }
- # Perform bootstrapping
- set.seed(123) # For reproducibility
- bootstrap_results <- boot(data = inds$HVA, statistic = variance_function, R = 1000) # for HVA
- # Calculate and display the 95% confidence interval for the variance
- boot_ci <- boot.ci(bootstrap_results, type = "perc") # Use percentile method for CI
- print(boot_ci)
- sample_variance <- var(inds$HVA)
- # Calculate the standard error of variance (normal approximation)
- n <- length(inds)
- se_variance <- sqrt(2 * sample_variance^2 / (n - 1))
- # 95% CI using normal approximation
- ci_lower <- sample_variance - 1.96 * se_variance
- ci_upper <- sample_variance + 1.96 * se_variance
- c(ci_lower, ci_upper)
- sample_variance <- var(inds$VMA)
- # Calculate the standard error of variance (normal approximation)
- n <- length(inds)
- se_variance <- sqrt(2 * sample_variance^2 / (n - 1))
- # 95% CI using normal approximation
- ci_lower <- sample_variance - 1.96 * se_variance
- ci_upper <- sample_variance + 1.96 * se_variance
- c(ci_lower, ci_upper)
- # Perform bootstrapping
- set.seed(123) # For reproducibility
- bootstrap_results <- boot(data = inds$VMA, statistic = variance_function, R = 1000)
- # Calculate and display the 95% confidence interval for the variance
- boot_ci <- boot.ci(bootstrap_results, type = "perc") # Use percentile method for CI
- print(boot_ci)
- # Perform bootstrapping
- set.seed(123) # For reproducibility
- bootstrap_results <- boot(data = inds$UD_VFA, statistic = variance_function, R = 1000) # for UD_VFA
- # Calculate and display the 95% confidence interval for the variance
- boot_ci <- boot.ci(bootstrap_results, type = "perc") # Use percentile method for CI
- print(boot_ci)
- sample_variance <- var(inds$UD_VFA)
- # Calculate the standard error of variance (normal approximation)
- n <- length(inds)
- se_variance <- sqrt(2 * sample_variance^2 / (n - 1))
- # 95% CI using normal approximation
- ci_lower <- sample_variance - 1.96 * se_variance
- ci_upper <- sample_variance + 1.96 * se_variance
- c(ci_lower, ci_upper)
- bootstrap_results <- boot(data = inds$LR_VFA, statistic = variance_function, R = 1000) # for LR_VFA
- # Calculate and display the 95% confidence interval for the variance
- boot_ci <- boot.ci(bootstrap_results, type = "perc") # Use percentile method for CI
- print(boot_ci)
- sample_variance <- var(inds$LR_VFA)
- # Calculate the standard error of variance (normal approximation)
- n <- length(inds)
- se_variance <- sqrt(2 * sample_variance^2 / (n - 1))
- # 95% CI using normal approximation
- ci_lower <- sample_variance - 1.96 * se_variance
- ci_upper <- sample_variance + 1.96 * se_variance
- c(ci_lower, ci_upper)
- write.csv(inds, paste(script_folder,'VFA_17_field_final_shuffled.csv',sep=""), row.names = FALSE)
- correlation <-cor.test(inds$VMA, inds$HVA, method = 'pearson')
- correlation <- cor(inds$VMA, inds$HVA, method = 'pearson')
- ggplot(inds, aes(x = VMA, y = HVA)) +
- geom_point(color = "#4477AA",alpha = 0.6, shape = 16, size = 1) +
- labs(x = "Vertical Meridian Anisotropy", y = "Horizontal-Vertical Asymmetry", title = "Scatter Plot of Polar Angle\n Asymmetry Indices") +
- geom_smooth(method = "lm", se = FALSE, color = "grey40", linetype = "solid", linewidth = 0.75) +
- annotate("text", x = max(inds$VMA) * 0.9, y = max(inds$HVA) * 0.4,
- label = paste("r =", round(correlation, 2)),
- size = 2, color = "grey40") +
- theme_minimal() +
- theme(plot.title = element_text(size = 9), # Title text size
- axis.title.x = element_text(size = 6.5), # X-axis title size
- axis.title.y = element_text(size = 6.5), # Y-axis title size
- axis.text.y = element_text(size = 7), # Y-axis tick labels size
- axis.text.x = element_text(size = 7), # X-axis tick labels size
- legend.title = element_text(size = 8), # Legend title size
- legend.text = element_text(size = 8) )
- #ggsave("plot_cor_VMA_HVA.png", plot = last_plot(), width = 5.5, height = 5, units = "cm")
- correlation <-cor.test(inds$LR_VFA, inds$UD_VFA, method = 'pearson')
- correlation <- cor(inds$VMA, inds$HVA, method = 'pearson')
- ggplot(inds, aes(x = LR_VFA, y = UD_VFA)) +
- geom_point(color = "#4477AA",alpha = 0.6, shape = 16, size = 1) +
- labs(x = "Left-Right Visual Field Asymmetry", y = "Up-Down Visual Field Asymmetry", title = "Scatter Plot of Visual Field\n Asymmetry Indices") +
- geom_smooth(method = "lm", se = FALSE, color = "grey40", linetype = "solid", linewidth = 0.75) +
- annotate("text", x = max(inds$LR_VFA) * 0.9, y = max(inds$UD_VFA) * 0.4,
- label = paste("r =", round(correlation, 2)),
- size = 2, color = "grey40") +
- theme_minimal() +
- theme(plot.title = element_text(size = 9), # Title text size
- axis.title.x = element_text(size = 6.5), # X-axis title size
- axis.title.y = element_text(size = 6.5), # Y-axis title size
- axis.text.y = element_text(size = 7), # Y-axis tick labels size
- axis.text.x = element_text(size = 7), # X-axis tick labels size
- legend.title = element_text(size = 8), # Legend title size
- legend.text = element_text(size = 8) )
- #ggsave("plot_cor_VFI.png", plot = last_plot(), width = 5.5, height = 5, units = "cm")
- cor.test(inds$LR_VFA, inds$UD_VFA, method = 'pearson')
- cor.test(inds$VMA, inds$HVA, method = 'pearson')
- cor.test(inds$VMA, inds$UD_VFA, method = 'pearson')
- set.seed(2020)
- ## Define a function to calculate the difference of correlations
- diff_corr <- function(data, indices) {
- data <- data[indices, ]
- cor1 <- cor(data$VMA, data$HVA)
- cor2 <- cor(data$LR_VFA, data$UD_VFA)
- return(cor1 - cor2)
- }
- ## Apply the bootstrap procedure with 999 draws
- res_boot <- boot(data = inds,
- R = 999,
- statistic = diff_corr,
- stype = "i")
- ## Retrieve the empirical 95% confidence interval
- boot.ci(res_boot, type = "perc", conf = 0.95)
- t.test(inds$HVA)
- t.test(inds$VMA)
- t.test(inds$LR_VFA)
- t.test(inds$UD_VFA)
- cohen.d(inds$HVA, f = NA)
- cohen.d(inds$VMA, f = NA)
- cohen.d(inds$LR_VFA, f = NA)
- cohen.d(inds$UD_VFA, f = NA)
- p <- c(2.2e-16, 7.486e-07, 5.799e-08, 2.2e-16)
- # Holm-Bonferroni Correction for the t-tests
- p.adjust(p, method = "bonferroni")
- hist(inds$HVA)
- hist(inds$VMA)
- hist(inds$LR_VFA)
- hist(inds$UD_VFA)
- # Correlations with height
- cor.test(inds$UD_VFA, inds$height, method = "pearson", use = "complete.obs")
- cor.test(inds$LR_VFA, inds$height, method = "pearson", use = "complete.obs")
- cor.test(inds$VMA, inds$height, method = "pearson", use = "complete.obs")
- cor.test(inds$HVA, inds$height, method = "pearson", use = "complete.obs")
- p <- c(0.5327,0.4609, 0.8535, 0.03606) # 1) UD 2) LR 3) VMA 4) HVA
- p.adjust(p, "fdr", n = length(p))
02_make_measures_17.R, no license · at the source
Overview
- Consciousness lab, Institute of Psychology, Jagiellonian University, 6 Ingardena Street, 30-060, Kraków, Poland
- Doctoral School in the Social Sciences, Jagiellonian University, Main Square 34, 31-010, Kraków, Poland
- Centre for Brain Research, Jagiellonian University, 50 Kopernika Street, 31-501, Kraków, Poland
- Department of Computer Science, Norwegian University of Science and Technology, Teknologiveien 22NO-2815, Gjøvik, Norway
- Center of Functionally Integrative Neuroscience, Department of Clinical Medicine, Aarhus University and Aarhus University Hospital Universitetsbyen, Building 1710, Universitetsbyen 38000, Aarhus, Denmark
- Neurobiology Research Unit, Department of Neurology, Copenhagen University Hospital Rigshospitalet, Blegdamsvej 9, DK-2100, Copenhagen, Denmark
- Department of Psychology and Center for Neural Science, New York University, 4 Washington Place, New York, NY 10003, United States
Abstract
Whether the primary visual cortex (V1) is essential for visual working memory (vWM) remains a topic of scientific debate. The current study expanded upon previous findings by examining whether idiosyncratic architectural properties of V1, particularly those underlying visual field inhomogeneities such as polar angle asymmetries, predict interindividual differences in vWM performance. A total of 292 participants underwent quantitative MRI (qMRI) using a multiparametric mapping sequence to generate four microstructural maps per participant: magnetization transfer, proton density, longitudinal relaxation rate (R1), and transverse relaxation rate (R2*). In a separate session, the participants completed a vWM task designed to probe visual field inhomogeneities. Behavioral results are consistent with previously reported asymmetries in vWM, particularly the inverted polarity of the vertical meridian asymmetry (VMA). Quantitative MRI analysis revealed significant associations between VMA and multiple qMRI parameters within V1, indicating that V1 microarchitecture contributes to variability in vWM performance. Additionally, cortical thickness measures linked V3 to left–right asymmetry, suggesting that structural variability in the early visual cortex beyond V1 also shapes vWM performance. These findings are consistent with the sensory recruitment hypothesis and demonstrate that fine-grained architectural characteristics of early visual areas constrain vWM performance.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
OSF pjmgb
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
7 files
- behavioral analysis scripts/
01_prepDat_17.R , R, 106 lines - behavioral analysis scripts/
02_make_measures_17.R , R, 502 lines, 3 matches - behavioral analysis scripts/
03_eye_dominance_on_meas , R, 76 linesures.R - behavioral analysis scripts/
04_MD and accuracy effects on asymmetries.R , R, 43 lines - behavioral analysis scripts/
05_comparisons_between_l , R, 665 linesocations.R - behavioral analysis scripts/
natural_vs_manmade_stimu , R, 238 linesli.R - procedure/
DelPinCostBeta.py , Python, 1,036 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 7 scripts, each with its path and the digest of its content;
- 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
The scripts used to run the experimental procedure, as well as the raw behavioral data and scripts used for behavioral analysis, are available at the OSF repository (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 5 keywords, 12 MeSH terms, 3 funders, 117 references.
Cite
This paper
Papiernik-Kłodzińska, J., Del Pin, S. H., Sandberg, K., Wierzchoń, M., Carrasco, M., & Rutiku, R. (2026). Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory. Cerebral cortex (New York, N.Y. : 1991), 36(5), bhag058. https://
BibTeX
@article{papiernikkodzin
author = {Papiernik-Kłodzińska, Julia and Del Pin, Simon Hviid and Sandberg, Kristian and Wierzchoń, Michał and Carrasco, Marisa and Rutiku, Renate},
title = {{Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory}},
journal = {Cerebral cortex (New York, N.Y. : 1991)},
year = {2026},
month = may,
volume = {36},
number = {5},
pages = {bhag058},
publisher = {Oxford University Press},
issn = {1047-3211},
doi = {10.1093/
url = {https://
pmid = {42172102},
pmcid = {PMC13196602}
}
RIS
TY - JOUR
AU - Papiernik-Kłodzińska, Julia
AU - Del Pin, Simon Hviid
AU - Sandberg, Kristian
AU - Wierzchoń, Michał
AU - Carrasco, Marisa
AU - Rutiku, Renate
TI - Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory
T2 - Cerebral cortex (New York, N.Y. : 1991)
J2 - Cereb Cortex
PY - 2026
DA - 2026/
VL - 36
IS - 5
SP - bhag058
SN - 1047-3211
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory",
"container-title": "Cerebral cortex (New York, N.Y. : 1991)",
"author": [
{
"family": "Papiernik-Kłodzińska",
"given": "Julia"
},
{
"family": "Del Pin",
"given": "Simon Hviid"
},
{
"family": "Sandberg",
"given": "Kristian"
},
{
"family": "Wierzchoń",
"given": "Michał"
},
{
"family": "Carrasco",
"given": "Marisa"
},
{
"family": "Rutiku",
"given": "Renate"
}
],
"container-title-short":
"volume": "36",
"issue": "5",
"page": "bhag058",
"DOI": "10.1093/
"PMID": "42172102",
"PMCID": "PMC13196602",
"ISSN": "1047-3211",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
1
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41467-022-31041-9 [code]
- Linking individual differences in human primary visual cortex to contrast sensitivity around the visual field.Journal: Nature communicationsIn common: 19 references, author Marisa Carrasco
- [2] doi:10.1073/pnas.2507810122
- Visual adaptation stronger at the horizontal than the vertical meridian: Linking performance with V1 cortical surface area.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: 17 references, author Marisa Carrasco
- [3] doi:10.7554/elife.84205 [code]
- Cortical magnification eliminates differences in contrast sensitivity across but not around the visual field.Journal: eLifeIn common: 16 references, author Marisa Carrasco
- [4] doi:10.1038/s41467-023-37280-8 [code]
- Comparing retinotopic maps of children and adults reveals a late-stage change in how V1 samples the visual field.Journal: Nature communicationsIn common: NumPy, structural MRI / diffusion, 12 references, author Marisa Carrasco
- [5] doi:10.1371/journal.pcbi.1013599 [code]
- Unpacking the V1 map: Differential covariation of preferred spatial frequency and cortical magnification across spatial dimensions.Journal: PLoS computational biologyIn common: PsychoPy, NumPy, 12 references
- [6] doi:10.1038/s41467-025-63795-3 [code]
- Spatial attention selectively alters visual cortical representation during target anticipation.Journal: Nature communicationsIn common: NumPy, cognitive, 9 references, author Marisa Carrasco
- [7] doi:10.1098/rsos.230321 [code]
- Causal evidence for the role of the sensory visual cortex in visual short-term memory maintenance.Journal: Royal Society open scienceIn common: NumPy, 13 references
- [8] doi:10.1126/sciadv.aea7764 [code]
- Spatial reorganization of object representations in high-level visual cortex distinguishes working memory from perception.Journal: Science advancesIn common: cognitive, 11 references
- [9] doi:10.1038/s41467-024-52479-z [code]
- Frontoparietal network topology as a neural marker of musical perceptual abilities.Journal: Nature communicationsIn common: ggplot2, tidyverse, NumPy, structural MRI / diffusion, cognitive, 5 references, author Kristian Sandberg
- [10] doi:10.1523/eneuro.0243-24.2024
- Presaccadic Attention Enhances and Reshapes the Contrast Sensitivity Function Differentially around the Visual Field.Journal: eNeuroIn common: cognitive, 6 references, author Marisa Carrasco
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 7 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:c1eb1117c9ddf67b…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1093/cercor/bhag058)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/cercor/bhag058.svg
:target: https://openscicode.org/badge/doi/10.1093/cercor/bhag058
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/cercor/bhag058"><img src="https://openscicode.org/badge/doi/10.1093/cercor/bhag058.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
