OSCR

Refined single-cell profiling captures a CCR5<sup>high</sup> CD4<sup>+</sup> cytotoxic T-cell precursor in multiple sclerosis.

Code ↔ Paper

4 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 4 matches
  1. [1] § Methods › Single cell RNA-sequencing › Filtering, data integration, clustering and DEG analysis ↔ Th17_1_MS_SC_ADT_QC.Rmd, lines 99 to 137 · score 0.90 · Linear dimensional reduction, Leiden algorithm, highly variable features, log normalised, UMAP, SNN · block oscr:b:WGFYJ62AJCHCC-7 · Report a mismatch
  2. [2] § Methods › Single cell RNA-sequencing › Filtering, data integration, clustering and DEG analysis ↔ Th17_1_MS_SC_QC.Rmd, lines 477 to 497 · score 0.84 · Linear dimensional reduction, Leiden algorithm, UMAP, cell cluster, SNN, neighbours · block oscr:b:SQKMSH28TCXKZ-6 · Report a mismatch
  3. [3] § Results › Natalizumab reduces CCR5high Th17.1 cells with a highly receptive and pre-cytotoxic state in MS ↔ Th17_1_manuscript.Rmd, lines 249 to 272 · score 0.81 · IL12RB2, IL18R1, CX3CR1, DPP4, NKG7, KLRG1 · block oscr:b:0GFR7F1Q1ZDTS-T · Report a mismatch
  4. [4] § Methods › Single cell RNA-sequencing › Data processing and quality control ↔ Th17_1_MS_SC_demultiplexing.Rmd, lines 122 to 158 · score 0.59 · demultiplexing, ridge, HTOs, demuxmix, doublet, UMIs · block oscr:b:PHDTTCPA0JTQQ-M · 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 Markdown · 380 lines · 20 KB · no license · 1 match

  1. ---
  2. title: "Th17_1_MS_SC_Seurat_ADT_QC"
  3. author:
  4. name: Yifan vH
  5. affiliation: ErasmusMC
  6. date: "`r Sys.Date()`"
  7. output:
  8. BiocStyle::html_document:
  9. toc_float: true
  10. ---
  11. # __Dataset information__
  12. For project "Pathogenic features of Th17.1 cells in people with multiple sclerosis", we generated the dataset that contains 15 samples (SRS012-026) including 3 healthy control samples, 6 untreated MS samples, and 6 MS post-natalizumab treatment (TYS) samples. The untreated and post-natalizumab samples are from the same patients, treatment effect nested within group. The 10x Genomics pipeline included RNA layer, ADT layer, TCR-seq, and hashtagging to separate samples (lymphocytes + Th17.1).
  13. <br>
  14. This script is used to load the matrix data from Cell Ranger processing, a quality check to confirm and annotate the ADT proteins and hashtags based on lab records, and generate a seurat object for further processing.
  15. ```{r setup, include=FALSE}
  16. require("knitr")
  17. knitr::opts_chunk$set(
  18. echo = TRUE,
  19. message = TRUE,
  20. warning = TRUE
  21. )
  22. # outDir = "/path/tp/directory/"
  23. figDir = paste0(outDir, "/Figures")
  24. ifelse(!dir.exists(outDir), dir.create(outDir), "Directory Exists")
  25. ifelse(!dir.exists(figDir), dir.create(figDir), "Directory Exists")
  26. knitr::opts_knit$set(root.dir = outDir) # set work directory to your folder that contains data
  27. gc() # free up memory and report the memory usage
  28. options(max.print = .Machine$integer.max, scipen = 999, stringsAsFactors = F, dplyr.summarise.inform = F) # avoid truncated output in R console and scientific notation
  29. ```
  30. # load or install packages
  31. ```{r load packages, echo=TRUE, message=FALSE, warning=FALSE}
  32. ## Install pacman library if not installed
  33. if ( !require("pacman", character.only = TRUE)) {install.packages("pacman", dependencies = TRUE, quiet = TRUE) }
  34. ## Load and install libraries using pacman
  35. pacman::p_load("Azimuth","data.table", "dplyr", "tidyr", "tidyverse","ggplot2", "ggplotify","Matrix", "patchwork", "stringr", "Seurat")
  36. '%notin%' <- Negate('%in%')
  37. # if (!require("BiocManager", quietly = TRUE))
  38. # install.packages("BiocManager")
  39. # BiocManager::install("BiocStyle")
  40. ```
  41. # load matrix data into seurat objects
  42. ```{r load matrix data into seurat objects, echo=TRUE}
  43. #
  44. # # path to the matrix data, one folder for each sample, should contain barcodes.tsv, gene.tsv, and matrix.mtx, can directly read .gz files
  45. # path = "/path/to/raw/data/directory/"
  46. # path = "/home/lety/data/CBBI_Projects/Th17_1_MS_SC/raw/scRNA/" # path to your raw data
  47. #
  48. # # list full path to each folder
  49. # experiment_folders = list.dirs(path, recursive = F, full.names = T)
  50. #
  51. # # obtain sample ids
  52. # sample_id = list.dirs(path, recursive = F, full.names = F)
  53. #
  54. # # create a empty list to reserve space
  55. # Th17_1_MS_SC.raw = list()
  56. #
  57. # # each file consists of "Gene expression" and "Antibody Capture", read each file into a seurat object and store together in the Th17_1_MS_SC.raw list
  58. #
  59. # for (a in 1:length(experiment_folders)) {
  60. # data_dir = experiment_folders[a]
  61. # list.files(data_dir)
  62. # data = Read10X(data.dir = data_dir)
  63. #
  64. # # add in information to filter genes that need to expression in at least one cell
  65. # seurat_object = CreateSeuratObject(counts = data$`Gene Expression`, min.cells = 1,
  66. # assay = "RNA",
  67. # project = sample_id[a])
  68. # protein_assay = data$`Antibody Capture`
  69. #
  70. # # rownames(ADT_assay) = sample_protein # change protein names
  71. # seurat_object[["ADT"]] = CreateAssay5Object(counts = protein_assay)
  72. #
  73. # ## Add prefix to cell IDs (convenient for merging later)
  74. # seurat_object = Seurat::RenameCells(object=seurat_object, add.cell.id = sample_id[a])
  75. #
  76. # Th17_1_MS_SC.raw[[a]] = seurat_object
  77. # rm(data, protein_assay, seurat_object)
  78. # }
  79. #
  80. # names(Th17_1_MS_SC.raw) = sample_id
  81. # rm(path, experiment_folders)
  82. # saveRDS(Th17_1_MS_SC.raw, file = paste0(outDir, "/Th17_1_MS_SC_raw_seurat.rds"))
  83. Th17_1_MS_SC.raw = readRDS(file = paste0(outDir, "/Th17_1_MS_SC_raw_seurat.rds"))
  84. ```
  85. # preprocessing individual unfiltered data
  86. With some base settings to visualize ADT layer in UMAP for annotation
  87. ```{r preprocessing individual data}
  88. #
  89. # for (i in 1:length(Th17_1_MS_SC.raw)){
  90. # ## Normalize RNA data with log normalization
  91. # Th17_1_MS_SC.raw[[i]] = NormalizeData(Th17_1_MS_SC.raw[[i]], normalization.method = "LogNormalize")
  92. #
  93. # ## Normalize ADT data with centered log-ratio (CLR) transformation
  94. # Th17_1_MS_SC.raw[[i]] = NormalizeData(Th17_1_MS_SC.raw[[i]], assay = "ADT", normalization.method = "CLR", margin = 2)
  95. #
  96. # ## identify highly variable features - 2000
  97. # Th17_1_MS_SC.raw[[i]] = FindVariableFeatures(Th17_1_MS_SC.raw[[i]], nfeatures = 2000, selection.method = "vst",
  98. # loess.span = 0.3, clip.max = "auto")
  99. # ## scale data
  100. # Th17_1_MS_SC.raw[[i]] = ScaleData(Th17_1_MS_SC.raw[[i]], features = VariableFeatures(Th17_1_MS_SC.raw[[i]]))
  101. #
  102. # ## linear dimensional reduction with PCA
  103. # Th17_1_MS_SC.raw[[i]] = RunPCA(Th17_1_MS_SC.raw[[i]], features = VariableFeatures(Th17_1_MS_SC.raw[[i]]))
  104. #
  105. # ## find neighbors
  106. # Th17_1_MS_SC.raw[[i]] = FindNeighbors(Th17_1_MS_SC.raw[[i]], reduction = "pca",graph.name = c("NN", "SNN"), dims = 1:30)
  107. #
  108. # ## cluster the cell with leiden algorithm
  109. # Th17_1_MS_SC.raw[[i]] = FindClusters(Th17_1_MS_SC.raw[[i]], cluster.name = "unintegrated_clusters",
  110. # graph.name = "SNN", resolution = 0.8,
  111. # algorithm = 4, method = "igraph")
  112. #
  113. # ## non-linear dimensional reduction to visualize and explore dataset
  114. # Th17_1_MS_SC.raw[[i]] = RunUMAP(Th17_1_MS_SC.raw[[i]], dims = 1:30, reduction = "pca",
  115. # reduction.name = "umap.unintegrated")
  116. #
  117. # ## run azimuth annotation
  118. # Th17_1_MS_SC.raw[[i]] = RunAzimuth(Th17_1_MS_SC.raw[[i]], reference = "pbmcref", umap.name = "ref.umap", query.modality = "RNA")
  119. # }
  120. #
  121. # saveRDS(Th17_1_MS_SC.raw, file = paste0(outDir, "/Th17_1_MS_SC_individualprocessed.rds"))
  122. Th17_1_MS_SC.pro_raw = readRDS(file = paste0(outDir, "/Th17_1_MS_SC_individualprocessed.rds"))
  123. ```
  124. # hashtag & ADT protein visualization
  125. ## hashtags QC per sample
  126. ```{r hashtags QC per sample, fig.width=10, fig.height=10}
  127. for (i in 1:length(Th17_1_MS_SC.pro_raw)){
  128. print(Th17_1_MS_SC.pro_raw[[i]]@project.name)
  129. Idents(Th17_1_MS_SC.pro_raw[[i]]) = "predicted.celltype.l2"
  130. ## plot the top two hashtags - decipher between th17.1 and lympho
  131. DefaultAssay(Th17_1_MS_SC.pro_raw[[i]]) = "ADT"
  132. print(rownames(Th17_1_MS_SC.pro_raw[[i]]))
  133. # pdf(file = paste0(figDir, "/ADT/ADT_hashtag_QC_", Th17_1_MS_SC.pro_raw[[i]]@project.name, ".pdf"), width = 15, height = 10)
  134. p1 = FeaturePlot(Th17_1_MS_SC.pro_raw[[i]],
  135. features =rownames(Th17_1_MS_SC.pro_raw[[i]][["ADT"]])[1:2],
  136. reduction = "umap.unintegrated", ncol = 2,
  137. label = T, label.size = 4, repel = T,
  138. cols = c("lightgrey","darkgreen"))
  139. DefaultAssay(Th17_1_MS_SC.pro_raw[[i]]) = "RNA"
  140. p2 = FeaturePlot(Th17_1_MS_SC.pro_raw[[i]],
  141. features = c("CD4","CD8A","CD19","FCGR3A"),
  142. reduction = "umap.unintegrated", ncol = 2,
  143. label = T, label.size = 4, repel = T,
  144. cols = c("lightgrey","darkgreen"))
  145. plot(p1 / p2)
  146. # dev.off()
  147. }
  148. ```
  149. ## QC ADT protein and its corresponding RNA level per sample
  150. ```{r ADT per sample QC, fig.width=10, fig.height=10}
  151. adt_proteins = c("CD4.1","CD8","CD194","CD20","CD183","CD196")
  152. adt_genes = c("CD4","CD8A","CCR4","MS4A1","CXCR3","CCR6") # gene names and protein names not the same
  153. for (i in 1:length(Th17_1_MS_SC.pro_raw)){
  154. print(Th17_1_MS_SC.pro_raw[[i]]@project.name)
  155. sample = Th17_1_MS_SC.pro_raw[[i]]@project.name
  156. Idents(Th17_1_MS_SC.pro_raw[[i]]) = "predicted.celltype.l2"
  157. DefaultAssay(Th17_1_MS_SC.pro_raw[[i]]) = "ADT"
  158. plot1 = FeaturePlot(Th17_1_MS_SC.pro_raw[[i]],
  159. features = rownames(Th17_1_MS_SC.pro_raw[[i]][["ADT"]])[3:8],
  160. reduction = "umap.unintegrated", slot="data", keep.scale = "all",
  161. label = T, label.size = 4, repel = T,
  162. cols = c("lightgrey","darkgreen"))
  163. plot1 = plot1 + plot_layout(ncol = 3)
  164. DefaultAssay(Th17_1_MS_SC.pro_raw[[i]]) = "RNA"
  165. plot2 = FeaturePlot(Th17_1_MS_SC.pro_raw[[i]], features = adt_genes,
  166. reduction = "umap.unintegrated", slot="data", keep.scale = "all",
  167. label = T, label.size = 4, repel = T,
  168. cols = c("lightgrey","blue"))
  169. plot2 = plot2 + plot_layout(ncol = 3)
  170. # pdf(file = paste0(figDir, "/ADT/",sample, "_ADT_protein_QC.pdf"), width = 15, height = 20)
  171. plot(plot1 / plot2)
  172. # dev.off()
  173. }
  174. ```
  175. # annotate ADT layer
  176. Only in SRS_012 sample, the order of the two hashtags were reversed.
  177. ```{r}
  178. # # list of protein labels
  179. # sample_protein = c("Lympho", "Th17.1", "CD4.1","CD8","CD194","CD20","CD183","CD196")
  180. #
  181. # for (i in 1:length(Th17_1_MS_SC.raw)){
  182. #
  183. # if (Th17_1_MS_SC.raw[[i]]@project.name == "SRS_012"){
  184. # rownames(Th17_1_MS_SC.raw[[i]][["ADT"]]) = c("Th17.1","Lympho", "CD4.1","CD8","CD194","CD20","CD183","CD196")
  185. # }
  186. # else{
  187. # rownames(Th17_1_MS_SC.raw[[i]][["ADT"]]) = sample_protein
  188. # }
  189. # }
  190. ```
  191. # merge all samples and add metadata information to seurat object
  192. | Sample_name | Disease. | Treatment | Patient_id| Condition | Condition_id | Therapy_response | sex | age |
  193. | :---------- | :-------------- | :-------- | :-------- | :-------- | :----------- | :--------------- | :-- | :---|
  194. | SRS_012 | healthy_control | None | 8 | HC | HC_3 | none | F | 50 |
  195. | SRS_013 | healthy_control | None | 7 | HC | HC_1 | none | F | 31 |
  196. | SRS_014 | MS_patient | None | 1 | MS_UNTR | MS_UNTR_1 | responder | F | 30 |
  197. | SRS_015 | MS_patient | TYS | 1 | MS_TYS | MS_TYS_1 | responder | F | 30 |
  198. | SRS_016 | MS_patient | None | 2 | MS_UNTR | MS_UNTR_2 | responder | M | 38 |
  199. | SRS_017 | MS_patient | TYS | 2 | MS_TYS | MS_TYS_2 | responder | M | 38 |
  200. | SRS_018 | MS_patient | None | 3 | MS_UNTR | MS_UNTR_3 | non-responder | F | 30 |
  201. | SRS_019 | MS_patient | TYS | 3 | MS_TYS | MS_TYS_3 | non-responder | F | 30 |
  202. | SRS_020 | MS_patient | None | 4 | MS_UNTR | MS_UNTR_4 | responder | F | 49 |
  203. | SRS_021 | MS_patient | TYS | 4 | MS_TYS | MS_TYS_4 | responder | F | 49 |
  204. | SRS_022 | MS_patient | None | 5 | MS_UNTR | MS_UNTR_5 | non-responder | F | 49 |
  205. | SRS_023 | MS_patient | TYS | 5 | MS_TYS | MS_TYS_6 | non-responder | F | 49 |
  206. | SRS_024 | healthy_control | None | 9 | HC | HC_2 | none | M | 36 |
  207. | SRS_025 | MS_patient | None | 6 | MS_UNTR | MS_UNTR_6 | non-responder | M | 39 |
  208. | SRS_026 | MS_patient | TYS | 6 | MS_TYS | MS_TYS_6 | non-responder | M | 39 |
  209. <br>
  210. ```{r merge seurat object and add metadata, echo=TRUE}
  211. # # merge all samples into a single Seurat object - this way to add in the project name
  212. # Th17_1_MS_SC = merge(Th17_1_MS_SC.raw[[1]],
  213. # y = c(Th17_1_MS_SC.raw[[2]],Th17_1_MS_SC.raw[[3]],Th17_1_MS_SC.raw[[4]],
  214. # Th17_1_MS_SC.raw[[5]],Th17_1_MS_SC.raw[[6]],Th17_1_MS_SC.raw[[7]],
  215. # Th17_1_MS_SC.raw[[8]],Th17_1_MS_SC.raw[[9]],Th17_1_MS_SC.raw[[10]],
  216. # Th17_1_MS_SC.raw[[11]], Th17_1_MS_SC.raw[[12]],Th17_1_MS_SC.raw[[13]],
  217. # Th17_1_MS_SC.raw[[14]],Th17_1_MS_SC.raw[[15]]),
  218. # project = "Th17_1_MS_SC_project")
  219. #
  220. # # join all layers
  221. # Th17_1_MS_SC[['RNA']] <- SeuratObject::JoinLayers(object = Th17_1_MS_SC[['RNA']])
  222. # Th17_1_MS_SC[['ADT']] <- SeuratObject::JoinLayers(object = Th17_1_MS_SC[['ADT']])
  223. #
  224. # ## Add experimental condition for each sample
  225. # [email hidden] <- [email hidden] %>%
  226. # dplyr::mutate(condition = case_when(orig.ident %in% c("SRS_012", "SRS_013", "SRS_024") ~ "HC",
  227. # orig.ident %in% c("SRS_015", "SRS_017", "SRS_019",
  228. # "SRS_021", "SRS_023", "SRS_026") ~ "MS_TYS",
  229. # orig.ident %in% c("SRS_014", "SRS_016", "SRS_018",
  230. # "SRS_020", "SRS_022", "SRS_025") ~ "MS_UNTR"),
  231. #
  232. # disease = case_when(orig.ident %in% c("SRS_012", "SRS_013", "SRS_024") ~ "HC",
  233. # orig.ident %in% c("SRS_015", "SRS_017", "SRS_019",
  234. # "SRS_021", "SRS_023", "SRS_026",
  235. # "SRS_014", "SRS_016", "SRS_018",
  236. # "SRS_020", "SRS_022", "SRS_025") ~ "MS"),
  237. #
  238. # treatment = case_when(orig.ident %in% c("SRS_012", "SRS_013", "SRS_024",
  239. # "SRS_014", "SRS_016", "SRS_018",
  240. # "SRS_020", "SRS_022", "SRS_025") ~ "None",
  241. # orig.ident %in% c("SRS_015", "SRS_017", "SRS_019",
  242. # "SRS_021", "SRS_023", "SRS_026") ~ "TYS"),
  243. #
  244. # condition_id = case_when(orig.ident%in%c("SRS_012") ~ "HC_3",
  245. # orig.ident%in%c("SRS_013") ~ "HC_1",
  246. # orig.ident%in%c("SRS_014") ~ "MS_UNTR1",
  247. # orig.ident%in%c("SRS_015") ~ "MS_TYS_1",
  248. # orig.ident%in%c("SRS_016") ~ "MS_UNTR2",
  249. # orig.ident%in%c("SRS_017") ~ "MS_TYS_2",
  250. # orig.ident%in%c("SRS_018") ~ "MS_UNTR3",
  251. # orig.ident%in%c("SRS_019") ~ "MS_TYS_3",
  252. # orig.ident%in%c("SRS_020") ~ "MS_UNTR4",
  253. # orig.ident%in%c("SRS_021") ~ "MS_TYS_4",
  254. # orig.ident%in%c("SRS_022") ~ "MS_UNTR5",
  255. # orig.ident%in%c("SRS_023") ~ "MS_TYS_5",
  256. # orig.ident%in%c("SRS_024") ~ "HC_2",
  257. # orig.ident%in%c("SRS_025") ~ "MS_UNTR6",
  258. # orig.ident%in%c("SRS_026") ~ "MS_TYS_6"),
  259. #
  260. # patient_id = case_when(orig.ident%in%c("SRS_012") ~ "8",
  261. # orig.ident%in%c("SRS_013") ~ "7",
  262. # orig.ident%in%c("SRS_014") ~ "1",
  263. # orig.ident%in%c("SRS_015") ~ "1",
  264. # orig.ident%in%c("SRS_016") ~ "2",
  265. # orig.ident%in%c("SRS_017") ~ "2",
  266. # orig.ident%in%c("SRS_018") ~ "3",
  267. # orig.ident%in%c("SRS_019") ~ "3",
  268. # orig.ident%in%c("SRS_020") ~ "4",
  269. # orig.ident%in%c("SRS_021") ~ "4",
  270. # orig.ident%in%c("SRS_022") ~ "5",
  271. # orig.ident%in%c("SRS_023") ~ "5",
  272. # orig.ident%in%c("SRS_024") ~ "9",
  273. # orig.ident%in%c("SRS_025") ~ "6",
  274. # orig.ident%in%c("SRS_026") ~ "6"),
  275. #
  276. # therapy_response = case_when(orig.ident%in%c("SRS_012") ~ "none",
  277. # orig.ident%in%c("SRS_013") ~ "none",
  278. # orig.ident%in%c("SRS_014") ~ "responder",
  279. # orig.ident%in%c("SRS_015") ~ "responder",
  280. # orig.ident%in%c("SRS_016") ~ "responder",
  281. # orig.ident%in%c("SRS_017") ~ "responder",
  282. # orig.ident%in%c("SRS_018") ~ "non-responder",
  283. # orig.ident%in%c("SRS_019") ~ "non-responder",
  284. # orig.ident%in%c("SRS_020") ~ "responder",
  285. # orig.ident%in%c("SRS_021") ~ "responder",
  286. # orig.ident%in%c("SRS_022") ~ "non-responder",
  287. # orig.ident%in%c("SRS_023") ~ "non-responder",
  288. # orig.ident%in%c("SRS_024") ~ "none",
  289. # orig.ident%in%c("SRS_025") ~ "non-responder",
  290. # orig.ident%in%c("SRS_026") ~ "non-responder"),
  291. #
  292. # sex = case_when(orig.ident%in%c("SRS_012") ~ "F",
  293. # orig.ident%in%c("SRS_013") ~ "F",
  294. # orig.ident%in%c("SRS_014") ~ "F",
  295. # orig.ident%in%c("SRS_015") ~ "F",
  296. # orig.ident%in%c("SRS_016") ~ "F",
  297. # orig.ident%in%c("SRS_017") ~ "M",
  298. # orig.ident%in%c("SRS_018") ~ "M",
  299. # orig.ident%in%c("SRS_019") ~ "F",
  300. # orig.ident%in%c("SRS_020") ~ "F",
  301. # orig.ident%in%c("SRS_021") ~ "F",
  302. # orig.ident%in%c("SRS_022") ~ "F",
  303. # orig.ident%in%c("SRS_023") ~ "F",
  304. # orig.ident%in%c("SRS_024") ~ "M",
  305. # orig.ident%in%c("SRS_025") ~ "M",
  306. # orig.ident%in%c("SRS_026") ~ "M"),
  307. #
  308. # age = case_when(orig.ident%in%c("SRS_012") ~ "50",
  309. # orig.ident%in%c("SRS_013") ~ "31",
  310. # orig.ident%in%c("SRS_014") ~ "30",
  311. # orig.ident%in%c("SRS_015") ~ "30",
  312. # orig.ident%in%c("SRS_016") ~ "38",
  313. # orig.ident%in%c("SRS_017") ~ "38",
  314. # orig.ident%in%c("SRS_018") ~ "30",
  315. # orig.ident%in%c("SRS_019") ~ "30",
  316. # orig.ident%in%c("SRS_020") ~ "49",
  317. # orig.ident%in%c("SRS_021") ~ "49",
  318. # orig.ident%in%c("SRS_022") ~ "49",
  319. # orig.ident%in%c("SRS_023") ~ "49",
  320. # orig.ident%in%c("SRS_024") ~ "36",
  321. # orig.ident%in%c("SRS_025") ~ "39",
  322. # orig.ident%in%c("SRS_026") ~ "39"))
  323. #
  324. # head([email hidden])
  325. #
  326. # saveRDS(Th17_1_MS_SC, file = paste0(outDir, '/Th17_1_MS_SC_merged_seurat.rds'))
  327. ```
  328. # Session Info
  329. ```{r}
  330. # remove everything from environment at the end
  331. rm(list=ls())
  332. sessionInfo()
  333. ```

