<i>CACNA1C</i> Genetic Variants Differentially Affect Neuronal Networks Through Divergent Pathways.
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 218 lines · 10 KB · CC0-1.0
- setwd(choose.dir()) #set the environment
- library(tidyverse)
- library(dplyr)
- library(pracma)
- library(ggforce)
- library(purrr)
- #### Load file (Spike List) - only set to do one file at a time ####
- MEAdata <- read.csv(choose.files(default = "", caption = "Select files",
- multi = TRUE, filters = Filters,
- index = nrow(Filters)))
- Filename <- MEAdata[29,2] #Row location may vary with Axion updates
- Filename <- gsub("\\(000\\)\\.raw", "", Filename)
- Barcode <- MEAdata[19,2] #Row location may vary with Axion updates
- MEAdata <- MEAdata %>%
- select(3:5) %>%
- dplyr::mutate(Filename = Filename, Barcode = Barcode)
- colnames(MEAdata)<- c("Time_s", "Electrode", "Amplitude_mV", "Filename", "Barcode")
- tmax = 600 #time of recording in seconds
- #Upload Platemap info
- wellinfo<- read.csv(choose.files(default = "", caption = "Select files",
- multi = TRUE, filters = Filters,
- index = nrow(Filters)))#####add in well inf
- ##################Get just spikes data#########################
- MEAdata$Amplitude_mV<-as.numeric(MEAdata$Amplitude_mV)
- MEAdata$Time_s<-as.numeric(MEAdata$Time_s)
- MEAdata <- MEAdata%>%
- filter(Amplitude_mV!= "NA") %>%
- separate(Electrode, into = c("Well", "Electrode"), sep= "_")
- MEAdata <- merge(MEAdata, wellinfo, by.x = "Well", by.y = "Well", all = FALSE, all.x = TRUE, all.y = TRUE)%>%
- filter(Active == "TRUE")
- MEAdata<-arrange(MEAdata, Well, Time_s)
- Spike_Stats <- MEAdata %>%
- dplyr::group_by(Filename,Treatment, Well, Electrode)%>%
- dplyr::mutate(TotalSpikesE = n()) %>%
- dplyr::ungroup()%>%
- dplyr::group_by(Filename,Well)%>%
- dplyr::mutate(TotalSpikesWell = n(), MedSpikesE = median(TotalSpikesE),
- SpikeRateE = TotalSpikesE/tmax, MedSpikeRateE = median(SpikeRateE),
- maxSpikerateE= max(SpikeRateE), SpikeRateWell = TotalSpikesWell/tmax, ActiveElec = n_distinct(Electrode), medAmplitude_mV = median (Amplitude_mV), meanAmplitude_mV = mean(Amplitude_mV))
- Spike_Stats2<-Spike_Stats%>%
- select(-Time_s, -Electrode, -Amplitude_mV, -Well.Coloring) %>%
- distinct(Filename, Treatment, Well, .keep_all=TRUE)
- csv_name <- paste(Barcode,"_", Filename, "_Spike_stats.csv", sep = "")
- write.csv(Spike_Stats2, csv_name)
- Total_Spikes <- Spike_Stats %>%
- select(Filename,Treatment, Well, TotalSpikesWell, ActiveElec) %>%
- distinct(Filename, Treatment, Well, .keep_all=TRUE)
- ##### Bin spikes, find max ASDR and SB threshold #####
- # Step 1: Create a complete set of bins for each Filename and Well
- complete_bins <- MEAdata %>%
- dplyr::group_by(Filename, Treatment, Well) %>%
- tidyr::expand(bin = cut(seq(0, 600, 0.2), seq(0, 600, 0.2))) %>%
- dplyr::ungroup() %>%
- dplyr::mutate(bin = as.character(bin))
- # Step 2: Create your actual binned spike counts
- Binned_Spikes <- MEAdata %>%
- dplyr::group_by(Filename, Treatment, Well) %>%
- dplyr::mutate(bin = cut(Time_s, seq(0, 600, 0.2))) %>%
- dplyr::ungroup() %>%
- dplyr::group_by(Filename, Treatment, Well, bin) %>%
- dplyr::summarize(count = n()) %>%
- dplyr::ungroup() %>%
- dplyr::mutate(bin = as.character(bin))
- # Step 3: Join complete bins with actual binned spikes and fill missing counts with zeros
- Binned_Spikes <- complete_bins %>%
- dplyr::left_join(Binned_Spikes, by = c("Filename", "Well", "Treatment", "bin")) %>%
- dplyr::mutate(count = replace_na(count, 0))
- # Step 4: Separate bin into start_time and end_time
- Binned_Spikes <- Binned_Spikes %>%
- tidyr::separate(bin, c("start_time", "end_time"), sep = ",", remove = FALSE)%>%
- dplyr::mutate(end_time = gsub("]", "", end_time)) %>%
- dplyr::mutate(start_time = gsub("(", "", start_time, fixed=TRUE))
- # Calculate Max ASDR and set 40% theshold
- Well_MaxASDR <- Binned_Spikes %>%
- dplyr::group_by(Filename, Treatment, Well) %>%
- dplyr::mutate(maxASDR = as.numeric(max(count))) %>%
- dplyr::mutate(threshold = maxASDR*0.4) ## Threshold set at 40% of MaxASDR
- #### ASDR plots ####
- Well_MaxASDR$end_time <- as.numeric(Well_MaxASDR$end_time)
- split_ASDR <- split(Well_MaxASDR, Well_MaxASDR$Well)
- ASDR_plot <- function(Well_MaxASDR) {
- p <- ggplot(Well_MaxASDR, aes(end_time, count)) +
- geom_line(stat = "identity", linejoin = "round", size = 0.1) +
- geom_hline(aes(yintercept = mean(threshold)), color = "red") +
- xlab("Time (s)")+
- ylab("Spike Count")+
- scale_x_continuous(limits = c(0, 600), breaks = seq(0, 600, 100))
- well_name <- unique(Well_MaxASDR$Well)
- Treatment <-unique(Well_MaxASDR$Treatment)
- ggsave(paste0(Barcode, "_",Filename, "_", well_name,"_",Treatment, "_ASDR_plot.tiff"), plot = p, height = 3, width = 10)
- }
- lapply(split_ASDR, ASDR_plot)
- #### Calculate Synchronised Bust Interval, duration and number of spikes per SB ####
- Sync_bursts <- Well_MaxASDR %>% ## Filter 200ms bins so that only the ones above 40% of maxASDR remain --> sync bursts ##
- filter(count>threshold
- )
- Sync_bursts$end_time<-as.numeric(Sync_bursts$end_time)
- Sync_bursts$start_time<-as.numeric(Sync_bursts$start_time)
- Sync_bursts$count<-as.numeric(Sync_bursts$count)
- SB_interval <- Sync_bursts %>% ## Calculate interval between sync bursts
- ungroup()%>%
- dplyr::group_by(Filename, Treatment, Well)%>%
- mutate(interval = start_time-lag(end_time))
- Grouped_SB <- SB_interval %>% ## will only group up to 5 bins (1 second)
- dplyr::group_by(Filename, Treatment, Well)%>%
- mutate(Spike_count = ifelse(interval < 0.4 & !is.na(interval), count + lag(count), count)) %>% ##if interval is < 0.4 sec add spike count from previous row
- mutate(Spike_count = ifelse(interval < 0.4 & !is.na(interval), count + lag(Spike_count), Spike_count)) %>%
- mutate(Spike_count = ifelse(interval < 0.4 & !is.na(interval), count + lag(Spike_count), Spike_count)) %>%
- mutate(Spike_count = ifelse(interval < 0.4 & !is.na(interval), count + lag(Spike_count), Spike_count)) %>% #repeat lag count so can get up to 5 bins
- mutate(Spike_count = ifelse(interval < 0.4 & !is.na(interval), count + lag(Spike_count), Spike_count)) %>% #combined together if interval is < 0.4
- mutate(start_time = ifelse(interval < 0.4 & !is.na(interval), lag(start_time), start_time)) %>% ##if interval is < 0.4 sec change start time to match that of previous row
- mutate(start_time = ifelse(interval < 0.4 & !is.na(interval), lag(start_time), start_time)) %>%
- mutate(start_time = ifelse(interval < 0.4 & !is.na(interval), lag(start_time), start_time)) %>%
- mutate(start_time = ifelse(interval < 0.4 & !is.na(interval), lag(start_time), start_time)) %>%
- mutate(start_time = ifelse(interval < 0.4 & !is.na(interval), lag(start_time), start_time)) %>% ## repeat lag 5 times so up to 4 bins can have same start time
- mutate(interval = ifelse(interval < 0.4, lag(interval), interval)) %>% ##if interval is < 0.4 sec change it so it matches previous row
- mutate(interval = ifelse(interval < 0.4, lag(interval), interval)) %>%
- mutate(interval = ifelse(interval < 0.4, lag(interval), interval)) %>%
- mutate(interval = ifelse(interval < 0.4, lag(interval), interval)) %>%
- mutate(interval = ifelse(interval < 0.4, lag(interval), interval)) ## repeat lag 5 times
- Grouped_SB2 <- Grouped_SB %>%
- dplyr::group_by(Filename, Treatment, Well)%>%
- filter(start_time != lead(start_time)) %>% ## if start time matches next row, delete row
- drop_na(start_time) %>%
- mutate(SB_duration = end_time - start_time) %>%
- mutate(medianSBinterval = median(interval, na.rm = TRUE), meanSBinterval = mean(interval, na.rm = TRUE),
- sd_SBinterval = sd(interval, na.rm = TRUE), SBinterval_CoV = sd_SBinterval/meanSBinterval) %>% ## average SB interval
- mutate(medianSBduration = median(SB_duration, na.rm = TRUE), meanSBduration = mean(SB_duration, na.rm = TRUE), ## average SB duration
- no_SB = n(), median_spike_SB = median(Spike_count, na.rm = TRUE), mean_spike_SB = mean(Spike_count, na.rm = TRUE), ##no of SBs, average no of spikes per SB
- max_spike_SB = max(Spike_count, na.rm = TRUE), ## max no of spikes per SB - like max ASDR but combined from multiple 200ms bins
- total_spike_SB = sum(Spike_count, na.rm = TRUE)) ## total spikes in SBs - can be used to calculate % of spikes in SBs
- ## Simplify data frame to just wells, add total spikes data and calculate % spikes in bursts
- ## and save output measures as csv
- SB_stats <- Grouped_SB2 %>%
- select(-bin, -start_time, -end_time, -count, -interval, -Spike_count) %>%
- distinct(Filename, Treatment, Well, .keep_all=TRUE)
- SB_stats <- SB_stats %>%
- left_join(Total_Spikes, by = join_by("Filename", "Treatment", "Well") ) %>%
- mutate(percent_spike_SB = total_spike_SB/TotalSpikesWell * 100)
- csv_name <- paste(Barcode,"_", Filename, "_SB_stats.csv", sep = "")
- write.csv(SB_stats, csv_name)
- #### Spike Plots ####
- MEAdata$Electrode <- factor(MEAdata$Electrode, levels = c("11", "12", "13", "14", "21", "22","23", "24", "31", "32", "33", "34", "41", "42", "43", "44"))
- Split_Spike <- split(MEAdata, MEAdata$Well)
- Spike_plot <- function(MEAdata) {
- p <- ggplot(MEAdata, aes(x = Time_s)) +
- geom_vline(aes(xintercept = Time_s)) +
- coord_cartesian(ylim = c(0,1))+
- facet_wrap(~Electrode, ncol = 1, strip.position = 'left', drop = FALSE) +
- scale_y_discrete(limits = c("11", "12", "13", "14", "21", "22","23", "24", "31", "32", "33", "34", "41", "42", "43", "44", "C", "B", "A")) +
- theme(axis.title.y = element_blank(),
- axis.text.y = element_blank(),
- axis.ticks.y = element_blank(),
- panel.grid.minor.y = element_blank(),
- panel.grid.major.y = element_blank())+
- xlab("Time (s)")+
- scale_x_continuous(limits = c(0, 600), breaks = seq(0, 600, 100))
- well_name <- unique(MEAdata$Well)
- Treatment <-unique(MEAdata$Treatment)
- ggsave(paste0(Barcode, "_", Filename, "_", well_name,"_",Treatment, "_Spike_plot.tiff"), plot = p, height = 3, width = 10)
- }
- lapply(Split_Spike, Spike_plot)
MEA-SB_stats_GitHub.R, under CC0-1.0 · at the source
Overview
- Neuroscience and Mental Health Innovation Institute, School of Medicine, Cardiff University, Cardiff, United Kingdom
- School of Biosciences, Cardiff University, Cardiff, United Kingdom
- School of Medicine, Cardiff University, Cardiff, United Kingdom
- Department of Psychiatry, Warneford Hospital, University of Oxford, Oxford, United Kingdom
- Mental Health and Neuroscience Institute and Department of Translational Genomics, Maastricht University, Maastricht, the Netherlands
Abstract
Background: CACNA1C encodes the pore-forming subunit of the L-type calcium channel Cav1.2. Common variants in CACNA1C are associated with psychiatric disorders, whereas rare single nucleotide variants cause CACNA1C-related disorder, a multisystem disorder with symptoms that include autism spectrum disorder (ASD), intellectual disability, and seizures. However, the cellular mechanisms linking CACNA1C dysfunction to neurodevelopmental phenotypes remain poorly understood.
Methods: We generated isogenic CACNA1C loss-of-function induced pluripotent stem cell lines and reprogrammed a line from an individual carrying a novel predicted gain-of-function variant (p.Ala1521Pro) in CACNA1C. Neuronal activity was assessed using multielectrode arrays, pharmacological manipulation, and gene expression analysis. Early developmental phenotypes were examined using quantitative reverse transcriptase polymerase chain reaction, immunocytochemistry, and RNA sequencing.
Results: Neurons carrying CACNA1C variants displayed opposing alterations in network dynamics, depending on variant type. Pharmacological and molecular assays indicated that these network differences were associated with dysregulated GABAergic (gamma-aminobutyric acidergic) signaling. Early developmental analysis revealed that loss of CACNA1C altered rosette morphology, CREB (cAMP response element binding protein) phosphorylation, and transcriptional programs related to axonogenesis and synaptic signaling, indicating effects on neuronal differentiation. The patient line exhibited opposing effects on rosette morphology and CREB signaling, reflecting variant-specific effects.
Conclusions: These findings demonstrate that Cav1.2 regulates excitatory-inhibitory balance, network organization, and aspects of neurodevelopment. Divergent effects of CACNA1C variants highlight how altered Cav1.2 signaling contributes to variable neurodevelopmental phenotypes, including ASD and epilepsy, and establish a framework for defining CACNA1C variant effects in human neurons.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above.
Zenodo 21992966
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
3 files
- MEA-SB_stats_GitHub.R, R, 218 lines
- LICENSE, License, 121 lines
- README.md, Text, 26 lines
ghwilkinson/mea-bursts
0111e69345e1044f275851998d7247e79bbad7bc, 18 August 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
3 files
- MEA-SB_stats_GitHub.R, R, 218 lines
- LICENSE, License, 121 lines
- README.md, Text, 29 lines
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 2 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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
Datasets cited
- geo:GSE344273, at NCBI GEO; found in the acknowledgements
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 2, 28 September 2026
- Authors: added Gemma Wilkinson (0009-0006-5659-5981); Nuppu Roivainen (0009-0000-4222-5919); Jack FG Underwood (0000-0003-1731-6039); removed Gemma Wilkinson; Nuppu Roivainen; Jack FG Underwood
- Funding: added Waterloo Foundation; Medical Research Council; Medical Research Foundation
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 5 keywords, 53 references.
Cite
This paper
Wilkinson, G., Wood, J., Roivainen, N., Haddon, J. E., Underwood, J. F., Hall, J., & Harwood, A. J. (2026). &
BibTeX
@article{wilkinson2026lt
author = {Wilkinson, Gemma and Wood, Jamie and Roivainen, Nuppu and Haddon, Josephine E and Underwood, Jack FG and Hall, Jeremy and Harwood, Adrian J},
title = {{\&
journal = {Biological psychiatry global open science},
year = {2026},
month = jul,
volume = {6},
number = {6},
pages = {100792},
publisher = {Elsevier},
issn = {2667-1743},
doi = {10.1016/
url = {https://
pmid = {42733558},
pmcid = {PMC13571225}
}
RIS
TY - JOUR
AU - Wilkinson, Gemma
AU - Wood, Jamie
AU - Roivainen, Nuppu
AU - Haddon, Josephine E
AU - Underwood, Jack FG
AU - Hall, Jeremy
AU - Harwood, Adrian J
TI - &
T2 - Biological psychiatry global open science
J2 - Biol Psychiatry Glob Open Sci
PY - 2026
DA - 2026/
VL - 6
IS - 6
SP - 100792
SN - 2667-1743
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "&
"container-title": "Biological psychiatry global open science",
"author": [
{
"family": "Wilkinson",
"given": "Gemma"
},
{
"family": "Wood",
"given": "Jamie"
},
{
"family": "Roivainen",
"given": "Nuppu"
},
{
"family": "Haddon",
"given": "Josephine E"
},
{
"family": "Underwood",
"given": "Jack FG"
},
{
"family": "Hall",
"given": "Jeremy"
},
{
"family": "Harwood",
"given": "Adrian J"
}
],
"container-title-short":
"volume": "6",
"issue": "6",
"page": "100792",
"DOI": "10.1016/
"PMID": "42733558",
"PMCID": "PMC13571225",
"ISSN": "2667-1743",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
22
]
]
}
}
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.1523/jneurosci.0912-25.2026 [code]
- Hierarchical Afferent Connectivity Drives Population-Wide Bursting Dynamics in a Computational Model of Human-Derived Excitatory Neuronal Networks.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: 3 references
- [2] doi:10.1038/s41588-026-02570-6 [code]
- Somatic mosaicism in ALS and FTD identifies focal mutations associated with widespread degeneration.Journal: Nature geneticsIn common: tidyverse, genetics / omics, 2 references
- [3] doi:10.1038/s41467-026-71112-9 [code]
- Modelling synaptic dysfunction in childhood dementia using human iPSC-derived cortical networks.Journal: Nature communicationsIn common: tidyverse, 2 references
- [4] doi:10.1038/s41467-026-72598-z [code]
- Functional impact of genetic background on variable expressivity in neurodevelopmental disorders.Journal: Nature communicationsIn common: tidyverse, 2 references
- [5] doi:10.1523/eneuro.0176-24.2026 [code]
- Cell Density Impacts Population Activity in Human iPSC-Derived Neural Networks.Journal: eNeuroIn common: 2 references
- [6] doi:10.1016/j.stemcr.2026.102872 [code]
- A semi-automated MEA spike sorting method for high-throughput assessment of cultured neurons.Journal: Stem cell reportsIn common: 2 references
- [7] doi:10.1016/j.isci.2026.116055 [code]
- Mapping the transcriptional diversity of calcium signaling in the mouse and human brain.Journal: iScienceIn common: tidyverse, genetics / omics, 1 reference
- [8] doi:10.1038/s42003-026-10380-z [code]
- Identification of moderate effect size genes in autism spectrum disorder through a novel gene pairing approach.Journal: Communications biologyIn common: tidyverse, genetics / omics, 1 reference
- [9] doi:10.1038/s41420-026-03185-w [code]
- An electrophysiological and proteomics roadmap for human induced glutamatergic neurons: fine-tuning of culture conditions for pathophysiological studies.Journal: Cell death discoveryIn common: tidyverse, genetics / omics, 1 reference
- [10] doi:10.1038/s41467-026-73770-1 [code]
- Non-coding structural variants disrupt FOXG1 transcriptional regulation in early neurodevelopment.Journal: Nature communicationsIn common: 2 references
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: 2 repositories of the authors' code, each at its verified commit and with its license, 2 scripts, and 0 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:f83c1632c62b055d…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
