Structural basis of IgLON5 autoantibody recognition in autoimmune encephalitis
The 2 matches
- [1] § Materials and Methods › Paired BCR repertoire ↔ scripts/BCR_analysis_D1_PUB.Rmd, lines 345–399 · score 0.94 · species richness, clonalRarefaction, n.boots, Shannon diversity, scRepertoire, evenness
- [2] § Results › Characterization of the B cell receptor repertoire in anti-IgLON5 disease ↔ scripts/BCR_analysis_D1_PUB.Rmd, lines 558–649 · score 0.71 · Games Howell, mutation frequency, zero, variable, BCR, D1
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 Markdown · 1,074 lines · 31 KB · MIT · 2 matches
- ---
- title: "BCR analysis - IgLON5 - donor D1"
- author: "Mathilde Foglierini"
- output: html_document
- date: "`r format(Sys.time(), '%a %d %B %Y %X')`"
- ---
- # Analysis script for BCR repertoire study in anti-IgLON5 disease
- Publication: "Structural basis for antibody-mediated IgLON5 receptor clustering and endocytosis in autoimmune encephalitis"
- Repository: https://github.com/MathildeFogPerez/manuscript-iglon5-D1
- Zenodo dataset: https://doi.org/10.5281/zenodo.18925481
- ### Description
- This script contains the code used to perform the analyses and generate the figures presented in the publication "Structural basis for antibody-mediated IgLON5 receptor clustering and endocytosis in autoimmune encephalitis".
- The analyses are based on processed B cell receptor (BCR) repertoire datasets generated from single-cell V(D)J sequencing experiments.
- ### Input data
- The input files required to run this script are available in the Zenodo repository: Zenodo: https://doi.org/10.5281/zenodo.18925481
- Specifically, this script uses the files contained in the folder:
- files_for_repertoire_analysis/
- This folder contains, for each donor:
- BCR_paired.csv – paired heavy and light chain BCR sequences
- airr_afterchangeo.csv – AIRR-formatted repertoire datasets generated after processing with the Immcantation/Change-O pipeline
- ```{r global_options, include=FALSE}
- knitr::opts_chunk$set(echo=FALSE, warning=FALSE, message=FALSE, results ='asis')
- setwd("/users/mfoglier/SCRIPTS/R_workspace/IgLON5/code")
- renv::status()
- ```
- ```{r load_libraries}
- # Core data manipulation
- library(tidyverse)
- # Single-cell analysis frameworks
- library(Seurat)
- library(scRepertoire)
- # Statistical analysis
- library(rstatix)
- library(gtsummary)
- library(corrplot)
- library(ggpubr)
- # Visualization - base plotting extensions
- library(gridExtra)
- library(patchwork)
- library(circlize)
- # Visualization - colors and palettes
- library(RColorBrewer)
- library(viridis)
- # Data output
- library(knitr)
- library(openxlsx)
- ```
- ```{r setting_variables }
- datapath='data/'
- donor="D1"
- date_for_output="2026.02.11"
- myOut=paste0(date_for_output,"_out")
- outpath=paste0(datapath,donor,'/',myOut,"/")
- dir.create(outpath, showWarnings = FALSE, recursive = TRUE)
- figpath=paste0(outpath,'figures/')
- dir.create(figpath, showWarnings = FALSE, recursive = TRUE)
- rdsfolder=paste0(outpath,'/RDS_files/')
- dir.create(rdsfolder, showWarnings = FALSE, recursive = TRUE)
- meta <- read.csv(paste0(datapath,"/metadata_D1_H1_H2.csv"), header=T)
- allDonors=unique(meta$donor)
- allAgreg=unique(meta$agreg)
- processedDonors=c("D1","H1","H2")
- iglonDonors=c("D1")
- sample_order <- c("NS1","NS2","SI1","SI2", "H1","H2")
- donor_cols <- c(
- D1 = "#d3d3d3",
- H1="#8b8b8c",
- H2="#8b8b8c"
- )
- all_isotypes_sorted <- c(
- "IGHA1", "IGHA2", "IGHD",
- "IGHG1", "IGHG2", "IGHG3", "IGHG4",
- "IGHM","Unknown"
- )
- isotype_colors <- c(
- "IGHA1" = alpha("#4F6980" ,alpha = 0.6),
- "IGHA2" = alpha("#849DB1",alpha = 0.6),
- "IGHD" = alpha("#76B782",alpha = 0.6),
- "IGHE" = alpha("black",alpha = 0.6),
- "IGHG1" = alpha("#FBB04E",alpha = 0.8),
- "IGHG2" = alpha( "#F0B381",alpha = 0.8),
- "IGHG3" = alpha("#CE988D",alpha = 0.8),
- "IGHG4" = alpha("#F1560E",alpha = 0.8),
- "IGHM" = alpha("#D7CE9F",alpha = 0.6),
- "Unknown" = alpha("grey80",alpha = 0.4)
- )
- # Mapping of GEM group → sample name per experiment
- sample_map <- list(
- Exp1 = c(
- "1" = "SI1",
- "2" = "NS1"
- ),
- Exp2 = c(
- "1" = "SI2",
- "2" = "NS2"
- )
- )
- group_map <- c(
- Exp1 = "Iglon",
- Exp2 = "Iglon"
- )
- #Sample SI2 is the IgLON5-sorted B cells
- iglonspe_map <- list(
- Exp1 = c(
- "SI1" ="unknown",
- "NS1" ="unknown"
- ),
- Exp2 = c(
- "SI2"="IgLON5",
- "NS2"="unknown"
- )
- )
- ```
- ```{r load_all_paired_df}
- all.paired.df =readRDS(paste0(rdsfolder,"all_paired_df.Rds"))
- d1=all.paired.df[all.paired.df$donor=="D1",]
- combined.BCR= readRDS(paste0(rdsfolder,"combined.BCR.Rds"))
- ```
- # Get and process data
- ```{r functions}
- #This function is use to remove the allele or the multi gene assignment from changeO in order to have nice graph from scRepertoire
- simplify_ig <- function(x) {
- blocks <- strsplit(x, "_", fixed = TRUE)[[1]]
- result <- vapply(blocks, function(chain) {
- parts <- strsplit(chain, "\\.", fixed = FALSE)[[1]]
- parts <- vapply(parts, function(p) {
- if (p == "") return("") # keep empty blocks
- p <- sub(",.*$", "", p) # keep first candidate
- p <- sub("\\*.*$", "", p) # remove allele
- p
- }, character(1))
- paste(parts, collapse = ".")
- }, character(1))
- paste(result, collapse = "_") # Rejoin with underscore
- }
- ```
- ```{r pairedBCR, echo=F ,fig.height=3,fig.width=6}
- #For each donor load immcantation object
- imm.contigs=list()
- imm.contigs.v2=list()
- i=1
- for (don in processedDonors){
- immcantationOutPath=paste0(datapath,'files_for_repertoire_analysis/',don,'/')
- imm.contigs[[i]]<- read.csv(paste0(immcantationOutPath,don,"_airr_afterchangeo.csv"))
- dtomod= imm.contigs[[i]]
- dtomod$barcode=paste0(don,"_", sub("_contig_[0-9]+$", "", dtomod$sequence_id))
- imm.contigs.v2[[i]]<-dtomod
- i=i+1
- }
- BCR.contigs <- loadContigs(imm.contigs, format = "Immcantation")
- combined.BCR <- combineBCR(BCR.contigs,samples=processedDonors, removeNA = FALSE,removeMulti = TRUE,
- sequence = "aa", call.related.clones=FALSE) # we use Immcantation DefineClones.py instead
- all.paired.list <- list()
- i=1
- for (nm in names(combined.BCR)) {
- df <- combined.BCR[[nm]]
- #IgLON5 donors: rename samples according to gem well
- if(nm %in% iglonDonors){
- # extract experiment (Exp1 / Exp2 )
- exp <- sub(".*_(Exp[0-9]+).*", "\\1", df$barcode)
- # extract GEM well (number after last hyphen)
- gem_group <- sub(".*-", "", df$barcode)
- # remap sample
- df$sample <- mapply(
- function(e, g) sample_map[[e]][g],
- exp, gem_group
- )
- df$group <- mapply(
- function(e, g) group_map[[e]],
- exp
- )
- #infer agSpe from Exp+ sample
- sample <- df$sample
- df$agSpe <- mapply(
- function(exp, samp) iglonspe_map[[exp]][samp],
- exp,sample
- )
- }else{
- df$group="Healthy"
- df$agSpe=NA
- }
- #Keep only the clonotypes as in _paired_bcrs.csv file, and add sequence_id and h_clone_id
- immcantationOutPath=paste0(datapath,'files_for_repertoire_analysis/',nm,'/')
- paired.df=read.csv(file=paste0(immcantationOutPath,nm,'_paired_bcrs.csv'))
- paired.df$donor=nm
- paired.df$h_cell_id=paste0(nm,"_",paired.df$h_cell_id)
- cat("For donor ",nm," number of df clonotypes: ",nrow(df),"\n")
- cat(" ",nm," number of paired.df clonotypes: ",nrow(paired.df),"\n")
- featToAdd=paired.df[,c("sequence_id","h_cell_id","h_clone_id","h_c_call")]
- df=merge(df,featToAdd, by.x="barcode",by.y="h_cell_id")
- cat(" after merging number of clonotypes: ",nrow(df),"\n")
- #simplify gene names
- df$IGH <- vapply(df$IGH, simplify_ig, character(1), USE.NAMES = FALSE)
- df$CTgene.al <- df$CTgene
- #store the first version of CTgene (with allele) in case we need it for one scRepertoire function
- df$CTgene <- vapply(df$CTgene, simplify_ig, character(1), USE.NAMES = FALSE)
- df$CTgene.wo.al <- df$CTgene
- df$IGLC <- vapply(df$IGLC, simplify_ig, character(1), USE.NAMES = FALSE)
- combined.BCR[[nm]] <- df
- all.paired.list[[i]] <- paired.df
- i <- i + 1
- }
- # find shared columns
- common_cols <- Reduce(intersect, lapply(all.paired.list, colnames))
- # keep only shared columns
- all.paired.list <- lapply(all.paired.list, function(df) {
- df[common_cols]
- })
- # bind
- all.paired.df <- do.call(rbind, all.paired.list)
- #Add the back the donor as variable
- combined.BCR <- addVariable(combined.BCR,
- variable.name = "donor",
- variables =processedDonors)
- combined.BCR <- lapply(combined.BCR, function(df) {
- df$sample <- factor(df$sample, levels = sample_order)
- df
- })
- #count and plot the number of clonotypes by donor and samples
- sample_counts <- table(
- unlist(lapply(combined.BCR, function(df) df$sample))
- )
- sample_counts
- sample_cols <- c(
- # Donor D1 (blue / lavender)
- NS1 = "#80B1D3FF",
- NS2 = "#6B9AC4FF",
- SI1 = "#C6CDF7FF",
- SI2 = "#E3E7FFFF",
- H1="grey70",
- H2="grey80"
- )
- clonalQuant(combined.BCR,
- cloneCall="aa",
- chain="both",
- scale=FALSE, exportTable=FALSE,
- group.by="sample") +
- scale_fill_manual(values = sample_cols, breaks = sample_order)
- #saveRDS(combined.BCR,paste0(rdsfolder,"combined.BCR.Rds"))
- #saveRDS(all.paired.df,paste0(rdsfolder,"all_paired_df.Rds"))
- ```
- ```{r add_col_to_paired_data}
- idx_special <- all.paired.df$donor %in% c("H1", "H2")
- idx_normal <- !idx_special
- # init outputs
- all.paired.df$sample <- NA_character_
- all.paired.df$agSpe <- NA_character_
- # SPECIAL: sample = donor,agSpe = NA
- all.paired.df$sample[idx_special] <- all.paired.df$donor[idx_special]
- all.paired.df$agSpe[idx_special] <- NA
- # NORMAL: do Exp/GEM parsing only for normal rows
- exp <- rep(NA_character_, nrow(all.paired.df))
- gem_group <- rep(NA_character_, nrow(all.paired.df))
- exp[idx_normal] <- sub(".*_(Exp[0-9]+).*", "\\1", all.paired.df$h_cell_id[idx_normal])
- gem_group[idx_normal] <- sub(".*-", "", all.paired.df$h_cell_id[idx_normal])
- # map sample for normal rows
- all.paired.df$sample[idx_normal] <- mapply(
- function(e, g) sample_map[[e]][g],
- exp[idx_normal], gem_group[idx_normal]
- )
- # map agSpe for normal rows
- all.paired.df$agSpe[idx_normal] <- mapply(
- function(e, samp) iglonspe_map[[e]][samp],
- exp[idx_normal], all.paired.df$sample[idx_normal]
- )
- #Save all_paired_df to load later
- saveRDS(all.paired.df,paste0(rdsfolder,"all_paired_df.Rds"))
- ```
- ```{r 3_donors_count}
- clonalQuant(combined.BCR,
- cloneCall="aa",
- chain="both",
- scale=FALSE, exportTable=FALSE,
- group.by="donor") +
- scale_fill_manual(values = donor_cols)
- ```
- ## Extended data Fig 1: rarefaction plots
- ```{r ext_dat_fig1}
- # "Rarefaction analysis was performed using the clonalRarefaction function from scRepertoire v2, implementing iNEXT-based Hill number estimation with 50 bootstrap replicates."
- donor_cols_sup <- c("D1" = "#F1560E",
- "H1" = "grey50",
- "H2" = "grey30")
- #Panel A — Sample quality & coverage
- # Plot type 2 : shows how well each donor was sampled
- p1 <-clonalRarefaction(combined.BCR,
- plot.type = 2,
- hill.numbers = 0,
- n.boots = 50,
- group.by = "donor" ) + scale_color_manual(values = donor_cols_sup) +
- scale_fill_manual(values = donor_cols_sup)+
- ggtitle("A Sample completeness") +NoLegend()
- #Panel B — Species richness (Hill 0)
- # Total unique clones — directly relevant before showing VH usage.
- p2 <-clonalRarefaction(combined.BCR,
- plot.type = 3,
- hill.numbers = 0,
- n.boots = 50,
- group.by = "donor")+ scale_color_manual(values = donor_cols_sup) +
- scale_fill_manual(values = donor_cols_sup)+
- ggtitle("B Species richness (Hill 0)") +NoLegend()
- #Panel C — Shannon diversity (Hill 1)
- #Evenness of repertoire — relevant before showing isotype proportions.
- p3 <-clonalRarefaction(combined.BCR,
- plot.type = 3,
- hill.numbers = 1,
- n.boots = 50,
- group.by = "donor")+ scale_color_manual(values = donor_cols_sup) +
- scale_fill_manual(values = donor_cols_sup)+
- ggtitle("C Shannon diversity (Hill 1)") +NoLegend()
- combined <- plot_grid(p1, p2, p3,
- ncol = 2,
- labels = c("a", "b", "c"),
- label_size = 12)
- pdf(paste0(figpath,"/supplementary_rarefaction.pdf"),
- width = 8,
- height = 6)
- print(combined)
- dev.off()
- ```
- ## Figure 1A. VH gene usage
- ```{r vh}
- p=vizGenes(combined.BCR,
- x.axis = "IGHV",
- y.axis = NULL,
- plot = "barplot",
- summary.fun = "proportion") + theme(axis.text.x = element_text(size=7),
- axis.text.y = element_text(size=7),
- strip.text = element_text(size=8))
- print(p)
- pdf(file=paste0(figpath,"VH_distribution_byDonor.pdf"), width=5.2, height=3.5)
- print(p)
- invisible(dev.off())
- ```
- ## Extended data Fig 2 : VL/VK usage
- ```{r ext_dat_fig1}
- p=vizGenes(combined.BCR,
- x.axis = "IGLV",
- y.axis = NULL,
- plot = "barplot",
- summary.fun = "proportion") + theme(axis.text.x = element_text(size=7),
- axis.text.y = element_text(size=7),
- strip.text = element_text(size=8))
- print(p)
- pdf(file=paste0(figpath,"VL_distribution_byDonor.pdf"), width=5.2, height=3.5)
- print(p)
- invisible(dev.off())
- ```
- ## Figure 1B. Isotype distribution
- ```{r isotpye}
- all_isotypes <- c(
- "IGHA1", "IGHA2", "IGHD", "IGHE",
- "IGHG1", "IGHG2", "IGHG3", "IGHG4",
- "IGHM"
- )
- plotlist=list()
- i=1
- for (don in c("D1","H1","H2")){
- df=all.paired.df[all.paired.df$donor==don,]
- tot=nrow(df)
- df=df[!nchar(df$h_c_call)==0,]
- # Calculate Frequencies
- # Force factor levels
- df$h_c_call <- factor(df$h_c_call, levels = all_isotypes)
- freq_df <- as.data.frame(prop.table(table(df$h_c_call)))
- colnames(freq_df) <- c("Isotype", "Frequency")
- # Create Bar Plot for Frequency
- p=ggplot(freq_df, aes(x = Isotype, y = Frequency, fill = Isotype)) +
- geom_bar(stat = "identity", width = 0.7) +
- geom_text(
- data = subset(freq_df, Isotype == "IGHG4"),
- aes(label = scales::percent(Frequency, accuracy = 0.1)),
- vjust = -0.3,
- size = 2.5
- )+
- scale_y_continuous(labels = scales::percent, limits = c(0, 0.65)) + # Convert to percentage
- labs(title = paste0(don," (n=",tot,")"),
- x = "",
- y = "Frequency (%)") +
- scale_fill_manual(values = isotype_colors) +
- theme_classic() + NoLegend()+
- theme(axis.text.x = element_text(angle = 45, hjust = 1,size=6.5),
- axis.text.y = element_text(size=6),
- title = element_text(size=7))
- if (i<3){
- p <- p + theme(axis.text.x = element_blank())
- }
- plotlist[[i]]=p
- i=i+1
- }
- wrap_plots(plotlist, ncol = 1)
- pdf(file=paste0(figpath,"Isotype_distribution.pdf"), width=3, height=3.5)
- wrap_plots(plotlist, ncol = 1)
- invisible(dev.off())
- #number of IGHG4
- all.paired.df %>%
- count(donor, h_c_call == "IGHG4") %>%
- group_by(donor) %>%
- mutate(
- total = sum(n),
- prop = (n / total) * 100
- ) %>%
- filter(`h_c_call == "IGHG4"`)
- ```
- ## Figure 1C. CDRH3 length distribution
- ```{r cdrh3_length}
- # Compute medians
- median_df <- all.paired.df %>%
- group_by(donor) %>%
- summarise(median_length = median(HCDR3.length, na.rm = TRUE))
- p <-ggplot(all.paired.df, aes(x = HCDR3.length, fill = donor)) +
- geom_histogram(binwidth = 1, boundary = 0,
- color = "black", show.legend = FALSE) +
- scale_fill_manual(values = donor_cols) +
- facet_wrap(~ donor, nrow = 1) +
- # Median vertical dotted line
- geom_vline(data = median_df,
- aes(xintercept = median_length, color = donor),
- linetype = "dashed",
- linewidth = 0.5) +
- # Median value text
- geom_text(data = median_df,
- aes(x = median_length,
- y = Inf,
- label = paste0(median_length)),
- vjust = 1.5,hjust = -0.2,
- size = 2.8) +
- theme_classic(base_size = 8) +
- theme(
- axis.line = element_line(linewidth = 0.6),
- axis.ticks = element_line(linewidth = 0.6),
- axis.title.x = element_text(size = 8), axis.title.y = element_text(size = 7),
- axis.text.y = element_text(size = 7), axis.text.x = element_text(size = 8),
- strip.text = element_text(size=8)
- )+
- labs(
- x = "CDRH3 length (aa)",
- y = "Count"
- )+
- scale_color_manual(values = c(D1 = "#F1560E",
- H1 = "grey70",
- H2 = "grey70")) +NoLegend()
- print(p)
- somePDFPath = file.path(paste0(figpath,'CDRH3_length.pdf'))
- pdf(file=somePDFPath, width=5, height=1.9)
- print(p)
- dev.off()
- ```
- ## Figure 1D. Mutation frequency
- ```{r mutation_freq}
- #### Check how many have 0 freq.mut
- all.paired.df %>%
- group_by(donor) %>%
- summarise(
- n_total = n(),
- n_zero = sum(mut.freq == 0),
- pct_zero = round(100 * n_zero / n_total, 1)
- )
- # donor n_total n_zero pct_zero
- # <chr> <int> <int> <dbl>
- # 1 D1 9577 2399 25
- # 2 H1 7263 244 3.4
- # 3 H2 7539 422 5.6
- #We will remove them
- all.paired.df2 <- all.paired.df[all.paired.df$mut.freq>0,]
- all.paired.df2 %>%
- group_by(donor) %>%
- get_summary_stats(mut.freq, type = "mean_sd")
- # donor variable n mean sd
- # <chr> <fct> <dbl> <dbl> <dbl>
- # 1 D1 mut.freq 7178 0.121 0.061
- # 2 H1 mut.freq 7019 0.096 0.05
- # 3 H2 mut.freq 7117 0.098 0.053
- #homogeneity of variance
- levene_test(mut.freq ~ donor, data = all.paired.df2)
- # Variances are clearly not equal across donors. -> no ANOVA
- #we do welch_anova instead
- wel.anov = welch_anova_test(mut.freq ~ donor, data = all.paired.df2) %>%
- add_significance()
- # There is a statistically significant difference in mutation frequency across donors.
- #Next identify which donor differ
- pwc <- all.paired.df2 %>%
- games_howell_test(mut.freq ~ donor,)
- # Report effect size: ges (generalized eta squared), using ANOVA
- #If η² < 0.01 → difference is statistically significant but practically very small (not the case here)
- anova_test(data = all.paired.df2, dv = mut.freq, between = donor)
- #ANOVA Table (type II tests)
- # Effect DFn DFd F p p<.05 ges
- # 1 donor 2 21311 448.736 1.28e-191 * 0.04
- # Visualisation : Boxplots with p-values
- p2 <- ggplot(all.paired.df2, aes(x = donor, y = mut.freq))+
- geom_jitter(aes(y=mut.freq,group=donor),width = 0.2, size = 0.5, alpha = 0.2)+
- geom_boxplot(aes(fill=donor, color = donor),alpha=0.6,outlier.shape = NA)+
- stat_pvalue_manual(pwc, tip.length = 0, hide.ns = TRUE, y.position = c(0.45,0.5),size=2.5) +
- labs(
- color="donor",
- y="Mutation frequency",
- x=""
- )+
- scale_color_manual(values = c("#F1560E","grey50","grey50"))+
- scale_fill_manual(values =donor_cols) +
- scale_y_continuous(breaks =c(0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5) ,limits = c(0,0.5))+
- theme_classic() +
- theme(
- axis.line = element_line(linewidth = 0.6),
- axis.ticks = element_line(linewidth = 0.6),
- axis.title = element_text(size = 6),
- axis.text.y = element_text(size = 6),axis.text.x = element_text(size = 8)
- )+ NoLegend()
- print(p2)
- pdf(file = paste0(figpath, "/Mutation_frequency.pdf"), width = 2.3, height =1.7)
- p2
- invisible(dev.off())
- ggsave(
- filename = paste0(figpath, "/Mutation_frequency.tiff"),
- plot = p2,
- device = "tiff",
- width = 2.9,
- height = 1.9,
- units = "in",
- dpi = 600,
- compression = "lzw"
- )
- ```
- ## Figure 1E .Clonal network
- ```{r clonalNetwork, eval=T}
- #actual is 2.6.2
- ##just for this figure we downgrade to a previous version of scRepertoire 2.2.1
- ##renv::install("BorchLab/scRepertoire@v2.2.1")
- ##then restart R
- #To visualize the clones
- #To get the cluster as the clone_id defined by changeO, we replace the VH gene by the h_clone_id
- temp.bcrData= combined.BCR$D1
- # Replace anything between 'IGHV' and the first '*' with h_clone_id/CTgene
- temp.bcrData$CTgene <- mapply(function(ctgene, hclone) {
- sub("(?<=IGHV)[^\\*^.]+", paste0(as.character(hclone),"-1*01"), ctgene, perl = TRUE)
- }, temp.bcrData$CTgene, gsub("_","",temp.bcrData$h_clone_id))
- ## We will get the cluster with at least 2 clonotypes
- igraph.object <- clonalCluster(temp.bcrData,
- chain = "IGH",
- sequence = "aa",
- threshold = 0.81,
- exportGraph = TRUE)
- igraph::V(igraph.object)$degrees <- igraph::degree(igraph.object)
- #saveRDS(igraph.object,paste0(rdsfolder,"igraph.object.Rds"))
- # Build a lookup: vertex name
- meta=temp.bcrData
- v_names <- igraph::V(igraph.object)$name
- meta <- meta[meta$cdr3_aa1 %in% v_names,] #barcode here in new version but does not work (cdr3_aa1)
- # # then match order to v_names
- iso <- meta$h_c_call[match(v_names, meta$cdr3_aa1)]
- iso[iso == ""] <- "Unknown"
- iso_lab <- iso
- iso_fac <- factor(iso_lab, levels = all_isotypes_sorted)
- iso_cols <- isotype_colors
- col_samples <- unname(isotype_colors[as.character(iso_fac)])
- igraph::V(igraph.object)$color <- col_samples
- color.legend <- factor(unique(iso_fac), levels=all_isotypes_sorted)
- edge_alpha_color <- adjustcolor("gray", alpha.f = 0.3)
- somePDFPath = file.path(paste0(figpath,'Network_clusters_plot_D1.pdf'))
- pdf(file=somePDFPath, width=10, height=10)
- set.seed(1)
- layout_fixed <- igraph::layout_nicely(igraph.object)
- plot(igraph.object,
- layout = layout_fixed,
- vertex.label = NA,
- vertex.size = 2*sqrt(igraph::V(igraph.object)$degrees),
- vertex.color = col_samples,
- vertex.frame.color = "white",
- edge.color = "black",
- edge.arrow.size = 0,
- edge.curved = 0.3,
- margin = -0.1)
- legend("topleft", legend =all_isotypes_sorted, pch = 16, col = isotype_colors[all_isotypes_sorted], bty = "n")
- invisible(dev.off())
- ```
- ## Figure 1F. Rank–abundance / rank–size plot
- ```{r}
- threshold <- 5
- d1=all.paired.df[all.paired.df$donor=="D1",]
- # 1) Compute clone sizes (members per h_clone_id)
- clone_sizes <- d1 %>%
- filter(!is.na(h_clone_id)) %>%
- count(h_clone_id, name = "clone_size") %>%
- arrange(desc(clone_size)) %>%
- mutate(rank = row_number(),
- above = clone_size > threshold)
- # stats
- total_families <- nrow(clone_sizes)
- families_above <- sum(clone_sizes$above)
- pct_cells_in_above <- 100 * sum(clone_sizes$clone_size[clone_sizes$above]) / sum(clone_sizes$clone_size)
- # 2) Plot
- p <- ggplot(clone_sizes, aes(x = rank, y = clone_size)) +
- geom_point(
- shape = 21, fill = "white", color = "grey20", stroke = 0.6, size = 2
- ) +
- geom_hline(yintercept = threshold, linetype = "dashed", color = "red",linewidth = 0.5) +
- scale_y_log10(
- expand = expansion(add = c(0.1, 0.2)), #to add 10 % below and 20% above the highest value
- breaks = c(0,1, 2, 5, 10, 20, 30, 50, 80, 100),
- labels = scales::label_number()
- )+
- scale_x_log10() +
- labs(
- x = "Rank by family size",
- y = "Size of clonal families"
- ) +
- annotate(
- "text",
- x = 1.5, y = max(clone_sizes$clone_size) * 0.9,
- hjust = 0,
- label = paste0(
- "Total families, n = ", format(total_families, big.mark = ","), "\n",
- "Families (size > ", threshold, " cells),\n",
- "n = ", format(families_above, big.mark = ","), " (",
- sprintf("%.1f", pct_cells_in_above), "% of cells)"
- ),
- size = 2.8
- ) +
- theme_classic(base_size = 8) +
- theme(
- axis.line = element_line(linewidth = 0.6),
- axis.ticks = element_line(linewidth = 0.6),
- axis.title = element_text(size = 9),
- axis.text = element_text(size = 8)
- )
- print(p)
- somePDFPath = file.path(paste0(figpath,'Rank_abundance_size_plot_D1.pdf'))
- pdf(file=somePDFPath, width=3, height=2)
- print(p)
- dev.off()
- ```
- # Figure 1G. Circos plot V-J usage IgG4 (chord diagram)
- ```{r circos_g4}
- #simplify j
- d1$jh.gene <-sub("\\*.*$", "", d1$h_j_call)
- #remove IGH
- d1$jh.gene <-sub("^IGH", "", d1$jh.gene)
- d1$vh.gene <-sub("^IGH", "", d1$vh.gene)
- d1.g4 <- d1 %>%
- filter(h_c_call =="IGHG4")
- nrow(d1.g4)
- # make a matrix gor IgH4
- mat <- table(d1.g4$vh.gene, d1.g4$jh.gene)
- # ordering matrices
- row_order <- names(sort(rowSums(mat), decreasing = TRUE)) # Ordering j_gene
- col_order <- names(sort(colSums(mat), decreasing = TRUE)) # Ordering V_gene
- # Reorder matrix
- mat <- mat[row_order, col_order]
- # make a matrix for alal
- mat.all <- table(d1$vh.gene, d1$jh.gene)
- # ordering matrices
- row_order <- names(sort(rowSums(mat.all), decreasing = TRUE)) # Ordering j_gene
- col_order <- names(sort(colSums(mat.all), decreasing = TRUE)) # Ordering V_gene
- # Reorder matrix
- mat.all <- mat.all[row_order, col_order]
- # Generate Chord Diagram
- par(mfrow = c(1, 1),cex = 1) # 1 circos
- set.seed(8389)
- library(randomcoloR)
- # Get unique names for both rows and columns
- all_labels <- unique(c(rownames(mat), colnames(mat), rownames(mat.all), colnames(mat.all)))
- colors <- setNames(distinctColorPalette(length(all_labels)), all_labels)
- circos.clear() # Clear any previous plots
- circos.par(start.degree = -90, clock.wise = TRUE)
- chordDiagram(mat, grid.col = colors,
- annotationTrack = "grid", # Adds grid annotations
- preAllocateTracks = list(track.height = 0.5)) # Space for labels
- # Rotate labels
- circos.track(track.index = 1, panel.fun = function(x, y) {
- circos.text(CELL_META$xcenter, CELL_META$ylim[1],
- CELL_META$sector.index, facing = "clockwise", niceFacing = T,
- adj = c(0, 0.5), cex = 0.65) # Adjust label size if needed
- }, bg.border = NA)
- text(0, 0, paste0("IGHG4\n(n=",nrow(d1.g4),")"), cex = 1.5, font = 1, col = "black")
- somePDFPath = file.path(paste0(figpath,'circos_IGHG4_D1.pdf'))
- pdf(file=somePDFPath, width=4, height=4)
- circosplot=chordDiagram(circles, self.link = 1, grid.col = grid.cols )
- invisible(dev.off())
- ```
- # Extended data Fig 3 : IgLON5 specific BCRs vs unknown specificity plots
- ```{r isotype_Iglon5_spe}
- ################## a. VH usage #########################
- p=vizGenes(combined.BCR$D1,
- x.axis = "IGHV",group.by = "agSpe", order.by = c("IgLON5","unknown"),
- y.axis = NULL, # No specific y-axis variable, will group all samples
- plot = "barplot",
- summary.fun = "proportion") + theme(axis.text.x = element_text(size=7),
- axis.text.y = element_text(size=7),
- strip.text = element_text(size=8))
- pdf(file=paste0(figpath,"VH_distribution_D1.pdf"), width=5.2, height=2.5)
- print(p)
- invisible(dev.off())
- ################## b. VL usage #########################
- p=vizGenes(combined.BCR$D1,
- x.axis = "IGLV",group.by = "agSpe", order.by = c("IgLON5","unknown"),
- y.axis = NULL,
- plot = "barplot",
- summary.fun = "proportion") + theme(axis.text.x = element_text(size=7),
- axis.text.y = element_text(size=7),
- strip.text = element_text(size=8))
- print(p)
- pdf(file=paste0(figpath,"VL_distribution_D1.pdf"), width=5.2, height=2.5)
- print(p)
- invisible(dev.off())
- ###### c .Isotype ###########################
- all_isotypes <- c(
- "IGHA1", "IGHA2", "IGHD", "IGHE",
- "IGHG1", "IGHG2", "IGHG3", "IGHG4",
- "IGHM"
- )
- plotlist=list()
- i=1
- paired.df.d1 <- all.paired.df[all.paired.df$donor=="D1",]
- for (agsp in unique(paired.df.d1$agSpe)){
- df=paired.df.d1[paired.df.d1$agSpe==agsp,]
- tot=nrow(df)
- df=df[!nchar(df$h_c_call)==0,]
- # Calculate Frequencies
- # Force factor levels
- df$h_c_call <- factor(df$h_c_call, levels = all_isotypes)
- freq_df <- as.data.frame(prop.table(table(df$h_c_call)))
- colnames(freq_df) <- c("Isotype", "Frequency")
- # Create Bar Plot for Frequency
- p=ggplot(freq_df, aes(x = Isotype, y = Frequency, fill = Isotype)) +
- geom_bar(stat = "identity", width = 0.7) +
- geom_text(
- data = subset(freq_df, Isotype == "IGHG4"),
- aes(label = scales::percent(Frequency, accuracy = 0.1)),
- vjust = -0.3,
- size = 2.5
- )+
- scale_y_continuous(labels = scales::percent, limits = c(0, 0.65)) + # Convert to percentage
- labs(title = paste0("D1 ",agsp," (n=",tot,")"),
- x = "",
- y = "Frequency (%)") +
- scale_fill_manual(values = isotype_colors) +
- theme_classic() + NoLegend()+
- theme(axis.text.x = element_text(angle = 45, hjust = 1,size=6.5),
- axis.text.y = element_text(size=6),
- title = element_text(size=7))
- if (i<2){
- p <- p + theme(axis.text.x = element_blank())
- }
- plotlist[[i]]=p
- i=i+1
- }
- wrap_plots(plotlist, ncol = 1)
- pdf(file=paste0(figpath,"Isotype_distribution_D1.pdf"), width=3, height=2.5)
- wrap_plots(plotlist, ncol = 1)
- invisible(dev.off())
- ###### d CDRH3 ###########################
- paired.df.d1 <- paired.df.d1 %>%
- mutate(agSpe = factor(agSpe, levels = c("unknown", "IgLON5")))
- # Compute medians
- median_df <- paired.df.d1 %>%
- group_by(agSpe) %>%
- summarise(median_length = median(HCDR3.length, na.rm = TRUE))
- p <- ggplot(paired.df.d1, aes(x = HCDR3.length, fill = agSpe)) +
- geom_histogram(aes(y = after_stat(count / sum(count))),
- binwidth = 1, boundary = 0,
- color = "black", alpha = 0.7, position = "identity") +
- scale_fill_manual(values = c(IgLON5 = "#F1560E", unknown = "grey70")) +
- # Median vertical dotted line
- geom_vline(data = median_df,
- aes(xintercept = median_length, color = agSpe),
- linetype = "dashed",
- linewidth = 0.5) +
- # Median value text
- geom_text(data = median_df,
- aes(x = median_length,
- y = Inf,
- color = agSpe,
- label = paste0(median_length)),
- vjust = 1.5, hjust = -0.2,
- size = 2.8) +
- scale_color_manual(values = c(IgLON5 = "#F1560E", unknown = "grey70")) +
- theme_classic(base_size = 8) +
- theme(
- axis.line = element_line(linewidth = 0.6),
- axis.ticks = element_line(linewidth = 0.6),
- axis.title.x = element_text(size = 8), axis.title.y = element_text(size = 7),
- axis.text.y = element_text(size = 7), axis.text.x = element_text(size = 8),
- legend.title = element_blank(),
- legend.key.size = unit(0.2, "cm"),
- legend.text = element_text(size = 6),
- legend.position = c(0.85, 0.65)
- ) +
- labs(
- x = "CDRH3 length (aa)",
- y = "Frequency"
- )
- somePDFPath = file.path(paste0(figpath,'CDRH3_length_D1.pdf'))
- pdf(file=somePDFPath, width=2.5, height=1.9)
- print(p)
- dev.off()
- ###### e Mutation Freq ###########################
- #### Check how many have 0 freq.mut
- paired.df.d1 %>%
- group_by(agSpe) %>%
- summarise(
- n_total = n(),
- n_zero = sum(mut.freq == 0),
- pct_zero = round(100 * n_zero / n_total, 1)
- )
- # agSpe n_total n_zero pct_zero
- # <fct> <int> <int> <dbl>
- # 1 unknown 8609 2285 26.5
- # 2 IgLON5 968 114 11.8
- #We will remove them
- all.paired.df2 <- paired.df.d1[paired.df.d1$mut.freq>0,]
- all.paired.df2 %>%
- group_by(agSpe) %>%
- get_summary_stats(mut.freq, type = "mean_sd")
- # agSpe variable n mean sd
- # <fct> <fct> <dbl> <dbl> <dbl>
- # 1 unknown mut.freq 6324 0.121 0.061
- # 2 IgLON5 mut.freq 854 0.121 0.058
- #not sure there is normality here
- ggqqplot(all.paired.df2, "mut.freq", ggtheme = theme_bw())
- #homogeneity of variance
- levene_test(mut.freq ~ donor, data = all.paired.df2)
- # no sign diff between variance p>0.05 -> homogeneity -> we can do wilcoxon test
- pwc <- all.paired.df2 %>%
- wilcox_test(mut.freq ~ agSpe)
- # Visualisation : Boxplots avec p-values
- p2 <- ggplot(all.paired.df2, aes(x = agSpe, y = mut.freq))+
- geom_jitter(aes(y=mut.freq,group=agSpe),width = 0.2, size = 0.5, alpha = 0.2)+
- geom_boxplot(aes(fill=agSpe, color = agSpe),alpha=0.6,outlier.shape = NA)+
- stat_pvalue_manual(pwc, tip.length = 0, hide.ns = FALSE, y.position = 0.45,size=2.5) +
- labs(
- color="agSpe",
- y="Mutation frequency",
- x=""
- )+
- scale_color_manual(values = c("grey50","#F1560E"))+
- scale_fill_manual(values =donor_cols) +
- scale_y_continuous(breaks =c(0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5) ,limits = c(0,0.5))+
- theme_classic() +
- theme(
- axis.line = element_line(linewidth = 0.6),
- axis.ticks = element_line(linewidth = 0.6),
- axis.title = element_text(size = 6),
- axis.text.y = element_text(size = 6),axis.text.x = element_text(size = 8)
- )+ NoLegend()
- print(p2)
- pdf(file = paste0(figpath, "/Mutation_frequency_D1.pdf"), width = 1.8, height =1.7)
- p2
- invisible(dev.off())
- ggsave(
- filename = paste0(figpath, "/Mutation_frequency_D1.tiff"),
- plot = p2,
- device = "tiff",
- width = 1.8,
- height = 1.9,
- units = "in",
- dpi = 600,
- compression = "lzw"
- )
- ```
- ```{r, eval=F}
- sessionInfo()
- ```
BCR_analysis_D1_PUB.Rmd at commit 23551bd, under MIT · at the source
Overview
- Lausanne University Hospital and University of Lausanne
- CHUV
- Hospital Clínic de Barcelona
- Laboratory of Neuroimmunology, Neuroscience Research Centre, Department of Clinical Neurosciences, University Hospital and University of Lausanne
- Hospital Clinic of Barcelona
- ICREA-Institut d’Investigacions Biomèdiques August Pi i Sunyer
Abstract
Anti-IgLON5 disease is a rare neurological disorder at the interface of autoimmunity and neurodegeneration. It is characterized by autoantibodies against the neuronal adhesion molecule IgLON5 and is associated with profound brain dysfunction and tau pathology. Despite its severe clinical manifestations, the molecular basis of antibody recognition and its contribution to disease pathogenesis remain unclear. Here, we profile the B cell receptor repertoire of a patient with anti-IgLON5 disease and identify a highly polyclonal response lacking dominant clonal expansion. We isolate a human monoclonal IgG4 antibody that binds IgLON5 with high affinity and determine its structure in complex with IgLON5 by cryo–electron microscopy. Biochemical and structural analyses show that antibody binding preserves IgLON5 adhesion interfaces while promoting higher-order clustering of IgLON5 dimers. These findings provide mechanistic insight into autoantibody recognition of neuronal surface proteins and establish a framework for understanding antibody-mediated neurodegeneration in anti-IgLON5 disease.
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 2 matches between paragraphs and lines of code.
MathildeFogPerez/manuscript-iglon5-D1
23551bd9ba3c38857783c639862206a92eb6ff10, 16 September 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
4 files
- scripts/
BCR_analysis_D1_PUB.Rmd , R, 1,074 lines, 2 matches - scripts/
mergeHeavyLightForScRep_ , R, 349 linesPUB.Rmd - LICENSE, License, 21 lines
- README.md, Text, 63 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;
- 2 scripts, each with its path and the digest of its content;
- 2 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
Datasets cited
- zenodo:18925481, at Zenodo; found in “Data and code availability”
Data and code availability
The associated scripts are available on 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, 30 September 2026: the first record
Recorded: type, journal, dates, 13 authors, 5 keywords, 5 funders, 60 references.
Cite
This paper
Perez, L., Roux, A. R., Schelling, R., Vinyals-Sales, D., Sabater, L., Winiger, R., Senyuz, I., Lin, A., Mathias, A., Pasquier, R. D., Gaig, C., Dalmau, J., & Foglierini, M. (2026). Structural basis of IgLON5 autoantibody recognition in autoimmune encephalitis. Research Square (preprint). https://
BibTeX
@article{perez2026struct
author = {Perez, Laurent and Roux, Angelique Roux and Schelling, Rachel and Vinyals-Sales, David and Sabater, Lidia and Winiger, Rahel and Senyuz, Ilayda and Lin, Alison and Mathias, Amandine and Pasquier, Renaud DU and Gaig, Carles and Dalmau, Josep and Foglierini, Mathilde},
title = {{Structural basis of IgLON5 autoantibody recognition in autoimmune encephalitis}},
journal = {Research Square (preprint)},
year = {2026},
month = apr,
publisher = {Research Square},
issn = {2693-5015},
doi = {10.21203/
url = {https://
}
RIS
TY - JOUR
AU - Perez, Laurent
AU - Roux, Angelique Roux
AU - Schelling, Rachel
AU - Vinyals-Sales, David
AU - Sabater, Lidia
AU - Winiger, Rahel
AU - Senyuz, Ilayda
AU - Lin, Alison
AU - Mathias, Amandine
AU - Pasquier, Renaud DU
AU - Gaig, Carles
AU - Dalmau, Josep
AU - Foglierini, Mathilde
TI - Structural basis of IgLON5 autoantibody recognition in autoimmune encephalitis
T2 - Research Square (preprint)
J2 - Res Sq
PY - 2026
DA - 2026/
SN - 2693-5015
PB - Research Square
DO - 10.21203/
UR - https://
ER -
CSL-JSON
{
"id": "10.21203/
"type": "article",
"title": "Structural basis of IgLON5 autoantibody recognition in autoimmune encephalitis",
"container-title": "Research Square (preprint)",
"author": [
{
"family": "Perez",
"given": "Laurent"
},
{
"family": "Roux",
"given": "Angelique Roux"
},
{
"family": "Schelling",
"given": "Rachel"
},
{
"family": "Vinyals-Sales",
"given": "David"
},
{
"family": "Sabater",
"given": "Lidia"
},
{
"family": "Winiger",
"given": "Rahel"
},
{
"family": "Senyuz",
"given": "Ilayda"
},
{
"family": "Lin",
"given": "Alison"
},
{
"family": "Mathias",
"given": "Amandine"
},
{
"family": "Pasquier",
"given": "Renaud DU"
},
{
"family": "Gaig",
"given": "Carles"
},
{
"family": "Dalmau",
"given": "Josep"
},
{
"family": "Foglierini",
"given": "Mathilde"
}
],
"container-title-short":
"DOI": "10.21203/
"ISSN": "2693-5015",
"publisher": "Research Square",
"URL": "https://
"issued": {
"date-parts": [
[
2026,
4,
27
]
]
}
}
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.1126/sciadv.aec2042 [code]
- IgLON5 autoimmune antibodies activate Tau via neuronal hyperactivity.Journal: Science advancesIn common: tidyverse, other condition, cellular / molecular, 10 references
- [2] doi:10.1093/brain/awag015
- Brainstem pathology in anti-IgLON5 disease: new insights into early events and tau progression.Journal: Brain : a journal of neurologyIn common: histology / microscopy, other condition, cellular / molecular, 6 references
- [3] doi:10.1016/j.xcrm.2026.102651 [code]
- Integrative CSF profiling identifies disease-specific immune responses in leptomeningeal disease.Journal: Cell reports. MedicineIn common: igraph, circlize, Seurat, 3 other tools, other condition, cellular / molecular, 1 reference
- [4] doi:10.3390/ijms27093997 [code]
- Coordinated Multicellular Immune Programs and Drug Targets Revealed by Single-Cell Analysis in Driver-Mutated NSCLC.Journal: International journal of molecular sciencesIn common: rstatix, igraph, circlize, 4 other tools, other condition
- [5] doi:10.1038/s41586-026-10629-x [code]
- Whole-genome duplication shaped cell-type evolution in the vertebrate brain.Journal: NatureIn common: rstatix, igraph, circlize, 4 other tools, cellular / molecular
- [6] doi:10.1007/s12035-026-05859-z [code]
- Uncovering Spatiotemporal and Functional Dynamics of Long Non-coding RNAs During Alzheimer's Progression in the Human Brain at Single-Cell Resolution.Journal: Molecular neurobiologyIn common: rstatix, igraph, circlize, 4 other tools, cellular / molecular
- [7] doi:10.1002/imt2.70163 [code]
- Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.Journal: iMetaIn common: rstatix, igraph, circlize, 4 other tools, cellular / molecular
- [8] doi:10.1038/s41467-026-70989-w [code]
- MIC-Drop-seq: scalable single-cell phenotyping of mutant vertebrate embryos.Journal: Nature communicationsIn common: rstatix, igraph, circlize, 4 other tools
- [9] doi:10.1038/s41398-026-04200-5 [code]
- Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder.Journal: Translational psychiatryIn common: rstatix, igraph, Seurat, 3 other tools, histology / microscopy, cellular / molecular
- [10] doi:10.1016/j.celrep.2026.117500 [code]
- Spatio-molecular gene expression reflects dorsal anterior cingulate cortex structure and function in the human brain.Journal: Cell reportsIn common: igraph, circlize, Seurat, 3 other tools, histology / microscopy, cellular / molecular
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, 2 scripts, and 2 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:a8c60b93efd3c12a…
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.