Th17_1_MS_SC_ADT_QC.Rmd at commit cf93553, no license · at the source

Overview

Authors: Fabiënne van Puijfelik1,2, Jasper Rip1,2, Yifan van Hasselt1,2, Annet F. Wierenga-Wolf1,2, Sophie Shyfrin1,2, Anna C. Pelser1,2, Marie-Jose Melief1,2, Romy A.M. Klein Kranenbarg2,3,4, Eric M. Bindels5, Harmen J.G. van de Werken1, Chaja M.J. van Ansenwoude6,7, Helga E. de Vries6,7, Willem A. Dik1,8, Janet de Beukelaar4, Ide Smets2,3, Beatrijs H. Wokke2,3, Joost Smolders1,2,3,9, Marvin M. van Luijn1,2
  1. Department of Immunology, Erasmus MC, University Medical Center, Rotterdam, the Netherlands
  2. MS Center ErasMS, Erasmus MC, University Medical Center, Rotterdam, the Netherlands
  3. Department of Neurology, Erasmus MC, University Medical Center, Rotterdam, the Netherlands
  4. Department of Neurology, Albert Schweitzer Hospital, Dordrecht, the Netherlands
  5. Department of Hematology, Erasmus MC, University Medical Center, Rotterdam, the Netherlands
  6. Department of Molecular Cell Biology and Immunology, Amsterdam Neuroscience, Amsterdam Institute for Infection and Immunity, Amsterdam UMC Location Vrije Universiteit, Amsterdam, the Netherlands
  7. MS Center Amsterdam, Amsterdam UMC Location Vrije Universiteit, Amsterdam, the Netherlands
  8. Laboratory Medical Immunology, Erasmus MC, University Medical Center, Rotterdam, the Netherlands
  9. Neuroimmunology Research Group, Netherlands Institute for Neuroscience, Amsterdam, the Netherlands
Journal: EBioMedicine, volume 129, article 106324
Dates: received 2 September 2025; accepted 23 May 2026; published online 6 June 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.ebiom.2026.106324 · PMID 42250325 · PMCID PMC13264205 · OpenAlex W7163751304
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), human (organism), multiple sclerosis (population), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Machine learning, Connectivity
Keywords: Multiple sclerosis (MS), CD4+ T cell, Cytotoxic T lymphocytes (CTL), Th17.1 cells, CCR5, Single-cell RNA sequencing (scRNA-seq)
MeSH: CD4-Positive T-Lymphocytes*, Multiple Sclerosis*, Receptors, CCR5*, Single-Cell Analysis*, T-Lymphocytes, Cytotoxic*, Adult, Biomarkers, Female, Gene Expression Profiling, Humans, Immunophenotyping, Male, Natalizumab, Th17 Cells, Transcriptome (* major topic)
Topic: Chemokine receptors and signaling (Oncology, Medicine), according to OpenAlex
Funding: Horizon Europe; Multiple Sclerosis Research Foundation; Netherlands Organisation for Health Research and Development
Citations: not cited yet (Europe PMC); 52 references in the paper
Research resources: RRID:AB_2869473, RRID:CVCL_U985

Abstract

Background: Decades of immunological and genetic studies highlight CD4+ T cells as initiators of central nervous system (CNS) pathology in individuals who develop multiple sclerosis (MS). A low-frequency CD4+ T-cell population termed T helper 17.1 (Th17.1) has been argued to play a central role during MS onset due to differences in abundance, yet little is known about their functional heterogeneity and distinctive mode of action in MS.

Methods: Features that distinguished Th17.1 from Th17 and Th1 cells in the blood were explored using spectral flow cytometry. We focused on the brain-homing properties of Th17.1 in MS by analysing paired blood and cerebrospinal fluid (CSF) as well as blood before and after natalizumab treatment. Identified Th17.1 effector signatures were further analysed using purified subsets for single-cell transcriptomics and corresponding in vitro stimulation assays.

Findings: Our screens reveal an CCR5high Th17.1 cluster that is enriched in CSF, but also selectively reduced in post-versus pre-natalizumab blood samples from people with MS. The phenotypical and transcriptional signature of this Th17.1 cluster matched and pointed to a highly receptive and pre-cytotoxic state. Indeed, particularly CCR5high Th17.1 cells upregulated cytolytic proteins by strongly responding to IL-12, while secretion of these proteins was only found when adding both IL-12 and IL-18 in vitro.

Interpretation: We show that low-frequency, circulating Th17.1 cells harbour a unique MS-associated CCR5high cluster with enhanced cytotoxic and CNS-infiltrating potential. This CD4+ cytotoxic T-cell precursor could be a promising target for future research aimed at monitoring disease-relevant immune perturbations for precision medicine in MS.

Funding: 10.13039/501100001826ZonMw (09150171910036), 10.13039/501100003000Stichting MS Research (19–1075 MS, 23–490 g MS), European Union’s Horizon Europe Research and Innovation Actions (101137235; BEHIND-MS) and the 10.13039/501100007352Swiss State Secretariat for Education, Research and Innovation (SERI), Erasmus MC Foundation (10502/02).

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 4 matches between paragraphs and lines of code.

YFWang-YvH/Refined-single-cell-profiling-captures-a-CCR5high-CD4-cytotoxic-T-cell-precursor-in-MS

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: cf9355357c42ebec235789a25c6fb2096678d642, 5 May 2026
Languages: R (6)
Size: 8 files, 6 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 5 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Seurat (6 files), tidyverse (6 files), ggplot2 (5 files), patchwork (5 files), data.table (4 files), igraph (3 files), limma (3 files), reticulate (3 files), car (2 files), DESeq2 (2 files), lme4 (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
7 files

Code availability

The code described in the methods for the single-cell sequencing analysis is available on GitHub (https://github.com/YFWang-YvH/Refined-single-cell-profiling-captures-a-CCR5high-CD4-cytotoxic-T-cell-precursor-in-MS).

Reproduced under the paper's license (CC BY), from the paper cited above.

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;
  • 6 scripts, each with its path and the digest of its content;
  • 4 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

Due to patient privacy reasons, only processed demultiplexed Th17.1-purified Seurat objects from the single-cell sequencing data reported in this study are deposited at the publicly accessible data repository platform DataverseNL (https://doi.org/10.34894/GNSVFB). Other experimental data will be made available from the corresponding author upon reasonable request.

Reproduced under the paper's license (CC BY), from the paper cited above.

Data sharing statement

Data supporting our findings will be made available by the corresponding author upon reasonable request, beginning at publication with no end date. Single-cell RNAseq data are available at the DataverseNL platform (see Data availability in the Methods section).

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, pages, dates, 18 authors, 6 keywords, 15 MeSH terms, 3 funders, 51 references, 2 RRIDs.

Cite

This paper

van Puijfelik, F., Rip, J., van Hasselt, Y., Wierenga-Wolf, A. F., Shyfrin, S., Pelser, A. C., Melief, M.-J., Klein Kranenbarg, R. A., Bindels, E. M., van de Werken, H. J., van Ansenwoude, C. M., de Vries, H. E., Dik, W. A., de Beukelaar, J., Smets, I., Wokke, B. H., Smolders, J., & van Luijn, M. M. (2026). Refined single-cell profiling captures a CCR5&lt;sup&gt;high&lt;/sup&gt; CD4&lt;sup&gt;+&lt;/sup&gt; cytotoxic T-cell precursor in multiple sclerosis. EBioMedicine, 129, 106324. https://doi.org/10.1016/j.ebiom.2026.106324

BibTeX

@article{vanpuijfelik2026refined,
author = {van Puijfelik, Fabiënne and Rip, Jasper and van Hasselt, Yifan and Wierenga-Wolf, Annet F. and Shyfrin, Sophie and Pelser, Anna C. and Melief, Marie-Jose and Klein Kranenbarg, Romy A.M. and Bindels, Eric M. and van de Werken, Harmen J.G. and van Ansenwoude, Chaja M.J. and de Vries, Helga E. and Dik, Willem A. and de Beukelaar, Janet and Smets, Ide and Wokke, Beatrijs H. and Smolders, Joost and van Luijn, Marvin M.},
title = {{Refined single-cell profiling captures a CCR5\&lt;sup\&gt;high\&lt;/sup\&gt; CD4\&lt;sup\&gt;+\&lt;/sup\&gt; cytotoxic T-cell precursor in multiple sclerosis}},
journal = {EBioMedicine},
year = {2026},
month = jun,
volume = {129},
pages = {106324},
publisher = {Elsevier},
issn = {2352-3964},
doi = {10.1016/j.ebiom.2026.106324},
url = {https://doi.org/10.1016/j.ebiom.2026.106324},
pmid = {42250325},
pmcid = {PMC13264205}
}

RIS

TY - JOUR
AU - van Puijfelik, Fabiënne
AU - Rip, Jasper
AU - van Hasselt, Yifan
AU - Wierenga-Wolf, Annet F.
AU - Shyfrin, Sophie
AU - Pelser, Anna C.
AU - Melief, Marie-Jose
AU - Klein Kranenbarg, Romy A.M.
AU - Bindels, Eric M.
AU - van de Werken, Harmen J.G.
AU - van Ansenwoude, Chaja M.J.
AU - de Vries, Helga E.
AU - Dik, Willem A.
AU - de Beukelaar, Janet
AU - Smets, Ide
AU - Wokke, Beatrijs H.
AU - Smolders, Joost
AU - van Luijn, Marvin M.
TI - Refined single-cell profiling captures a CCR5&lt;sup&gt;high&lt;/sup&gt; CD4&lt;sup&gt;+&lt;/sup&gt; cytotoxic T-cell precursor in multiple sclerosis
T2 - EBioMedicine
J2 - EBioMedicine
PY - 2026
DA - 2026/06/06
VL - 129
SP - 106324
SN - 2352-3964
PB - Elsevier
DO - 10.1016/j.ebiom.2026.106324
UR - https://doi.org/10.1016/j.ebiom.2026.106324
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.ebiom.2026.106324",
"type": "article-journal",
"title": "Refined single-cell profiling captures a CCR5&lt;sup&gt;high&lt;/sup&gt; CD4&lt;sup&gt;+&lt;/sup&gt; cytotoxic T-cell precursor in multiple sclerosis",
"container-title": "EBioMedicine",
"author": [
{
"family": "van Puijfelik",
"given": "Fabiënne"
},
{
"family": "Rip",
"given": "Jasper"
},
{
"family": "van Hasselt",
"given": "Yifan"
},
{
"family": "Wierenga-Wolf",
"given": "Annet F."
},
{
"family": "Shyfrin",
"given": "Sophie"
},
{
"family": "Pelser",
"given": "Anna C."
},
{
"family": "Melief",
"given": "Marie-Jose"
},
{
"family": "Klein Kranenbarg",
"given": "Romy A.M."
},
{
"family": "Bindels",
"given": "Eric M."
},
{
"family": "van de Werken",
"given": "Harmen J.G."
},
{
"family": "van Ansenwoude",
"given": "Chaja M.J."
},
{
"family": "de Vries",
"given": "Helga E."
},
{
"family": "Dik",
"given": "Willem A."
},
{
"family": "de Beukelaar",
"given": "Janet"
},
{
"family": "Smets",
"given": "Ide"
},
{
"family": "Wokke",
"given": "Beatrijs H."
},
{
"family": "Smolders",
"given": "Joost"
},
{
"family": "van Luijn",
"given": "Marvin M."
}
],
"container-title-short": "EBioMedicine",
"volume": "129",
"page": "106324",
"DOI": "10.1016/j.ebiom.2026.106324",
"PMID": "42250325",
"PMCID": "PMC13264205",
"ISSN": "2352-3964",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.ebiom.2026.106324",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
6
]
]
}
}

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.1212/nxi.0000000000200553 [code]
Integrin β1 Demarks Precursors of Brain-Residing Antibody-Secreting Cells in Multiple Sclerosis.
Journal: Neurology(R) neuroimmunology & neuroinflammation
In common: reticulate, igraph, Seurat, 4 other tools, multiple sclerosis, 2 references, 2 authors
[2] doi:10.1073/pnas.2514753123 [code]
Immune cell profiling reveals expanded stem cell-like memory T cells in anti-GAD65-associated neurological syndromes.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: reticulate, limma, Seurat, 3 other tools, genetics / omics, cellular / molecular, 2 references, author Eric M. Bindels
[3] doi:10.1016/j.isci.2022.105279 [code]
A multi-omics approach to visualize early neuronal differentiation from hESCs in 4D.
Journal: iScience
In common: reticulate, limma, car, 7 other tools, genetics / omics, 1 reference
[4] doi:10.1523/eneuro.0148-24.2024 [code]
Human Pluripotent Stem Cell-Derived Astrocyte Functionality Compares Favorably with Primary Rat Astrocytes.
Journal: eNeuro
In common: reticulate, igraph, Seurat, 4 other tools, cellular / molecular, author Eric M. Bindels
[5] doi:10.1038/s41380-026-03585-5 [code]
Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids.
Journal: Molecular psychiatry
In common: reticulate, limma, igraph, 5 other tools, genetics / omics, 3 references
[6] doi:10.1111/ene.70052
Multifaceted Biomarkers Suggest a Similar Profile of CNS Pathology in Relapsing and Progressive MS.
Journal: European journal of neurology
In common: multiple sclerosis, 2 references, 2 authors
[7] doi:10.1016/j.isci.2022.105785 [code]
Osteopontin associates with brain T<sub>RM</sub>-cell transcriptome and compartmentalization in donors with and without multiple sclerosis.
Journal: iScience
In common: DESeq2, ggplot2, multiple sclerosis, genetics / omics, cellular / molecular, 3 references, author Joost Smolders
[8] doi:10.1016/j.xcrm.2026.102651 [code]
Integrative CSF profiling identifies disease-specific immune responses in leptomeningeal disease.
Journal: Cell reports. Medicine
In common: reticulate, DESeq2, igraph, 5 other tools, genetics / omics, cellular / molecular, 1 reference
[9] doi:10.1016/j.isci.2023.107755 [code]
Multi-omics approach reveals dysregulated genes during hESCs neuronal differentiation exposure to paracetamol.
Journal: iScience
In common: reticulate, limma, DESeq2, 5 other tools, genetics / omics, cellular / molecular, 1 reference
[10] doi:10.1186/s12964-024-01686-8 [code]
Altered glia-neuron communication in Alzheimer's Disease affects WNT, p53, and NFkB Signaling determined by snRNA-seq.
Journal: Cell communication and signaling : CCS
In common: limma, DESeq2, igraph, 5 other tools, genetics / omics, cellular / molecular, 1 reference

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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1016/j.ebiom.2026.106324.svg)](https://openscicode.org/badge/doi/10.1016/j.ebiom.2026.106324)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1016/j.ebiom.2026.106324.svg
   :target: https://openscicode.org/badge/doi/10.1016/j.ebiom.2026.106324
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.ebiom.2026.106324"><img src="https://openscicode.org/badge/doi/10.1016/j.ebiom.2026.106324.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

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)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.