Integrated single-cell and spatial transcriptomic profiling in ALS uncovers peripheral-to-central immune infiltration and reprogramming.
The 38 matches · 5 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Methods › Deconvolution of SP spots ↔ analysis_scripts/40.spatial_reference/40.4.train_ref_model.py, lines 1–81 · score 0.96 · cell_count_cutoff, cell_percentage_cutoff2, filter_genes, batch_key, max_epochs, train_size
- [2] § Methods › Deconvolution of SP spots ↔ analysis_scripts/40.spatial_reference/training.ipynb, lines 44–78 · score 0.96 · cell_count_cutoff, cell_percentage_cutoff2, filter_genes, batch_key, max_epochs, train_size
- [3] § Methods › scRNA-seq preprocessing ↔ analysis_scripts/04.integration_and_clustering/04.2.crispr_clean_sct_and_assign_labels.R, the whole file · a weak match · score 0.96 · FindTransferAnchors, TransferData, reference.reduction, vst.flavor, RunUMAP, RunPCA
- [4] § Methods › scRNA-seq preprocessing ↔ analysis_scripts/04.integration_and_clustering/04.4.immune_enriched_sct_and_assign_labels.R, the whole file · a weak match · score 0.96 · FindTransferAnchors, TransferData, reference.reduction, vst.flavor, RunUMAP, RunPCA
- [5] § Results › Immune dysregulation associates with ALS spinal cord pathology ↔ analysis_scripts/48.tdp43_analysis/48.3.gene_tdp43.Rmd, lines 287–369 · score 0.79 · stress responses, S100A9, CHI3L1, TREM2, lysosomal, metabolic
- [6] § Methods › scRNA-seq differential expression gene analysis ↔ analysis_scripts/43.downstream_analysis/43.8.MN_DE.Rmd, lines 599–745 · score 0.76 · PrepSCTFindMarkers, SCT model, fold change, C9orf72, variables, MAST
- [7] § Methods › scRNA-seq differential expression gene analysis ↔ analysis_scripts/48.tdp43_analysis/48.3.gene_tdp43.Rmd, lines 399–526 · score 0.70 · PrepSCTFindMarkers, SCT model, fold change, variables, MAST, sex
- [8] § Methods › SP DEP analysis ↔ analysis_scripts/47.protein_panel_analysis/47.1.protein_analysis.Rmd, lines 456–516 · score 0.70 · logfc.threshold, min.pct, negative binomial, FindMarkers, negbinom, subsetted
- [9] § Results › Gene expression changes and immune-cell dynamics in ALS CNS tissues ↔ correlation-with-disease-duration.Rmd, lines 173–269 · score 0.68 · disease duration, C1QC, C1QA, C1QB, CHIT1, LSP1
- [10] § Results › Immune dysregulation associates with ALS spinal cord pathology ↔ correlation-with-disease-duration.Rmd, lines 707–812 · score 0.68 · disease duration, C1QC, C1QA, C1QB, splicing, correlation
- [11] § Results › Peripheral immune dysregulation in sALS and C9-ALS ↔ analysis_scripts/43.downstream_analysis/43.8.MN_DE.Rmd, lines 1–137 · score 0.66 · IL1B, CCL3L1, innate immune, EGR3, downstream, EGR1
- [12] § Results › Peripheral immune dysregulation in sALS and C9-ALS ↔ figure_scripts/Fig6/Fig6D__MN_DE.Rmd, lines 3–139 · score 0.65 · IL1B, CCL3L1, innate immune, EGR3, EGR1, downstream
- [13] § Results › Gene expression changes and immune-cell dynamics in ALS CNS tissues ↔ correlation-with-disease-duration.Rmd, lines 173–269 · score 0.65 · disease duration, C1QC, C1QA, C1QB, CHIT1, LSP1
- [14] § Results › Regional specificity of inflammatory changes in ALS spinal cord ↔ analysis_scripts/43.downstream_analysis/43.8.MN_DE.Rmd, lines 287–427 · score 0.64 · C1QC, neurofilament, C1QA, C1QB, DNA, slides
- [15] § Methods › GSEA for scRNA-seq ↔ analysis_scripts/08.enrichment_analysis/08.4.fgsea.R, the whole file · a weak match · score 0.64 · minSize, maxSize, fgsea, log10, ranking, human
- [16] § Methods › SP ↔ analysis_scripts/41.space_ranger/41.3.manual_space_ranger.sh, lines 97–161 · score 0.64 · Visium Human Transcriptome, Probe, slides, Profiling, libraries, v2
- [17] § Methods › GSEA for scRNA-seq ↔ analysis_scripts/08.enrichment_analysis/08.4.gsea.Rmd, lines 1–79 · score 0.63 · minSize, maxSize, fgsea, log10, ranking, human
- [18] § Methods › Bulk RNA-seq analysis of NYGC ALS Consortium and Target ALS datasets › Differential expression ↔ Run-DESeq2-all-tissues.R, lines 176–222 · score 0.62 · design matrix, DESeq2, death, sva, FTD, tissue
- [19] § Methods › SP ↔ analysis_scripts/41.space_ranger/41.2.space_ranger_main.sh, lines 4–44 · score 0.62 · Visium Human Transcriptome, CytAssist, Probe, Profiling, v2, Immune
- [20] § Results › Peripheral immune dysregulation in sALS and C9-ALS ↔ analysis_scripts/05.DEG/DEG_plot/05.2.plot_pseudobulk.Rmd, lines 196–298 · score 0.61 · female HC, C1QA, C1QB, C9 ALS, pseudobulk, donor
- [21] § Methods › TDP-43 annotation and differential gene analysis ↔ analysis_scripts/48.tdp43_analysis/48.3.gene_tdp43.Rmd, lines 163–244 · score 0.60 · immediately adjacent spots, neuron enriched spots, anterior horn, TDP, threshold, signal
- [22] § Results › Gene expression changes and immune-cell dynamics in ALS CNS tissues ↔ correlation-with-disease-duration.Rmd, lines 423–481 · score 0.60 · disease duration, changes correlated, immune proportions, immune cell, months, macrophages
- [23] § Methods › Bulk RNA-seq analysis of NYGC ALS Consortium and Target ALS datasets › Quantification of truncated STMN2 ↔ analysis_scripts/21.short_reads_CE/21.1.extract_ALS_HC_target_genes.sh, lines 1–44 · score 0.60 · cryptic exon, E2, E1, STMN2
- [24] § Results › Immune dysregulation associates with ALS spinal cord pathology ↔ analysis_scripts/43.downstream_analysis/43.8.compare_C2L_and_manual_annotation_MN.Rmd, lines 1–137 · score 0.60 · Wilcoxon rank sum, neuron enriched, anterior horn, outside, IQR, median
- [25] § Results › Immune dysregulation associates with ALS spinal cord pathology ↔ figure_scripts/Fig6/Fig6E_MN_pseudobulk.Rmd, lines 1–53 · score 0.60 · C1QC, C1QA, C1QB, anterior horn, Pseudobulk, NEFL
- [26] § Results › Immune dysregulation associates with ALS spinal cord pathology ↔ figure_scripts/Fig6/Fig6E_MN_pseudobulk.Rmd, lines 1–53 · score 0.59 · C1QC, C1QA, C1QB, anterior horn, Pseudobulk, sALS
- [27] § Results › Immune dysregulation associates with ALS spinal cord pathology ↔ analysis_scripts/43.downstream_analysis/non_DE_scripts/49.6.pseudobulk.Rmd, lines 1–51 · score 0.59 · C1QC, C1QA, C1QB, anterior horn, Pseudobulk, NEFL
- [28] § Methods › SP data processing ↔ analysis_scripts/42.spatial_process/42.1.process.Rmd, lines 53–131 · score 0.58 · variable.features.n, SCTransform, SpaceRanger, tissue, spots
- [29] § Results › Peripheral immune dysregulation in sALS and C9-ALS ↔ figure_scripts/FigS1/FigS1K_pseudobulk.Rmd, lines 15–134 · score 0.57 · hollow points, C1QA, C1QB, pseudobulk, donor, CD16
- [30] § Results › Gene expression changes and immune-cell dynamics in ALS CNS tissues ↔ analysis_scripts/48.tdp43_analysis/48.3.gene_tdp43.Rmd, lines 287–369 · score 0.57 · lipid metabolism, C1QB, APOC1, protein, complement, inflammation
- [31] § Results › Regional specificity of inflammatory changes in ALS spinal cord ↔ analysis_scripts/43.downstream_analysis/43.8.compare_C2L_and_manual_annotation_MN.Rmd, lines 1–137 · score 0.56 · Wilcoxon rank sum, neuron enriched, anterior horns, IQR, median, C2L
- [32] § Results › Peripheral immune dysregulation in sALS and C9-ALS ↔ figure_scripts/Fig1/Fig1E_stacked_bar.Rmd, lines 45–174 · score 0.55 · Stacked bar, CRISPR clean, healthy control, TCM, memory, MAIT
- [33] § Results › Regional specificity of inflammatory changes in ALS spinal cord ↔ analysis_scripts/43.downstream_analysis/non_DE_scripts/49.2.zoom_volcano.Rmd, lines 356–485 · score 0.55 · posterior white matter, CHI3L1, anterior horns, sALS, overlap, APOC1
- [34] § Methods › Bulk RNA-seq analysis of NYGC ALS Consortium and Target ALS datasets › Cell-type enrichment ↔ correlation-with-disease-duration.Rmd, lines 271–420 · score 0.54 · FAN_EMBRYONIC_CTX, fgsea, ranked, enrichment, genes
- [35] § Methods › SP data processing ↔ analysis_scripts/41.space_ranger/41.1.batch_space_ranger.sh, the whole file · a weak match · score 0.53 · CytAssist images, Loupe, SpaceRanger, alignment, Genomics, slide
- [36] § Methods › Correlation of gene expression and cell-type changes in ALS with disease duration and age of onset ↔ correlation-with-disease-duration.Rmd, lines 44–171 · score 0.52 · disease duration, correlation, lm, FDR, onset, gene expression
- [37] § Methods › Bulk RNA-seq analysis of NYGC ALS Consortium and Target ALS datasets › Alignment ↔ analysis_scripts/25.reporter/25.1.reporter_expression.sh, the whole file · a weak match · score 0.52 · featureCounts, V38, Gencode, alignment, seq, ALS
- [38] § Results › Regional specificity of inflammatory changes in ALS spinal cord ↔ figure_scripts/Fig1/Fig1E_stacked_bar.Rmd, lines 45–174 · score 0.51 · Wilcoxon rank sum, Stacked bar, healthy controls, CD8, predicted, mapping
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 · 812 lines · 33 KB · no license · 6 matches
- ---
- title: "correlation-with-disease-duration"
- output: html_document
- date: "2025-01-23"
- ---
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = TRUE)
- ```
- ```{R}
- library(tidyverse)
- ```
- ```{R}
- allMD<-read.table("../output/DESeq2/2023/2023-metadata-v2-fixed-filtered.txt", sep="\t", header=T, stringsAsFactors = F, quote="")
- cervMD<-allMD[which(allMD$Sample.Source=="Spinal_Cord_Cervical"),]
- thorMD<-allMD[which(allMD$Sample.Source=="Spinal_Cord_Thoracic"),]
- lumbMD<-allMD[which(allMD$Sample.Source=="Spinal_Cord_Lumbar"),]
- ### Disease Duration
- mdDD<-allMD[,c("ExternalSampleId", "ExternalSubjectId", "Subject.Group2", "Disease.Duration.in.Months")]
- mdDD$Disease.Duration.in.Months<-as.numeric(mdDD$Disease.Duration.in.Months)
- mdDD<-mdDD[!is.na(mdDD$Disease.Duration.in.Months),]
- cervDD<-mdDD[which(mdDD$ExternalSampleId %in% cervMD$ExternalSampleId),]
- thorDD<-mdDD[which(mdDD$ExternalSampleId %in% thorMD$ExternalSampleId),]
- lumbDD<-mdDD[which(mdDD$ExternalSampleId %in% lumbMD$ExternalSampleId),]
- ### Age of onset
- mdSO<-allMD[,c("ExternalSampleId", "ExternalSubjectId", "Subject.Group2", "Age.at.Symptom.Onset")]
- mdSO$Age.at.Symptom.Onset<-as.numeric(mdSO$Age.at.Symptom.Onset)
- mdSO<-mdSO[!is.na(mdSO$Age.at.Symptom.Onset),]
- cervSO<-mdSO[which(mdSO$ExternalSampleId %in% cervMD$ExternalSampleId),]
- ```
- ### Cervical spinal cord
- ```{R}
- ###
- cervCPM<-read.table("../output/DESeq2/2023/sva-vsd/noPrep/disease-groups/TMMCPM/Spinal_Cord_Cervical-AllGroups.vs.Healthy.txt", sep="\t", header=T, stringsAsFactors = F, quote="")
- cervCPM
- corList<-list()
- ddList<-list()
- soList<-list()
- for(i in 1:nrow(cervCPM)){
- thisRow<-cervCPM[i,]
- exprVals<-thisRow[,4:ncol(thisRow)]
- thisRow %>%
- dplyr::select(4:ncol(thisRow)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- corVal<-cor(exprJoined$CPM, exprJoined$Disease.Duration.in.Months)
- corValLog<-cor(exprJoined$logCPM, exprJoined$Disease.Duration.in.Months)
- tmpDF<-data.frame(GeneID=thisRow$ensembl_gene_id, GeneName=thisRow$external_gene_name, corExprDuration=corVal, corLogExprDuration=corValLog)
- corList[[i]]<-tmpDF
- tmpLM<-lm(exprJoined$Disease.Duration.in.Months ~ exprJoined$logCPM)
- tmpLMSum<-summary(tmpLM)
- pVal<-tmpLMSum$coefficients[2,4]
- r2<-tmpLMSum$r.squared
- tmpDF<-data.frame(GeneID=thisRow$ensembl_gene_id, GeneName=thisRow$external_gene_name, corLogExpr=corValLog, R2=r2, pVal=pVal)
- ddList[[i]]<-tmpDF
- thisRow %>%
- dplyr::select(4:ncol(thisRow)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdSO, by=c("Sample"="ExternalSampleId")) -> exprJoined
- corValLog<-cor(exprJoined$logCPM, exprJoined$Age.at.Symptom.Onset)
- tmpLM<-lm(exprJoined$Age.at.Symptom.Onset ~ exprJoined$logCPM)
- tmpLMSum<-summary(tmpLM)
- pVal<-tmpLMSum$coefficients[2,4]
- r2<-tmpLMSum$r.squared
- tmpDF<-data.frame(GeneID=thisRow$ensembl_gene_id, GeneName=thisRow$external_gene_name, corLogExpr=corValLog, R2=r2, pVal=pVal)
- soList[[i]]<-tmpDF
- }
- corDF<-bind_rows(corList)
- write.table(corDF, "../output/expression-disease-correlation/Expression-DiseaseDuration-correlation-v1.txt", sep="\t", col.names = T, row.names = F, quote=F)
- ddDF<-bind_rows(ddList)
- ddDF$FDR<-p.adjust(ddDF$pVal, method = "fdr")
- write.table(ddDF, "../output/expression-disease-correlation/logExpression-DiseaseDuration-correlation-v2.txt", sep="\t", col.names = T, row.names = F, quote=F)
- ddDF %>%
- mutate(color=ifelse(FDR<0.05 & corLogExpr>0, "firebrick3",
- ifelse(FDR<0.05 & corLogExpr<0, "dodgerblue3", "black"))) %>%
- mutate(label=ifelse(FDR<0.05, GeneName, NA)) %>%
- ggplot(aes(x=corLogExpr, y = -log10(FDR), color=color, label=label))+
- #geom_point()+
- geom_point(position = position_jitter(width = 0.025, height = 0.025, seed = 42))+
- ggrepel::geom_text_repel(position = position_jitter(width = 0.025, height = 0.025, seed = 42))+
- theme_classic()+
- scale_color_identity()+
- labs(x="Correlation", y="-log10(FDR)")+
- theme(axis.text = element_text(size = 14),
- axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/Correlation-disease-duration-volcanoPlot.png", width = 8, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/Correlation-disease-duration-volcanoPlot.pdf", width = 8, height = 6)
- ddDF %>%
- mutate(color=ifelse(FDR<0.05 & corLogExpr>0, "firebrick3",
- ifelse(FDR<0.05 & corLogExpr<0, "dodgerblue3", "black"))) %>%
- mutate(label=ifelse(FDR<0.05 & corLogExpr<0, GeneName, NA)) %>%
- ggplot(aes(x=corLogExpr, y = -log10(FDR), color=color, label=label))+
- #geom_point()+
- geom_point(position = position_jitter(width = 0.025, height = 0.025, seed = 42))+
- ggrepel::geom_text_repel(position = position_jitter(width = 0.025, height = 0.025, seed = 42))+
- theme_classic()+
- scale_color_identity()+
- labs(x="Correlation", y="-log10(FDR)")+
- theme(axis.text = element_text(size = 14),
- axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/Correlation-disease-duration-volcanoPlot-v2.png", width = 8, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/Correlation-disease-duration-volcanoPlot-v2.pdf", width = 8, height = 6)
- ###
- soDF<-bind_rows(soList)
- soDF$FDR<-p.adjust(soDF$pVal, method = "fdr")
- write.table(soDF, "../output/expression-disease-correlation/logExpression-AgeOfOnset-correlation.txt", sep="\t", col.names = T, row.names = F, quote=F)
- soDF %>%
- mutate(color=ifelse(FDR<0.05 & corLogExpr>0, "firebrick3",
- ifelse(FDR<0.05 & corLogExpr<0, "dodgerblue3", "black"))) %>%
- mutate(label=ifelse(FDR<0.05, GeneName, NA)) %>%
- ggplot(aes(x=corLogExpr, y = -log10(FDR), color=color, label=label))+
- #geom_point()+
- geom_point(position = position_jitter(width = 0.025, height = 0.025, seed = 42))+
- ggrepel::geom_text_repel(position = position_jitter(width = 0.025, height = 0.025, seed = 42))+
- theme_classic()+
- scale_color_identity()+
- labs(x="Correlation", y="-log10(FDR)")+
- theme(axis.text = element_text(size = 14),
- axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/Correlation-AgeOfOnset-volcanoPlot.png", width = 8, height = 6)
- png("../plots/expression-disease-duration-correlation/Cervical-correlation-with-CPM.png", width = 2400, height = 1600, res = 320)
- hist(corDF$corExprDuration, main = "Correlation of disease duration and gene expression (CPM)", xlab = "Correlation")
- dev.off()
- png("../plots/expression-disease-duration-correlation/Cervical-correlation-with-logCPM.png", width = 2400, height = 1600, res = 320)
- hist(corDF$corLogExprDuration, main = "Correlation of disease duration and gene expression (logCPM)", xlab = "Correlation")
- dev.off()
- ```
- ### Plot 6 genes together
- ```{R}
- ### Plot CHIT1 vs. disease duration
- cervCPM %>%
- dplyr::filter(external_gene_name=="CHIT1") %>%
- dplyr::select(4:ncol(cervCPM)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM.CHIT1=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- chit.dd<-exprJoined
- ### APOC1
- cervCPM %>%
- dplyr::filter(external_gene_name=="APOC1") %>%
- dplyr::select(4:ncol(cervCPM)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM.APOC1=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- apoc.dd<-exprJoined
- ### C1QC
- cervCPM %>%
- dplyr::filter(external_gene_name=="C1QC") %>%
- dplyr::select(4:ncol(cervCPM)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM.C1QC=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- c1qc.dd<-exprJoined
- ### C1QB
- cervCPM %>%
- dplyr::filter(external_gene_name=="C1QB") %>%
- dplyr::select(4:ncol(cervCPM)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM.C1QB=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- c1qb.dd<-exprJoined
- ### C1QA
- cervCPM %>%
- dplyr::filter(external_gene_name=="C1QA") %>%
- dplyr::select(4:ncol(cervCPM)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM.C1QA=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- c1qa.dd<-exprJoined
- ### Add LSP1
- cervCPM %>%
- dplyr::filter(external_gene_name=="LSP1") %>%
- dplyr::select(4:ncol(cervCPM)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM.LSP1=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(mdDD, by=c("Sample"="ExternalSampleId")) -> exprJoined
- lsp.dd<-exprJoined
- cor.test(chit.dd$logCPM.CHIT1, chit.dd$Disease.Duration.in.Months)
- cor.test(lsp.dd$logCPM.LSP1, lsp.dd$Disease.Duration.in.Months)
- geneList<-list(chit.dd, apoc.dd, c1qa.dd, c1qb.dd, c1qc.dd, lsp.dd)
- geneList %>%
- purrr::reduce(inner_join, by=c("Sample", "ExternalSubjectId", "Subject.Group2", "Disease.Duration.in.Months")) -> sixGenes
- sixGenes %>%
- dplyr::select(c("Sample", "ExternalSubjectId", "Subject.Group2", "Disease.Duration.in.Months"), contains("logCPM")) %>%
- pivot_longer(cols = contains("logCPM"), names_to = "gene", values_to = "logCPM") %>%
- mutate(gene = str_sub(gene, start = 8)) %>%
- ggplot(aes(x=Disease.Duration.in.Months, y=logCPM, color=gene))+
- geom_point(size=2, alpha=0.5)+
- geom_smooth(method = "lm", se = F)+
- scale_color_discrete(type = RColorBrewer::brewer.pal(n = 9, name = "Set1"))+
- theme_classic()+
- theme(axis.text = element_text(size=14),
- axis.title = element_text(size = 16))+
- labs(x="Disease duration in months", y = "log2(CPM)", color="Gene")
- ggsave("../plots/expression-disease-duration-correlation/6Genes-and-diseaseDuration-v2.pdf", width = 8, height = 6)
- ```
- ### GSEA using correlation as ranking
- ```{R}
- library(fgsea)
- goAll<-gmtPathways("../../../gsea-dbs/c5.go.v2023.2.Hs.symbols.gmt")
- pathwaysAll<-gmtPathways("../../../gsea-dbs/c2.all.v2023.2.Hs.symbols.gmt")
- cts<-gmtPathways("../../../gsea-dbs/c8.all.v7.5.1.symbols.gmt")
- ranks<-corDF$corLogExprDuration
- names(ranks)<-corDF$GeneName
- ranks<-ranks[!duplicated(names(ranks))]
- gseaRes<-fgseaMultilevel(pathways = c(goAll, pathwaysAll, cts), stats = ranks, eps = 0)
- gseaResOut<-gseaRes
- gseaResOut$leadingEdge<-unlist(lapply(gseaResOut$leadingEdge, FUN = function(x){paste0(x, collapse = ", ")}))
- write.table(gseaResOut, "../output/expression-disease-correlation/logExpression-DiseaseDuration-correlation-GSEA.txt", sep="\t", col.names = T, row.names = F, quote=F)
- gseaRes2<-fgseaMultilevel(pathways = c(goAll, pathwaysAll), stats = ranks, eps = 0)
- gseaRes$forViz<-F
- gseaRes$forViz<-ifelse(grepl(gseaRes$pathway, pattern="^GOBP"), T, gseaRes$forViz)
- gseaRes$forViz<-ifelse(grepl(gseaRes$pathway, pattern="^REACTOME"), T, gseaRes$forViz)
- gseaRes$forViz<-ifelse(grepl(gseaRes$pathway, pattern="^FAN_EMBRYONIC_CTX_"), T, gseaRes$forViz)
- gseaRes$nameForPlot<-gseaRes$pathway
- gseaRes$nameForPlot<-ifelse(grepl(gseaRes$pathway, pattern="^FAN_EMBRYONIC_CTX_"), str_sub(gseaRes$pathway, start = 19), gseaRes$nameForPlot)
- gseaRes$nameForPlot<-ifelse(grepl(gseaRes$pathway, pattern="^GOBP|^REACTOME"), unlist(lapply(str_split(gseaRes$pathway, pattern = "_", n = 2), "[[", 2)), gseaRes$nameForPlot)
- gseaRes$nameForPlot<-str_replace_all(gseaRes$nameForPlot, pattern = "_", replacement = " ")
- gseaRes$type<-"black"
- gseaRes$type<-ifelse(grepl(gseaRes$pathway, pattern="^FAN_EMBRYONIC_CTX_"), "orange", gseaRes$type)
- gseaRes$type<-ifelse(grepl(gseaRes$pathway, pattern="^GOBP"), "red", gseaRes$type)
- gseaRes$type<-ifelse(grepl(gseaRes$pathway, pattern="^REACTOME"), "steelblue", gseaRes$type)
- gseaRes %>%
- dplyr::filter(forViz==T) %>%
- dplyr::filter(NES>0) %>%
- dplyr::arrange(padj) %>%
- dplyr::slice_head(n = 10) %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, -padj), fill= -log10(padj)))+
- geom_bar(stat = "identity")+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 20))+
- theme_classic()+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ggsave("../plots/expression-disease-duration-correlation/terms-with-positive-disease-duration-correlation.pdf", width = 8, height = 6)
- gseaRes %>%
- dplyr::filter(forViz==T) %>%
- dplyr::filter(NES<0) %>%
- dplyr::arrange(padj) %>%
- dplyr::slice_head(n = 10) %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, -padj), fill= -log10(padj)))+
- geom_bar(stat = "identity")+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 20))+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title=element_text(size=16))+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ggsave("../plots/expression-disease-duration-correlation/terms-with-negative-disease-duration-correlation.pdf", width = 8, height = 6)
- gseaRes %>%
- dplyr::filter(forViz==T) %>%
- dplyr::filter(NES<0) %>%
- dplyr::arrange(padj) %>%
- dplyr::slice_head(n = 10) %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, -NES), fill= -log10(padj)))+
- geom_bar(stat = "identity")+
- geom_text(aes(label=signif(padj,3)), hjust = 0)+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 30))+
- theme_classic()+
- scale_fill_distiller(palette = "YlOrRd", direction = 1)+
- theme(axis.text = element_text(size=14), axis.title=element_text(size=16))+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ggsave("../plots/expression-disease-duration-correlation/terms-with-negative-disease-duration-correlation-v2.pdf", width = 8, height = 6)
- plotEnrichment(pathway = cts$FAN_EMBRYONIC_CTX_BIG_GROUPS_MICROGLIA, stats = ranks)+
- labs(x="Rank", y="Enrichment score")
- ggsave("../plots/expression-disease-duration-correlation/GSEA-disease-duration-microglia.png", width = 6, height = 4)
- plotEnrichment(pathway = pathwaysAll$REACTOME_CHOLESTEROL_BIOSYNTHESIS, stats = ranks)+
- labs(x="Rank", y="Enrichment score")
- ggsave("../plots/expression-disease-duration-correlation/GSEA-disease-duration-cholesterol.png", width = 6, height = 4)
- plotEnrichment(pathway = goAll$GOBP_INNATE_IMMUNE_RESPONSE, stats = ranks)
- ###
- gseaRes %>%
- dplyr::filter(forViz==T) %>%
- dplyr::filter(NES>0) %>%
- dplyr::arrange(padj) %>%
- dplyr::slice_head(n = 10) %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, -NES), color= -log10(padj)))+
- #geom_bar(stat = "identity")+
- geom_point(size=3)+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 20))+
- theme_bw()+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ### Combined
- gseaRes %>%
- dplyr::filter(forViz==T) %>%
- dplyr::filter(NES>0) %>%
- dplyr::arrange(padj) %>%
- dplyr::slice_head(n = 10) -> top10
- gseaRes %>%
- dplyr::filter(forViz==T) %>%
- dplyr::filter(NES<0) %>%
- dplyr::arrange(padj) %>%
- dplyr::slice_head(n = 10) -> bottom10
- top20<-rbind(top10, bottom10)
- top20 %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, NES), fill= -log10(padj)))+
- geom_bar(stat = "identity")+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 30))+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title=element_text(size=16))+
- scale_fill_distiller(palette = "YlOrRd")+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ggsave("../plots/expression-disease-duration-correlation/terms-with-both-disease-duration-correlation-v2.pdf", width = 12, height = 12)
- top20 %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, NES), fill= -log10(padj)))+
- geom_bar(stat = "identity")+
- geom_text(aes(label=signif(padj,3)), hjust = 1)+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 30))+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title=element_text(size=16))+
- scale_fill_distiller(palette = "YlOrRd")+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ggsave("../plots/expression-disease-duration-correlation/terms-with-both-disease-duration-correlation-v3.pdf", width = 12, height = 12)
- top20 %>%
- ggplot(aes(x=NES, y=reorder(nameForPlot, -NES), color= -log10(padj)))+
- geom_point()+
- scale_y_discrete(labels = function(x) str_wrap(x, width = 20))+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title=element_text(size=16))+
- #theme(axis.text.y = element_text(color = type))+
- labs(x="NES", y="Term", fill="-log10(FDR)")
- ```
- ### Correlate proportion of immune proportion from figure 2i OR immune cell proportion changes
- ### Correlate proportion of macrophages from CIBERSORT
- ```{R}
- cbProp<-read.table("../output/CIBERSORT/2023/Spinal/CIBERSORTx_Job96_Adjusted_2024Samples_expr0.5-rep25_TMM.txt", sep="\t", header=T, stringsAsFactors = F, quote="")
- cbProp$P.value<-cbProp$Correlation<-cbProp$RMSE<-NULL
- cbProp$immuneCells<-cbProp$Macrophages+cbProp$Microglia+cbProp$ProliferatingMicroglia+cbProp$Lymphocytes
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) -> cbMerge
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$Macrophages)
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$Microglia)
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$Lymphocytes)
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$immuneCells)
- cor(cbMerge$immuneCells, cbMerge$Disease.Duration.in.Months)
- cor(cbMerge$immuneCells2, cbMerge$Disease.Duration.in.Months)
- corVal<-signif(cor(cbMerge$immuneCells, cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge$immuneCells))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(y=immuneCells, x=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", y = 0.4, x = 200, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(y="Proportion of immune cells", x="Disease duration in months", title = "Immune cell proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/immune-cells-and-disease-duration-v2.pdf", width = 8, height = 6)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(y=immuneCells, x=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", y = 0.4, x = 200, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(y="Proportion of immune cells", x="Disease duration in months", title = "Immune cell proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- corValAst<-signif(cor(cbMerge$Astrocytes, cbMerge$Disease.Duration.in.Months), 3)
- pValAst<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge$Astrocytes))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(y=Astrocytes, x=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", y = 0.4, x = 200, label = paste0("r=", corValAst, "\np=", pValAst), size=6)+
- labs(y="Proportion of sstrocytes", x="Disease duration in months", title = "Astrocyte proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ### Age at symptom onset
- cbProp %>%
- inner_join(cervSO, by=c("Mixture"="ExternalSampleId")) -> cbMerge2
- corVal<-signif(cor(cbMerge2$immuneCells, cbMerge2$Age.at.Symptom.Onset), 3)
- pVal<-signif(summary(lm(cbMerge2$Age.at.Symptom.Onset ~ cbMerge2$immuneCells))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervSO, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(y=immuneCells, x=Age.at.Symptom.Onset))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", y = 0.4, x = 75, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(y="Proportion of immune cells", x="Age at Symptom Onset", title = "Immune cell proportion and age of onset")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/immune-cells-and-age-at-symptom-onset.pdf", width = 8, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/immune-cells-and-age-at-symptom-onset.png", width = 8, height = 6)
- ###
- corVal<-signif(cor(cbMerge$immuneCells, cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge$immuneCells))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(y=immuneCells, x=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", y = 0.4, x = 200, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(x="Proportion of immune cells", y="Disease duration in months", title = "Immune cell proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ### Macrophages
- corVal<-signif(cor(cbMerge$Macrophages, cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge$Macrophages))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(x=Macrophages, y=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", x = 0.15, y = 200, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(x="Proportion of macrophages", y="Disease duration in months", title = "Macrophage proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/macrophages-and-disease-duration.pdf", width = 8, height = 6)
- ### microglia
- corVal<-signif(cor(cbMerge$Microglia, cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge$Microglia))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(y=Microglia, x=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", y = 0.15, x = 200, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(y="Proportion of microglia", x="Disease duration in months", title = "Microglia proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/Microglia-and-disease-duration-v2.pdf", width = 8, height = 6)
- ### lymphocytes
- corVal<-signif(cor(cbMerge$Lymphocytes, cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge$Lymphocytes))$coefficients[2,4], 3)
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) %>%
- ggplot(aes(x=Lymphocytes, y=Disease.Duration.in.Months))+
- geom_point()+
- geom_smooth(method="lm")+
- annotate("text", x = 0.05, y = 200, label = paste0("r=", corVal, "\np=", pVal), size=6)+
- labs(x="Proportion of lymphocytes", y="Disease duration in months", title = "Lymphocyte proportion and disease duration")+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))
- ggsave("../plots/expression-disease-duration-correlation/Lymphocytes-and-disease-duration.pdf", width = 8, height = 6)
- ### ALso check age at symptom onset
- ### Check correlation for all cell types
- cbProp %>%
- inner_join(cervDD, by=c("Mixture"="ExternalSampleId")) -> cbMerge
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$Macrophages)
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$Microglia)
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$Lymphocytes)
- cor(cbMerge$Disease.Duration.in.Months, cbMerge$immuneCells)
- cellTypes<-colnames(cbProp)[-1]
- corList<-list()
- for(i in 1:length(cellTypes)){
- thisCt<-cellTypes[i]
- corVal<-signif(cor(cbMerge[,thisCt], cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge[,thisCt]))$coefficients[2,4], 3)
- corTmp<-data.frame(cellType=thisCt,
- correlationWithDiseaseDuration=corVal,
- pVal=pVal)
- corList[[i]]<-corTmp
- }
- #corDf<-bind_rows(corList)
- cervDf<-bind_rows(corList)
- ### Plot all cell types
- cbMerge %>%
- dplyr::select(-ExternalSubjectId, -Subject.Group2) %>%
- pivot_longer(-c(Mixture, Disease.Duration.in.Months), names_to = "cellType", values_to = "proportion") %>%
- ggplot(aes(x=Disease.Duration.in.Months, y=proportion, color=cellType))+
- geom_smooth(method = "lm")
- cbMerge %>%
- dplyr::select(-ExternalSubjectId, -Subject.Group2) %>%
- pivot_longer(-c(Mixture, Disease.Duration.in.Months), names_to = "cellType", values_to = "proportion") %>%
- ggplot(aes(x=Disease.Duration.in.Months, y=proportion, color=cellType))+
- geom_point(size=1, alpha=0.5)+
- geom_smooth(method = "lm", se = F)+
- scale_color_discrete(type = RColorBrewer::brewer.pal(n = 9, name = "Set1"))+
- theme_classic()+
- theme(axis.text = element_text(size=14),
- axis.title = element_text(size = 16))+
- labs(x="Disease duration in months", y = "log2(CPM)", color="Gene")
- ggsave("../plots/expression-disease-duration-correlation/cellTypes-and-diseaseDuration.pdf", width = 8, height = 6)
- ### Lumbar
- cbProp %>%
- inner_join(lumbDD, by=c("Mixture"="ExternalSampleId")) -> cbMerge
- corList<-list()
- for(i in 1:length(cellTypes)){
- thisCt<-cellTypes[i]
- corVal<-signif(cor(cbMerge[,thisCt], cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge[,thisCt]))$coefficients[2,4], 3)
- corTmp<-data.frame(cellType=thisCt,
- correlationWithDiseaseDuration=corVal,
- pVal=pVal)
- corList[[i]]<-corTmp
- }
- lumbDf<-bind_rows(corList)
- ### thoracic
- cbProp %>%
- inner_join(thorDD, by=c("Mixture"="ExternalSampleId")) -> cbMerge
- corList<-list()
- for(i in 1:length(cellTypes)){
- thisCt<-cellTypes[i]
- corVal<-signif(cor(cbMerge[,thisCt], cbMerge$Disease.Duration.in.Months), 3)
- pVal<-signif(summary(lm(cbMerge$Disease.Duration.in.Months ~ cbMerge[,thisCt]))$coefficients[2,4], 3)
- corTmp<-data.frame(cellType=thisCt,
- correlationWithDiseaseDuration=corVal,
- pVal=pVal)
- corList[[i]]<-corTmp
- }
- thorDf<-bind_rows(corList)
- cervDf$tissue<-"Cervical"
- lumbDf$tissue<-"Lumbar"
- thorDf$tissue<-"Thoracic"
- cervDf %>%
- dplyr::mutate(label=paste0("r = ", correlationWithDiseaseDuration, "; p = ", signif(pVal, digits = 3))) %>%
- dplyr::mutate(logP= -log10(pVal)) %>%
- dplyr::mutate(color= logP * sign(correlationWithDiseaseDuration)) %>%
- ggplot(aes(x=1, y=reorder(cellType, correlationWithDiseaseDuration), fill=color, label=label))+
- geom_tile(show.legend = F)+
- geom_text(size = 4)+
- scale_fill_gradient2()+
- labs(y=NULL)+
- theme_classic()+
- theme(axis.title.x = element_blank(),
- axis.ticks.x = element_blank(),
- axis.text.x = element_blank(),
- axis.text.y = element_text(size = 12))
- ggsave("../plots/CIBERSORT/withNYGC/Spinal/Cervical-correlation-with-disease-duration-v2.pdf", width = 4, height = 6)
- ggsave("../plots/CIBERSORT/withNYGC/Spinal/Cervical-correlation-with-disease-duration.png", width = 4, height = 7)
- ggsave("../plots/CIBERSORT/withNYGC/Spinal/Cervical-correlation-with-disease-duration.tiff", width = 4, height = 7)
- ggsave("../plots/CIBERSORT/withNYGC/Spinal/Cervical-correlation-with-disease-duration.svg", width = 4, height = 7)
- ### Horizontal
- cervDf %>%
- dplyr::mutate(label=paste0("r = ", correlationWithDiseaseDuration, "\np = ", signif(pVal, digits = 3))) %>%
- dplyr::mutate(logP= -log10(pVal)) %>%
- dplyr::mutate(color= logP * sign(correlationWithDiseaseDuration)) %>%
- ggplot(aes(x=1, y=reorder(cellType, -correlationWithDiseaseDuration), fill=color, label=label))+
- geom_tile(show.legend = F)+
- geom_text(size = 4)+
- scale_fill_gradient2()+
- labs(y=NULL)+
- coord_flip()+
- theme_classic()+
- theme(axis.title.y = element_blank(),
- axis.ticks.y = element_blank(),
- axis.text.y = element_blank(),
- axis.text.x = element_text(size = 12, angle=30, hjust = 1))
- ggsave("../plots/CIBERSORT/withNYGC/Spinal/Cervical-correlation-with-disease-duration-horiz.pdf", width = 12, height = 2)
- ###
- allDF<-rbind(cervDf, lumbDf, thorDf)
- allDF$fdr<-p.adjust(allDF$pVal, method="fdr")
- allDF$logP<- -log10(allDF$fdr)
- allDF %>%
- dplyr::select(cellType, correlationWithDiseaseDuration, pVal, tissue) %>%
- pivot_wider(names_from = tissue, values_from = c(correlationWithDiseaseDuration, pVal))
- ```
- ### Correlate STMN2 with disease duration or immune cells
- ```{R}
- stmn<-read.table("../output/tdpCounts/junctions/cervical/STMN2-ENSG00000104435.14s79611117-79611214.txt", sep="\t", header=T, stringsAsFactors = F, quote="")
- stmnDF<-data.frame(sample=colnames(stmn)[10:ncol(stmn)],
- correctSplicing=as.numeric(stmn[2,10:ncol(stmn)]),
- incorrectSplicing=as.numeric(stmn[1,10:ncol(stmn)]))
- stmnDF$misspliceProportion<-stmnDF$incorrectSplicing/(stmnDF$incorrectSplicing+stmnDF$correctSplicing)
- stmnDF$tdp<-ifelse(stmnDF$misspliceProportion>0, T, F)
- write.table(stmnDF, "../output/TablesForManuscript/STMN2-missplicing.txt", sep="\t", col.names = T, row.names = F, quote=F)
- ### For Fig 6j
- ### Plot APOC1 vs. STMN
- cervCPM %>%
- dplyr::filter(external_gene_name=="APOC1") %>%
- dplyr::select(4:ncol(thisRow)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(stmnDF, by=c("Sample"="sample")) -> exprSTMN
- exprSTMN %>%
- dplyr::filter(!is.na(tdp)) %>%
- ggplot(aes(x=tdp, y=logCPM))+
- geom_boxplot()+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))+
- ggpubr::stat_compare_means(label.x = 1.2, size=6)+
- labs(x="Has missplicing", y="APOC1 expression (logCPM)")
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-APOC1-binary.png", width = 4, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-APOC1-binary.pdf", width = 4, height = 6)
- ### Plot C1QC vs. STMN
- cervCPM %>%
- dplyr::filter(external_gene_name=="C1QC") %>%
- dplyr::select(4:ncol(thisRow)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(stmnDF, by=c("Sample"="sample")) -> exprSTMN
- exprSTMN %>%
- dplyr::filter(!is.na(tdp)) %>%
- ggplot(aes(x=tdp, y=logCPM))+
- geom_boxplot()+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))+
- ggpubr::stat_compare_means(label.x = 1.2, size=6)+
- labs(x="Has missplicing", y="C1QC expression (logCPM)")
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-C1QC-binary.png", width = 4, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-C1QC-binary.pdf", width = 4, height = 6)
- ### Plot C1QB vs. STMN
- cervCPM %>%
- dplyr::filter(external_gene_name=="C1QB") %>%
- dplyr::select(4:ncol(thisRow)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(stmnDF, by=c("Sample"="sample")) -> exprSTMN
- exprSTMN %>%
- dplyr::filter(!is.na(tdp)) %>%
- ggplot(aes(x=tdp, y=logCPM))+
- geom_boxplot()+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))+
- ggpubr::stat_compare_means(label.x = 1.2, size=6)+
- labs(x="Has missplicing", y="C1QB expression (logCPM)")
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-C1QB-binary.png", width = 4, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-C1QB-binary.pdf", width = 4, height = 6)
- ### Plot C1QA vs. STMN
- cervCPM %>%
- dplyr::filter(external_gene_name=="C1QA") %>%
- dplyr::select(4:ncol(thisRow)) %>%
- t() %>%
- as.data.frame() %>%
- dplyr::rename(CPM=1) %>%
- dplyr::mutate(logCPM=log2(CPM+1)) %>%
- rownames_to_column("Sample") %>%
- inner_join(stmnDF, by=c("Sample"="sample")) -> exprSTMN
- exprSTMN %>%
- dplyr::filter(!is.na(tdp)) %>%
- ggplot(aes(x=tdp, y=logCPM))+
- geom_boxplot()+
- theme_classic()+
- theme(axis.text = element_text(size=14), axis.title = element_text(size=16))+
- ggpubr::stat_compare_means(label.x = 1.2, size=6)+
- labs(x="Has missplicing", y="C1QA expression (logCPM)")
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-C1QA-binary.png", width = 4, height = 6)
- ggsave("../plots/expression-disease-duration-correlation/STMN-missplicing/STMN-proportion-vs-C1QA-binary.pdf", width = 4, height = 6)
- ```
correlation-with-disease-duration.Rmd at commit 2c3b477, no license · at the source
Overview
- Abrams Research Center on Neurogenomics, Feinberg School of Medicine, Northwestern University, Chicago, IL USA
- The Ken & Ruth Davee Department of Neurology, Feinberg School of Medicine, Northwestern University, Chicago, IL USA
- Houston Methodist Neurological Institute, Houston Methodist Research Institute, Stanley H. Appel Department of Neurology, Houston Methodist Hospital, Houston, TX USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 38 matches between paragraphs and lines of code.
gatelabNW/als_immune_public
551577639288550b353df8f00e4cc84324020ffd, 13 May 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
408 files
- analysis_scripts/
00.lib/ , R, 87 linesplot/ ggplot_formatting.R - analysis_scripts/
00.lib/ , R, 131 linesplot/ volcano_plot.R - analysis_scripts/
00.lib/ , R, 29 linesutil/ check_if_GEX_BCR_are_con verted.Rmd - analysis_scripts/
00.lib/ , R, 63 linesutil/ generate_degs.R - analysis_scripts/
00.lib/ , R, 44 linesutil/ run_doubletfinder.R - analysis_scripts/
00.lib/ , Shell, 22 linesutil/ run_seurat2anndata.sh - analysis_scripts/
00.lib/ , R, 19 linesutil/ seurat2anndata.R - analysis_scripts/
00.ref/ , R, 61 linesconfig/ CRISPR_clean_config.R - analysis_scripts/
00.ref/ , R, 61 linesconfig/ immune_panel_config.R - analysis_scripts/
00.ref/ , R, 63 linesconfig/ immune_profiling_config. R - analysis_scripts/
00.ref/ , R, 51 linesconfig/ spatial_config.R - analysis_scripts/
01.cellranger/ , Shell, 35 linescount/ 01.1.cellranger_count.sh - analysis_scripts/
01.cellranger/ , Shell, 78 linescount/ 01.2.crispr_clean_batch_ cellranger_count.sh - analysis_scripts/
01.cellranger/ , Shell, 78 linescount/ 01.3.immune_enriched_bat ch_cellranger_count.sh - analysis_scripts/
01.cellranger/ , Shell, 79 linescount/ 01.4.immune_profile_batc h_cellranger_count.sh - analysis_scripts/
01.cellranger/ , Shell, 79 linescount/ immune_enriched_batch_ce llranger_count.sh - analysis_scripts/
01.cellranger/ , Shell, 79 linescount/ immune_profile_batch_cel lranger_count.sh - analysis_scripts/
01.cellranger/ , Shell, 32 linesvdj/ 01.1.cellranger_vdj.sh - analysis_scripts/
01.cellranger/ , Shell, 68 linesvdj/ 01.2.cellranger_bcr_vdj. sh - analysis_scripts/
01.cellranger/ , Shell, 66 linesvdj/ 01.3.cellranger_tcr_vdj. sh - analysis_scripts/
01.cellranger/ , Shell, 67 linesvdj/ cellranger_bcr_vdj.sh - analysis_scripts/
01.cellranger/ , Shell, 66 linesvdj/ cellranger_tcr_vdj.sh - analysis_scripts/
01.cellranger/ , Shell, 33 linesvdj/ cellranger_vdj.sh - analysis_scripts/
02.quality_control/ , Shell, 28 lines02.1.crispr_clean_run_so upX_gex.sh - analysis_scripts/
02.quality_control/ , R, 83 lines02.1.crispr_clean_soupX_ gex.R - analysis_scripts/
02.quality_control/ , R, 223 lines02.2.crispr_clean_genera l_qc.R - analysis_scripts/
02.quality_control/ , Shell, 26 lines02.2.crispr_clean_run_ge neral_qc.sh - analysis_scripts/
02.quality_control/ , Shell, 27 lines02.3.immune_enriched_run _soupX_gex.sh - analysis_scripts/
02.quality_control/ , R, 83 lines02.3.immune_enriched_sou pX_gex.R - analysis_scripts/
02.quality_control/ , R, 211 lines02.4.immune_enriched_gen eral_qc.R - analysis_scripts/
02.quality_control/ , Shell, 26 lines02.4.immune_enriched_run _general_qc.sh - analysis_scripts/
02.quality_control/ , Shell, 28 lines02.5.immune_profile_run_ soupX_gex.sh - analysis_scripts/
02.quality_control/ , R, 83 lines02.5.immune_profile_soup X_gex.R - analysis_scripts/
02.quality_control/ , R, 210 lines02.6.immune_profile_gene ral_qc.R - analysis_scripts/
02.quality_control/ , Shell, 26 lines02.6.immune_profile_run_ general_qc.sh - analysis_scripts/
02.quality_control/ , R, 49 linesals_QC_test.Rmd - analysis_scripts/
02.quality_control/ , R, 220 linescrispr_clean_general_qc. R - analysis_scripts/
02.quality_control/ , Shell, 25 linescrispr_clean_run_general _qc.sh - analysis_scripts/
02.quality_control/ , Shell, 28 linescrispr_clean_run_soupX_g ex.sh - analysis_scripts/
02.quality_control/ , R, 83 linescrispr_clean_soupX_gex.R - analysis_scripts/
02.quality_control/ , R, 211 linesgeneral_qc.R - analysis_scripts/
02.quality_control/ , R, 212 linesimmune_enriched_general_ qc.R - analysis_scripts/
02.quality_control/ , Shell, 27 linesimmune_enriched_run_gene ral_qc.sh - analysis_scripts/
02.quality_control/ , Shell, 28 linesimmune_enriched_run_soup X_gex.sh - analysis_scripts/
02.quality_control/ , R, 83 linesimmune_enriched_soupX_ge x.R - analysis_scripts/
02.quality_control/ , Shell, 28 linesimmune_profile_run_soupX _gex.sh - analysis_scripts/
02.quality_control/ , R, 83 linesimmune_profile_soupX_gex .R - analysis_scripts/
02.quality_control/ , Shell, 27 linesrun_general_qc.sh - analysis_scripts/
03.correct_CRISPR_sample , R, 16 lines/ 03.1.correct_CRISPR_samp les.Rmd - analysis_scripts/
03.process_vdj_output/ , R, 44 linesadd_contig_clonotype_CRI SPR_clean.R - analysis_scripts/
03.process_vdj_output/ , R, 284 linesadd_contig_clonotype_to_ seurat.R - analysis_scripts/
03.process_vdj_output/ , R, 267 linesals_vdj_test.Rmd - analysis_scripts/
03.process_vdj_output/ , R, 143 linesformat_contigs_and_clono types.R - analysis_scripts/
03.process_vdj_output/ , Shell, 25 linesrun_add_contig_clonotype _to_CRISPR_clean.sh - analysis_scripts/
03.process_vdj_output/ , Shell, 25 linesrun_add_contig_clonotype _to_seurat.sh - analysis_scripts/
03.process_vdj_output/ , Shell, 25 linesrun_format_contigs_and_c lonotypes.sh - analysis_scripts/
04.integration_and_clust , Shell, 26 linesering/ 04.1.crispr_clean_run_st andard_integration_UMAP. sh - analysis_scripts/
04.integration_and_clust , R, 45 linesering/ 04.1.crispr_clean_standa rd_integration_UMAP.R - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ 04.2.crispr_clean_run_sc t_and_assign_labels.sh - analysis_scripts/
04.integration_and_clust , R, 50 lines, 1 matchering/ 04.2.crispr_clean_sct_an d_assign_labels.R - analysis_scripts/
04.integration_and_clust , Shell, 26 linesering/ 04.3.immune_enriched_run _standard_integration_UM AP.sh - analysis_scripts/
04.integration_and_clust , R, 44 linesering/ 04.3.immune_enriched_sta ndard_integration_UMAP.R - analysis_scripts/
04.integration_and_clust , R, 50 lines, 1 matchering/ 04.4.immune_enriched_sct _and_assign_labels.R - analysis_scripts/
04.integration_and_clust , Shell, 26 linesering/ 04.4.immune_enriched_sct _and_assign_labels.sh - analysis_scripts/
04.integration_and_clust , R, 113 linesering/ als_cluster_test.Rmd - analysis_scripts/
04.integration_and_clust , R, 104 linesering/ archive/ cluster_visualizations.R - analysis_scripts/
04.integration_and_clust , R, 26 linesering/ archive/ crispr_clean_remove_non_ bt_cells_w_receptors.R - analysis_scripts/
04.integration_and_clust , Shell, 26 linesering/ archive/ crispr_clean_run_remove_ non_bt_cells_w_receptors .sh - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ crispr_clean_run_sct_and _assign_labels.sh - analysis_scripts/
04.integration_and_clust , Shell, 26 linesering/ archive/ crispr_clean_run_standar d_integration_UMAP.sh - analysis_scripts/
04.integration_and_clust , R, 50 linesering/ archive/ crispr_clean_sct_and_ass ign_labels.R - analysis_scripts/
04.integration_and_clust , R, 44 linesering/ archive/ crispr_clean_standard_in tegration_UMAP.R - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ immune_enriched_run_sct_ and_assign_labels.sh - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ immune_enriched_run_stan dard_integration_UMAP.sh - analysis_scripts/
04.integration_and_clust , R, 51 linesering/ archive/ immune_enriched_sct_and_ assign_labels.R - analysis_scripts/
04.integration_and_clust , R, 53 linesering/ archive/ immune_enriched_standard _integration_UMAP.R - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ immune_profile_run_sct_a nd_assign_labels.sh - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ immune_profile_run_stand ard_integration_UMAP.sh - analysis_scripts/
04.integration_and_clust , R, 65 linesering/ archive/ immune_profile_sct_and_a ssign_labels.R - analysis_scripts/
04.integration_and_clust , R, 51 linesering/ archive/ immune_profile_standard_ integration_UMAP.R - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ run_cluster_visualizatio ns.sh - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ run_sct_and_assign_label s.sh - analysis_scripts/
04.integration_and_clust , Shell, 27 linesering/ archive/ run_standard_integration _UMAP.sh - analysis_scripts/
04.integration_and_clust , R, 65 linesering/ archive/ sct_and_assign_labels.R - analysis_scripts/
04.integration_and_clust , R, 51 linesering/ archive/ standard_integration_UMA P.R - analysis_scripts/
04.seurat_cleanup_and_vi , R, 76 linessualization/ 04.0.add_contig_clonotyp e_CRISPR_clean.R - analysis_scripts/
04.seurat_cleanup_and_vi , Shell, 25 linessualization/ 04.0.run_add_contig_clon otype_to_CRISPR_clean.sh - analysis_scripts/
04.seurat_cleanup_and_vi , Shell, 26 linessualization/ 04.1.crispr_clean_run_re move_non_bt_cells_w_rece ptors.sh - analysis_scripts/
04.seurat_cleanup_and_vi , R, 26 linessualization/ 04.1.remove_non_bt_cells _w_receptors.R - analysis_scripts/
04.seurat_cleanup_and_vi , R, 219 linessualization/ 04.2.check_vdj_concat_on _Seurat.Rmd - analysis_scripts/
04.seurat_cleanup_and_vi , R, 39 linessualization/ 04.3.correct_clonality_c ount_and_clean_meta.Rmd - analysis_scripts/
04.seurat_cleanup_and_vi , R, 119 linessualization/ 04.4.seurat_cluster_vis. Rmd - analysis_scripts/
04.seurat_cleanup_and_vi , R, 180 linessualization/ 04.5.general_vis.Rmd - analysis_scripts/
04.seurat_cleanup_and_vi , R, 23 linessualization/ 04.6.GEO_per_sample_obje ct.Rmd - analysis_scripts/
05.DEG/ , R, 238 linesDEG_plot/ 05.1.zoom_volcano.Rmd - analysis_scripts/
05.DEG/ , R, 968 lines, 1 matchDEG_plot/ 05.2.plot_pseudobulk.Rmd - analysis_scripts/
05.DEG/ , R, 1 lineDEG_plot/ 05.3.celltype_specific_c omparison_upset.Rmd - analysis_scripts/
05.DEG/ , R, 218 linesDEG_plot/ 05.4.DEG_doughnut_chart. Rmd - analysis_scripts/
05.DEG/ , R, 105 linesDEG_plot/ 05.5.upset_all_genes.Rmd - analysis_scripts/
05.DEG/ , R, 46 linesDEG_plot/ 05.6.check_key_genes_whi ch_are_DE.Rmd - analysis_scripts/
05.DEG/ , R, 259 linesDEG_plot/ 05.7.multi-volcano.Rmd - analysis_scripts/
05.DEG/ , R, 120 linesDEG_plot/ 05.8.upset_genes.Rmd - analysis_scripts/
05.DEG/ , R, 81 linesDEG_plot/ DEG_heatmap.Rmd - analysis_scripts/
05.DEG/ , R, 76 linesDEG_plot/ compare_10x_crispr_deg.R md - analysis_scripts/
05.DEG/ , R, 199 linesDEG_plot/ crispr_clean_plot_upset. R - analysis_scripts/
05.DEG/ , R, 33 linesDEG_plot/ explore_genes.Rmd - analysis_scripts/
05.DEG/ , R, 149 linesDEG_plot/ immune_enriched_plot_ups et.R - analysis_scripts/
05.DEG/ , R, 149 linesDEG_plot/ immune_profile_plot_upse t.R - analysis_scripts/
05.DEG/ , R, 163 linescrispr_clean_DEG/ 01.differential_expressi on_diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ 01.run_differential_expr ession_diagnosis_general .sh - analysis_scripts/
05.DEG/ , R, 152 linescrispr_clean_DEG/ 02.differential_expressi on_c9_female_healthy_onl y.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ 02.run_differential_expr ession_c9_female_healthy _only.sh - analysis_scripts/
05.DEG/ , R, 161 linescrispr_clean_DEG/ 03.differential_expressi on_diagnosis.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ 03.run_differential_expr ession_diagnosis.sh - analysis_scripts/
05.DEG/ , R, 158 linescrispr_clean_DEG/ 04.differential_expressi on_sALS.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ 04.run_differential_expr ession_sALS.sh - analysis_scripts/
05.DEG/ , R, 901 linescrispr_clean_DEG/ 05.3.multi_volcano.Rmd - analysis_scripts/
05.DEG/ , R, 96 linescrispr_clean_DEG/ RE_test.Rmd - analysis_scripts/
05.DEG/ , R, 94 linescrispr_clean_DEG/ V5_SCT_DE_test.Rmd - analysis_scripts/
05.DEG/ , R, 129 linescrispr_clean_DEG/ archive/ differential_expression_ c9_female_healthy_only.R - analysis_scripts/
05.DEG/ , R, 129 linescrispr_clean_DEG/ archive/ differential_expression_ diagnosis.R - analysis_scripts/
05.DEG/ , R, 130 linescrispr_clean_DEG/ archive/ differential_expression_ diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ archive/ run_differential_express ion_c9_female_healthy_on ly.sh - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ archive/ run_differential_express ion_diagnosis.sh - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG/ archive/ run_differential_express ion_diagnosis_general.sh - analysis_scripts/
05.DEG/ , R, 47 linescrispr_clean_DEG/ pseudobulk_test.Rmd - analysis_scripts/
05.DEG/ , R, 106 linescrispr_clean_DEG_RE/ 05.1.differential_expres sion_diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 23 linescrispr_clean_DEG_RE/ 05.1.run.sh - analysis_scripts/
05.DEG/ , Shell, 27 linescrispr_clean_DEG_RE/ 05.1.submit.sh - analysis_scripts/
05.DEG/ , R, 140 linescrispr_clean_DEG_adaptiv e_only/ 01.differential_expressi on_diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG_adaptiv e_only/ 01.run_differential_expr ession_diagnosis_general .sh - analysis_scripts/
05.DEG/ , R, 141 linescrispr_clean_DEG_adaptiv e_only/ 02.differential_expressi on_c9_female_healthy_onl y.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG_adaptiv e_only/ 02.run_differential_expr ession_c9_female_healthy _only.sh - analysis_scripts/
05.DEG/ , R, 140 linescrispr_clean_DEG_adaptiv e_only/ 03.differential_expressi on_diagnosis.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG_adaptiv e_only/ 03.run_differential_expr ession_diagnosis.sh - analysis_scripts/
05.DEG/ , R, 144 linescrispr_clean_DEG_adaptiv e_only/ 04.differential_expressi on_sALS.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG_adaptiv e_only/ 04.run_differential_expr ession_sALS.sh - analysis_scripts/
05.DEG/ , R, 140 linescrispr_clean_DEG_adaptiv e_only/ adaptive_only_test.Rmd - analysis_scripts/
05.DEG/ , R, 167 linescrispr_clean_DEG_clonal_ only/ 02.differential_expressi on_c9_female_healthy_onl y.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG_clonal_ only/ 02.run_differential_expr ession_c9_female_healthy _only.sh - analysis_scripts/
05.DEG/ , R, 167 linescrispr_clean_DEG_clonal_ only/ 04.differential_expressi on_sALS.R - analysis_scripts/
05.DEG/ , Shell, 24 linescrispr_clean_DEG_clonal_ only/ 04.run_differential_expr ession_sALS.sh - analysis_scripts/
05.DEG/ , R, 172 linescrispr_clean_DEG_clonal_ only/ clonal_only_test.Rmd - analysis_scripts/
05.DEG/ , R, 154 linesimmune_enriched_DEG/ 01.differential_expressi on_diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 24 linesimmune_enriched_DEG/ 01.run_differential_expr ession_diagnosis_general .sh - analysis_scripts/
05.DEG/ , R, 157 linesimmune_enriched_DEG/ 02.differential_expressi on_c9_female_healthy_onl y.R - analysis_scripts/
05.DEG/ , Shell, 24 linesimmune_enriched_DEG/ 02.run_differential_expr ession_c9_female_healthy _only.sh - analysis_scripts/
05.DEG/ , R, 159 linesimmune_enriched_DEG/ 03.differential_expressi on_diagnosis.R - analysis_scripts/
05.DEG/ , Shell, 24 linesimmune_enriched_DEG/ 03.run_differential_expr ession_diagnosis.sh - analysis_scripts/
05.DEG/ , R, 156 linesimmune_enriched_DEG/ 04.differential_expressi on_sALS_healthy.R - analysis_scripts/
05.DEG/ , Shell, 24 linesimmune_enriched_DEG/ 04.run_differential_expr ession_sALS_healthy.sh - analysis_scripts/
05.DEG/ , R, 113 linesimmune_enriched_DEG/ archive/ differential_expression_ c9_female_healthy_only.R - analysis_scripts/
05.DEG/ , R, 108 linesimmune_enriched_DEG/ archive/ differential_expression_ diagnosis.R - analysis_scripts/
05.DEG/ , R, 109 linesimmune_enriched_DEG/ archive/ differential_expression_ diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 25 linesimmune_enriched_DEG/ archive/ run_differential_express ion_c9_female_healthy_on ly.sh - analysis_scripts/
05.DEG/ , Shell, 25 linesimmune_enriched_DEG/ archive/ run_differential_express ion_diagnosis.sh - analysis_scripts/
05.DEG/ , Shell, 25 linesimmune_enriched_DEG/ archive/ run_differential_express ion_diagnosis_general.sh - analysis_scripts/
05.DEG/ , R, 113 linesimmune_profile_DEG/ differential_expression_ c9_female_healthy_only.R - analysis_scripts/
05.DEG/ , R, 108 linesimmune_profile_DEG/ differential_expression_ diagnosis.R - analysis_scripts/
05.DEG/ , R, 107 linesimmune_profile_DEG/ differential_expression_ diagnosis_general.R - analysis_scripts/
05.DEG/ , Shell, 25 linesimmune_profile_DEG/ run_differential_express ion_c9_female_healthy_on ly.sh - analysis_scripts/
05.DEG/ , Shell, 25 linesimmune_profile_DEG/ run_differential_express ion_diagnosis.sh - analysis_scripts/
05.DEG/ , Shell, 25 linesimmune_profile_DEG/ run_differential_express ion_diagnosis_general.sh - analysis_scripts/
05.Libra_DEG/ , R, 22 lines05.1.Libra_test.Rmd - analysis_scripts/
05.differential_cell_typ , R, 188 linese/ 05.1.normalized_differen tial_celltype.R - analysis_scripts/
05.differential_cell_typ , Shell, 18 linese/ 05.1.run_normalized_diff erential_broad_celltype. sh - analysis_scripts/
05.differential_cell_typ , R, 188 linese/ 05.2.normalized_differen tial_broad_celltype.R - analysis_scripts/
05.differential_cell_typ , Shell, 18 linese/ 05.2.run_normalized_diff erential_celltype.sh - analysis_scripts/
05.differential_cell_typ , R, 83 linese/ differential_cell_type_t est.Rmd - analysis_scripts/
06.adaptive_clonal_analy , R, 143 linessis/ 06.1.adaptive_tcr.R - analysis_scripts/
06.adaptive_clonal_analy , R, 160 linessis/ 06.1.clonal_visualizatio n.Rmd - analysis_scripts/
06.adaptive_clonal_analy , R, 192 linessis/ 06.2.clonality_all_genes .R - analysis_scripts/
06.adaptive_clonal_analy , Shell, 25 linessis/ 06.2.run.sh - analysis_scripts/
06.adaptive_clonal_analy , R, 347 linessis/ adaptive_tcr_expansion.R md - analysis_scripts/
06.adaptive_clonal_analy , R, 300 linessis/ adaptive_tcr_norm_freq.R md - analysis_scripts/
06.adaptive_clonal_analy , R, 236 linessis/ clonal_genes_bubble_plot .Rmd - analysis_scripts/
06.sc_clonal_analysis/ , R, 78 lines06.1.correct_post_QC_rec eptor_count.R - analysis_scripts/
06.sc_clonal_analysis/ , Shell, 16 lines06.1.run_correct_post_QC _receptor_count.sh - analysis_scripts/
06.sc_clonal_analysis/ , R, 1 line06.2.check_TRB_correlati on_with_gene.Rmd - analysis_scripts/
07.crispr_clean_10X_comp , R, 244 lines/ 07.1.metrics_comp.Rmd - analysis_scripts/
07.crispr_clean_10X_comp , R, 124 lines/ 07.2.barcodes_correction _for_CRISPR_w_10X.Rmd - analysis_scripts/
08.enrichment_analysis/ , Jupyter, 175 lines.ipynb_checkpoints/ decoupleR_py-checkpoint. ipynb - analysis_scripts/
08.enrichment_analysis/ , R, 22 lines08.1.decoupleR.R - analysis_scripts/
08.enrichment_analysis/ , R, 74 lines08.1.decoupleR.Rmd - analysis_scripts/
08.enrichment_analysis/ , Shell, 21 lines08.1.run_decoupleR.sh - analysis_scripts/
08.enrichment_analysis/ , Python, 114 lines08.2.decoupler_py.py - analysis_scripts/
08.enrichment_analysis/ , Shell, 20 lines08.2.run_decoupler_py.sh - analysis_scripts/
08.enrichment_analysis/ , R, 120 lines08.3.visualize_decoupler .Rmd - analysis_scripts/
08.enrichment_analysis/ , R, 67 lines, 1 match08.4.fgsea.R - analysis_scripts/
08.enrichment_analysis/ , R, 145 lines, 1 match08.4.gsea.Rmd - analysis_scripts/
08.enrichment_analysis/ , Shell, 25 lines08.4.run.sh - analysis_scripts/
08.enrichment_analysis/ , Jupyter, 182 linesdecoupleR_py.ipynb - analysis_scripts/
09.cellchat/ , R, 33 lines09.5.hc_vis.Rmd - analysis_scripts/
09.cellchat/ , R, 199 lines09.6.cc_v2.Rmd - analysis_scripts/
09.cellchat/ , R, 68 linescrispr_clean/ 09.1.Rmd - analysis_scripts/
09.cellchat/ , R, 51 linescrispr_clean/ 09.1.hc.R - analysis_scripts/
09.cellchat/ , Shell, 23 linescrispr_clean/ 09.1.hc.sh - analysis_scripts/
09.cellchat/ , R, 51 linescrispr_clean/ 09.2.als.R - analysis_scripts/
09.cellchat/ , Shell, 24 linescrispr_clean/ 09.2.als.sh - analysis_scripts/
09.cellchat/ , R, 53 linescrispr_clean/ 09.2.sALS.R - analysis_scripts/
09.cellchat/ , Shell, 24 linescrispr_clean/ 09.2.sALS.sh - analysis_scripts/
09.cellchat/ , R, 51 linescrispr_clean/ 09.3.female_hc.R - analysis_scripts/
09.cellchat/ , Shell, 24 linescrispr_clean/ 09.3.female_hc.sh - analysis_scripts/
09.cellchat/ , R, 51 linescrispr_clean/ 09.4.c9_als.R - analysis_scripts/
09.cellchat/ , Shell, 24 linescrispr_clean/ 09.4.c9_als.sh - analysis_scripts/
09.cellchat/ , R, 56 linesimmune_enriched/ 09.1.hc.R - analysis_scripts/
09.cellchat/ , Shell, 24 linesimmune_enriched/ 09.1.hc.sh - analysis_scripts/
09.cellchat/ , R, 54 linesimmune_enriched/ 09.2.als.R - analysis_scripts/
09.cellchat/ , Shell, 24 linesimmune_enriched/ 09.2.als.sh - analysis_scripts/
09.cellchat/ , R, 54 linesimmune_enriched/ 09.2.sALS.R - analysis_scripts/
09.cellchat/ , Shell, 24 linesimmune_enriched/ 09.2.sALS.sh - analysis_scripts/
09.cellchat/ , R, 52 linesimmune_enriched/ 09.3.female_hc.R - analysis_scripts/
09.cellchat/ , Shell, 24 linesimmune_enriched/ 09.3.female_hc.sh - analysis_scripts/
09.cellchat/ , R, 52 linesimmune_enriched/ 09.4.c9_als.R - analysis_scripts/
09.cellchat/ , Shell, 24 linesimmune_enriched/ 09.4.c9_als.sh - analysis_scripts/
10.cross_assay_DE_compar , R, 57 linesison/ 10.1.compare_DEs.Rmd - analysis_scripts/
12.FRS_analysis/ , R, 105 lines12.1.FRS.Rmd - analysis_scripts/
20.ONT_basecall/ , Shell, 22 lines20.1.ONT_basecall.sh - analysis_scripts/
20.ONT_basecall/ , Shell, 45 lines20.2.batch_basecall.sh - analysis_scripts/
20.ONT_basecall/ , Shell, 22 lines20.3.run_batch_basecall. sh - analysis_scripts/
20.ONT_basecall/ , Shell, 19 lines20.4.benny_basecall.sh - analysis_scripts/
20.ONT_basecall/ , Shell, 43 lines20.5.benny_batch_basecal l.sh - analysis_scripts/
20.build_CE_reference/ , Shell, 18 lines01.build_LIQA.sh - analysis_scripts/
20.build_CE_reference/ , Shell, 18 lines01.build_ref.sh - analysis_scripts/
20.isolate_reads/ , Shell, 107 lines20.1.search_reads_parall el.sh - analysis_scripts/
21.short_reads_CE/ , Shell, 98 lines, 1 match21.1.extract_ALS_HC_targ et_genes.sh - analysis_scripts/
21.short_reads_CE/ , R, 77 lines21.2.extract_celltype_sp ecific_barcodes.R - analysis_scripts/
21.short_reads_CE/ , R, 42 lines21.2.group_cell_barcodes .Rmd - analysis_scripts/
21.short_reads_CE/ , Shell, 25 lines21.2.run_extract_celltyp e_specific_barcodes.sh - analysis_scripts/
21.short_reads_CE/ , Shell, 72 lines21.3.batch_subset_cellty pe_specific_reads.sh - analysis_scripts/
21.short_reads_CE/ , Shell, 134 lines21.3.subset_celltype_spe cific_reads_per_conditio n.sh - analysis_scripts/
21.short_reads_CE/ , Shell, 70 lines21.4.run_subset_celltype _specific_reads_per_cond ition.sh - analysis_scripts/
22.ONT_preprocess/ , Shell, 50 lines22.1.batch_scanner.sh - analysis_scripts/
22.ONT_preprocess/ , Shell, 28 lines22.2.run_batch_scanner.s h - analysis_scripts/
22.ONT_preprocess/ , Shell, 22 lines22.3.fastqc_all_repeats. sh - analysis_scripts/
22.ONT_preprocess/ , Shell, 20 lines22.4.fastqc_all.sh - analysis_scripts/
23.CB_collapse/ , Shell, 28 lines23.1.run_assigner.sh - analysis_scripts/
23.CB_collapse/ , Shell, 43 lines23.2.batch_assigner.sh - analysis_scripts/
23.CB_collapse/ , Shell, 21 lines23.3.run_batch_assigner. sh - analysis_scripts/
24.CB_alignment/ , Shell, 41 lines24.1.run_curator.sh - analysis_scripts/
24.CB_alignment/ , Shell, 41 lines24.1.run_curator_highmem .sh - analysis_scripts/
24.CB_alignment/ , Shell, 41 lines24.1.run_curator_long.sh - analysis_scripts/
24.CB_alignment/ , Shell, 44 lines24.2.run_curator_no_cons ensus.sh - analysis_scripts/
24.CB_alignment/ , Shell, 55 lines24.3.batch_curator_no_co nsensus.sh - analysis_scripts/
24.CB_alignment/ , Shell, 54 lines24.4.run_batch_curator.s h - analysis_scripts/
24.CB_pseudobulk/ , Shell, 129 lines24.1.pseudobulk_celltype .sh - analysis_scripts/
24.CB_pseudobulk/ , Shell, 72 lines24.2.pseudobulk_sample.s h - analysis_scripts/
24.CB_pseudobulk/ , R, 69 lines24.3.check_ONT_sc_barcod e_overlap.Rmd - analysis_scripts/
25.ONT_isoform/ , R, 70 lines25.1.IQ_prep.Rmd - analysis_scripts/
25.ONT_isoform/ , Shell, 25 lines25.2.ymal_prep.sh - analysis_scripts/
25.ONT_isoform/ , Shell, 25 lines25.3.single_isoquant.sh - analysis_scripts/
25.ONT_isoform/ , Shell, 48 lines25.4.batch_isoquant.sh - analysis_scripts/
25.ONT_isoform/ , R, 89 lines25.4.celltype_specific_I Q_prep.Rmd - analysis_scripts/
25.ONT_isoform/ , Shell, 10 lines25.4.submit.sh - analysis_scripts/
25.ONT_isoform/ , Shell, 15 lines25.5.visualize_Isoquant. sh - analysis_scripts/
25.ONT_isoform/ , Shell, 35 lines25.9.ONT_isoform.sh - analysis_scripts/
25.reporter/ , Shell, 27 lines, 1 match25.1.reporter_expression .sh - analysis_scripts/
30.shiny_cell/ , R, 76 lines30.shiny_cell.R - analysis_scripts/
30.shiny_cell/ , R, 21 lines30.shiny_cell.Rmd - analysis_scripts/
30.shiny_cell/ , Shell, 17 lines30.shiny_cell.sh - analysis_scripts/
40.spatial_reference/ , Jupyter, 231 lines.ipynb_checkpoints/ training-checkpoint.ipyn b - analysis_scripts/
40.spatial_reference/ , R, 168 lines40.2.prep_spatial_refere nce.Rmd - analysis_scripts/
40.spatial_reference/ , R, 69 lines40.3.convert_seurat_to_a nndata.R - analysis_scripts/
40.spatial_reference/ , Shell, 22 lines40.3.run_convert_seurat_ to_anndata.sh - analysis_scripts/
40.spatial_reference/ , Shell, 20 lines40.4.run_train_ref_model .sh - analysis_scripts/
40.spatial_reference/ , Python, 113 lines, 1 match40.4.train_ref_model.py - analysis_scripts/
40.spatial_reference/ , R, 21 lines40.5.save_postQC_barcode s.Rmd - analysis_scripts/
40.spatial_reference/ , R, 66 lines40.spatial_reference.Rmd - analysis_scripts/
40.spatial_reference/ , R, 54 lines40.spatial_reference_shi ny.R - analysis_scripts/
40.spatial_reference/ , Shell, 17 lines40.spatial_reference_shi ny.sh - analysis_scripts/
40.spatial_reference/ , Jupyter, 248 lines, 1 matchtraining.ipynb - analysis_scripts/
41.space_ranger/ , Shell, 56 lines, 1 match41.1.batch_space_ranger. sh - analysis_scripts/
41.space_ranger/ , Shell, 169 lines, 1 match41.2.space_ranger_main.s h - analysis_scripts/
41.space_ranger/ , Shell, 161 lines, 1 match41.3.manual_space_ranger .sh - analysis_scripts/
42.spatial_process/ , R, 145 lines, 1 match42.1.process.Rmd - analysis_scripts/
42.spatial_process/ , Shell, 23 lines42.1.run_spatial_process .sh - analysis_scripts/
42.spatial_process/ , R, 152 lines42.1.spatial_process.R - analysis_scripts/
42.spatial_process/ , R, 139 lines42.2.plot_seurat_and_cvt _adata.Rmd - analysis_scripts/
42.spatial_process/ , R, 283 lines42.3.add_manual_anno.Rmd - analysis_scripts/
42.spatial_process/ , R, 490 lines42.4.add_IF.Rmd - analysis_scripts/
42.spatial_process/ , R, 58 lines42.5.output_distance_map _motor_neuron.Rmd - analysis_scripts/
42.spatial_process/ , R, 54 lines42.6.ALS_GWAS_vis.Rmd - analysis_scripts/
42.spatial_process/ , R, 71 lines42.7.spatialdimplot_mast er.Rmd - analysis_scripts/
42.spatial_process/ , R, 213 lines42.8.corr_transcriptiona l_signature.Rmd - analysis_scripts/
43.downstream_analysis/ , Shell, 19 lines43.1.run.sh - analysis_scripts/
43.downstream_analysis/ , R, 151 lines43.1.spatial_DE.R - analysis_scripts/
43.downstream_analysis/ , R, 90 lines43.1.spatial_DE.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 167 lines43.2.random_effect_DE.Rm d - analysis_scripts/
43.downstream_analysis/ , R, 150 lines43.2.re_DE_condition_gen eral.R - analysis_scripts/
43.downstream_analysis/ , Shell, 23 lines43.2.run.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 11 lines43.2.submit.sh - analysis_scripts/
43.downstream_analysis/ , R, 136 lines43.3.re_DE_c9_control.R - analysis_scripts/
43.downstream_analysis/ , Shell, 23 lines43.3.run.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 11 lines43.3.submit.sh - analysis_scripts/
43.downstream_analysis/ , R, 167 lines43.4.re_DE_condition_gen eral_manual_annotation.R - analysis_scripts/
43.downstream_analysis/ , Shell, 31 lines43.4.run.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 8 lines43.4.submit.sh - analysis_scripts/
43.downstream_analysis/ , R, 151 lines43.5.re_DE_c9_hc_manual_ annotation.R - analysis_scripts/
43.downstream_analysis/ , R, 155 lines43.5.re_DE_sALS_hc_manua l_annotation.R - analysis_scripts/
43.downstream_analysis/ , Shell, 25 lines43.5.run.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 29 lines43.5.run_C9.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 27 lines43.5.run_sALS.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 8 lines43.5.submit.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 8 lines43.5.submit_C9.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 8 lines43.5.submit_sALS.sh - analysis_scripts/
43.downstream_analysis/ , R, 154 lines43.6.all_ALS_hc__c2l_enr iched_RE_DE.R - analysis_scripts/
43.downstream_analysis/ , R, 173 lines43.6.c2l_enriched_RE_DE. R - analysis_scripts/
43.downstream_analysis/ , R, 27 lines43.6.c2l_enriched_RE_DE. Rmd - analysis_scripts/
43.downstream_analysis/ , R, 164 lines43.6.c2l_enriched_RE_DE_ reverse.R - analysis_scripts/
43.downstream_analysis/ , R, 154 lines43.6.c9_hc__c2l_enriched _RE_DE.R - analysis_scripts/
43.downstream_analysis/ , Shell, 23 lines43.6.run.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 23 lines43.6.run2.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 28 lines43.6.run_all_als_hc_c2l. sh - analysis_scripts/
43.downstream_analysis/ , Shell, 28 lines43.6.run_c9_hc_c2l.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 27 lines43.6.run_sALS_hc_c2l.sh - analysis_scripts/
43.downstream_analysis/ , R, 154 lines43.6.sALS_hc__c2l_enrich ed_RE_DE.R - analysis_scripts/
43.downstream_analysis/ , Shell, 15 lines43.6.submit.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 15 lines43.6.submit2.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 14 lines43.6.submit_all_als_hc__ c2l.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 14 lines43.6.submit_c9_hc__c2l.s h - analysis_scripts/
43.downstream_analysis/ , Shell, 14 lines43.6.submit_sALS_hc__c2l .sh - analysis_scripts/
43.downstream_analysis/ , R, 219 lines43.7.MAP2_C2L_DE.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 821 lines, 3 matches43.8.MN_DE.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 193 lines, 2 matches43.8.compare_C2L_and_man ual_annotation_MN.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 136 lines43.9.re_DE_sALS_C9_manua l_annotation.R - analysis_scripts/
43.downstream_analysis/ , Shell, 26 lines43.9.run.sh - analysis_scripts/
43.downstream_analysis/ , Shell, 6 lines43.9.submit.sh - analysis_scripts/
43.downstream_analysis/ , R, 31 linesnon_DE_scripts/ 49.1.basic_volcano.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 486 lines, 1 matchnon_DE_scripts/ 49.2.zoom_volcano.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 168 linesnon_DE_scripts/ 49.3.scatter_pies.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 112 linesnon_DE_scripts/ 49.4.gsea.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 526 linesnon_DE_scripts/ 49.5.upset.Rmd - analysis_scripts/
43.downstream_analysis/ , R, 183 lines, 1 matchnon_DE_scripts/ 49.6.pseudobulk.Rmd - analysis_scripts/
44.spatial_model/ , Jupyter, 59 lines.ipynb_checkpoints/ 41.1.spatial_model_test- checkpoint.ipynb - analysis_scripts/
44.spatial_model/ , Jupyter, 68 lines.ipynb_checkpoints/ 44.0.spatial_model_test- checkpoint.ipynb - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.0.run_step1.sh - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.0.run_step1_ah_map2.s h - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.0.run_step1_ah_mn.sh - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.0.run_step1_mn_tracin g.sh - analysis_scripts/
44.spatial_model/ , Jupyter, 72 lines44.0.spatial_model_test. ipynb - analysis_scripts/
44.spatial_model/ , Python, 124 lines44.0.step1.py - analysis_scripts/
44.spatial_model/ , Python, 124 lines44.0.step1_ah_map2.py - analysis_scripts/
44.spatial_model/ , Python, 124 lines44.0.step1_ah_mn.py - analysis_scripts/
44.spatial_model/ , Python, 122 lines44.0.step1_mn_tracing.py - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.1.run_step2.sh - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.1.run_step2_ah_map2.s h - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.1.run_step2_ah_mn.sh - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.1.run_step2_mn_tracin g.sh - analysis_scripts/
44.spatial_model/ , Python, 85 lines44.1.step2.py - analysis_scripts/
44.spatial_model/ , Python, 85 lines44.1.step2_ah_map2.py - analysis_scripts/
44.spatial_model/ , Python, 85 lines44.1.step2_ah_mn.py - analysis_scripts/
44.spatial_model/ , Python, 85 lines44.1.step2_mn_tracing.py - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.9.run_train_c2l_model _on_ref.sh - analysis_scripts/
44.spatial_model/ , Python, 62 lines44.9.train_c2l_model_on_ ref.py - analysis_scripts/
44.spatial_model/ , Shell, 20 lines44.92.run_train_c2l_mode l_on_ref.sh - analysis_scripts/
44.spatial_model/ , Python, 62 lines44.92.train_c2l_model_on _ref.py - analysis_scripts/
45.deconvolution_analysi , Jupyter, 43 liness/ 45.2.extract_c2l_meta.ip ynb - analysis_scripts/
45.deconvolution_analysi , R, 434 liness/ 45.2.quantile_c2l_spots. Rmd - analysis_scripts/
45.deconvolution_analysi , R, 140 liness/ 45.3.plot_enriched_spots .Rmd - analysis_scripts/
45.deconvolution_analysi , R, 237 liness/ 45.4.quantify_c2l_ct_enr ichment.Rmd - analysis_scripts/
45.deconvolution_analysi , R, 166 liness/ 45.5.microglia_state.Rmd - analysis_scripts/
46.IF_analysis/ , R, 69 lines46.1.load_IF_signal_to_o bject.Rmd - analysis_scripts/
46.IF_analysis/ , R, 165 lines46.2.IF_correlation.Rmd - analysis_scripts/
46.IF_analysis/ , R, 162 lines46.3.IBA1.Rmd - analysis_scripts/
46.IF_analysis/ , R, 138 lines46.9.IF_correlation_test .Rmd - analysis_scripts/
47.protein_panel_analysi , R, 62 liness/ 47.0.create_protein_obje ct.R - analysis_scripts/
47.protein_panel_analysi , Shell, 18 liness/ 47.0.create_protein_obje ct.sh - analysis_scripts/
47.protein_panel_analysi , R, 1,066 lines, 1 matchs/ 47.1.protein_analysis.Rm d - analysis_scripts/
48.tdp43_analysis/ , R, 377 lines48.1.tdp43.Rmd - analysis_scripts/
48.tdp43_analysis/ , R, 206 lines48.2.protein_tdp43.Rmd - analysis_scripts/
48.tdp43_analysis/ , R, 794 lines, 4 matches48.3.gene_tdp43.Rmd - analysis_scripts/
48.tdp43_analysis/ , R, 254 lines48.4.correlation_study.R md - analysis_scripts/
48.tdp43_analysis/ , R, 235 lines48.5.visualize_expressio n_with_tdp43.Rmd - figure_scripts/
Fig1/ , R, 84 linesFig1D_umap.Rmd - figure_scripts/
Fig1/ , R, 287 lines, 2 matchesFig1E_stacked_bar.Rmd - figure_scripts/
Fig1/ , R, 206 linesFig1F_upset.Rmd - figure_scripts/
Fig1/ , R, 723 linesFig1G-H_C9orf72.Rmd - figure_scripts/
Fig1/ , R, 241 linesFig1I-J_doughnut.Rmd - figure_scripts/
Fig1/ , R, 260 linesFig1K_upset_shared_DEG.R md - figure_scripts/
Fig2/ , R, 225 linesFig2A-D_multivolcano.Rmd - figure_scripts/
Fig2/ , R, 968 linesFig2C_pseudobulk.Rmd - figure_scripts/
Fig2/ , R, 405 linesFig2F_GSEA.Rmd - figure_scripts/
Fig5/ , R, 141 linesFig5B_annotation.Rmd - figure_scripts/
Fig5/ , R, 143 linesFig5C_upset.Rmd - figure_scripts/
Fig5/ , R, 164 linesFig5D_volcano.Rmd - figure_scripts/
Fig5/ , R, 97 linesFig5E_C2L_anno.Rmd - figure_scripts/
Fig5/ , R, 116 linesFig5F_boxplot.Rmd - figure_scripts/
Fig5/ , R, 170 linesFig5G_volcano.Rmd - figure_scripts/
Fig5/ , R, 148 linesFig5H_protein_volcano.Rm d - figure_scripts/
Fig6/ , R, 229 linesFig6A-B_MN_marker.Rmd - figure_scripts/
Fig6/ , R, 59 linesFig6C_MN_enrichment.Rmd - figure_scripts/
Fig6/ , R, 295 lines, 1 matchFig6D__MN_DE.Rmd - figure_scripts/
Fig6/ , R, 190 lines, 2 matchesFig6E_MN_pseudobulk.Rmd - figure_scripts/
Fig6/ , R, 237 linesFig6H_tdp43.Rmd - figure_scripts/
Fig6/ , R, 349 linesFig6I_TDP43_DE.Rmd - figure_scripts/
FigS1/ , R, 102 linesFigS1B-C.Rmd - figure_scripts/
FigS1/ , R, 48 linesFigS1D-E-F-G_violin.Rmd - figure_scripts/
FigS1/ , R, 58 linesFigS1H_bubble.Rmd - figure_scripts/
FigS1/ , R, 256 linesFigS1I-M_GSEA.Rmd - figure_scripts/
FigS1/ , R, 113 linesFigS1J_upset.Rmd - figure_scripts/
FigS1/ , R, 134 lines, 1 matchFigS1K_pseudobulk.Rmd - figure_scripts/
FigS2/ , R, 206 linesFigS2A_upset.Rmd - figure_scripts/
FigS2/ , R, 95 linesFigS2B_volcano.Rmd - figure_scripts/
FigS2/ , R, 160 linesFigS2C_clonal_proportion .Rmd - figure_scripts/
FigS2/ , R, 89 linesFigS2D_differential_TCR. Rmd - figure_scripts/
FigS6/ , R, 155 linesFigS6D_stacked_bar.Rmd - figure_scripts/
FigS6/ , R, 127 linesFigS6F_upset.Rmd - README.md, Text, 6 lines
KiskinisLab/TargetALS-BulkAnalysis
2c3b47718aa1c3bf562dfd2a1edf61c765e5d84e, 13 March 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
4 files
- Run-DESeq2-all-tissues.R
, R, 366 lines, 1 match - correlation-with-disease
-duration.Rmd , R, 812 lines, 6 matches - long-short-disease-durat
ion-analysis.Rmd , R, 372 lines - README.md, Text, 8 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: gatelabNW/
als_immune_public , KiskinisLab/TargetALS-BulkAnalysis
Read it in the paper: doi.org/10.1038/s41593-026-02300-5.
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;
- 410 scripts, each with its path and the digest of its content;
- 38 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
- geo:GSE288365, at NCBI GEO; found in “Data availability”
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to a dataset: NCBI GEO GSE288365
- it says that the data are available on request
Read it in the paper: doi.org/10.1038/s41593-026-02300-5.
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
- Publisher: n/a → Nature Portfolio
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 18 authors, 2 keywords, 12 MeSH terms, 6 funders, 84 references.
Cite
This paper
Zhang, Z., van Olst, L., Alessandrini, F., Wright, M., Edwards, A. J., Boles, J., Nalbandian, A., Forsyth, A. V., Shepard, N., Watson, T., Kaspi, E., Mittal, A., Kuruvilla, J., Piehl, N., Ramakrishnan, A., Appel, S., Kiskinis, E., & Gate, D. (2026). Integrated single-cell and spatial transcriptomic profiling in ALS uncovers peripheral-to-central immune infiltration and reprogramming. Nature neuroscience, 29(7), 1735-1748. https://
BibTeX
@article{zhang2026integr
author = {Zhang, Ziyang and van Olst, Lynn and Alessandrini, Francesco and Wright, Matthew and Edwards, Alex J and Boles, Jake and Nalbandian, Anait and Forsyth, Anne V and Shepard, Nate and Watson, Thomas and Kaspi, Evan and Mittal, Angeli and Kuruvilla, Joshua and Piehl, Natalie and Ramakrishnan, Abhirami and Appel, Stanley and Kiskinis, Evangelos and Gate, David},
title = {{Integrated single-cell and spatial transcriptomic profiling in ALS uncovers peripheral-to-central immune infiltration and reprogramming}},
journal = {Nature neuroscience},
year = {2026},
month = may,
volume = {29},
number = {7},
pages = {1735--1748},
publisher = {Nature Portfolio},
issn = {1097-6256},
doi = {10.1038/
url = {https://
pmid = {42135512},
pmcid = {PMC13337491}
}
RIS
TY - JOUR
AU - Zhang, Ziyang
AU - van Olst, Lynn
AU - Alessandrini, Francesco
AU - Wright, Matthew
AU - Edwards, Alex J
AU - Boles, Jake
AU - Nalbandian, Anait
AU - Forsyth, Anne V
AU - Shepard, Nate
AU - Watson, Thomas
AU - Kaspi, Evan
AU - Mittal, Angeli
AU - Kuruvilla, Joshua
AU - Piehl, Natalie
AU - Ramakrishnan, Abhirami
AU - Appel, Stanley
AU - Kiskinis, Evangelos
AU - Gate, David
TI - Integrated single-cell and spatial transcriptomic profiling in ALS uncovers peripheral-to-central immune infiltration and reprogramming
T2 - Nature neuroscience
J2 - Nat Neurosci
PY - 2026
DA - 2026/
VL - 29
IS - 7
SP - 1735
EP - 1748
SN - 1097-6256
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Integrated single-cell and spatial transcriptomic profiling in ALS uncovers peripheral-to-central immune infiltration and reprogramming",
"container-title": "Nature neuroscience",
"author": [
{
"family": "Zhang",
"given": "Ziyang"
},
{
"family": "van Olst",
"given": "Lynn"
},
{
"family": "Alessandrini",
"given": "Francesco"
},
{
"family": "Wright",
"given": "Matthew"
},
{
"family": "Edwards",
"given": "Alex J"
},
{
"family": "Boles",
"given": "Jake"
},
{
"family": "Nalbandian",
"given": "Anait"
},
{
"family": "Forsyth",
"given": "Anne V"
},
{
"family": "Shepard",
"given": "Nate"
},
{
"family": "Watson",
"given": "Thomas"
},
{
"family": "Kaspi",
"given": "Evan"
},
{
"family": "Mittal",
"given": "Angeli"
},
{
"family": "Kuruvilla",
"given": "Joshua"
},
{
"family": "Piehl",
"given": "Natalie"
},
{
"family": "Ramakrishnan",
"given": "Abhirami"
},
{
"family": "Appel",
"given": "Stanley"
},
{
"family": "Kiskinis",
"given": "Evangelos"
},
{
"family": "Gate",
"given": "David"
}
],
"container-title-short":
"volume": "29",
"issue": "7",
"page": "1735-1748",
"DOI": "10.1038/
"PMID": "42135512",
"PMCID": "PMC13337491",
"ISSN": "1097-6256",
"publisher": "Nature Portfolio",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
14
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41586-026-10214-2 [code]
- Multidimensional profiling of heterogeneity in supratentorial ependymomas.Journal: NatureIn common: Cell Ranger, Squidpy, Harmony, 22 other tools, genetics / omics, other condition
- [2] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: Harmony, edgeR, car, 21 other tools, genetics / omics, other condition, cellular / molecular, 1 reference
- [3] doi:10.1002/imt2.70163 [code]
- Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.Journal: iMetaIn common: Harmony, edgeR, anndata, 20 other tools, genetics / omics, cellular / molecular, 1 reference
- [4] doi:10.1038/s41467-026-69944-6 [code]
- Multi-modal dissection of cell-type specific TDP-43 pathology in the motor cortex.Journal: Nature communicationsIn common: SAMtools, igraph, circlize, 15 other tools, genetics / omics, other condition, 6 references
- [5] doi:10.1016/j.xcrm.2026.102651 [code]
- Integrative CSF profiling identifies disease-specific immune responses in leptomeningeal disease.Journal: Cell reports. MedicineIn common: Harmony, anndata, igraph, 19 other tools, genetics / omics, other condition, cellular / molecular, 1 reference
- [6] doi:10.1093/bioinformatics/btag592 [code]
- Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.Journal: Bioinformatics (Oxford, England)In common: FastQC, SAMtools, edgeR, 19 other tools, genetics / omics, other condition
- [7] doi:10.1038/s41467-026-73305-8 [code]
- Comparative analysis of the cellular landscape in mammalian striatum.Journal: Nature communicationsIn common: Cell Ranger, Harmony, SAMtools, 17 other tools, genetics / omics, cellular / molecular
- [8] doi:10.1186/s13059-026-04177-w [code]
- Genomic sequence evolution underlying human neocortical interareal diversification.Journal: Genome biologyIn common: Squidpy, SAMtools, anndata, 17 other tools, genetics / omics, cellular / molecular, 1 reference
- [9] doi:10.1016/j.cell.2026.05.047 [code]
- An emergent disease-associated motor neuron state precedes cell death in ALS.Journal: CellIn common: Squidpy, anndata, DESeq2, 11 other tools, genetics / omics, other condition, cellular / molecular, 6 references
- [10] doi:10.3389/fnmol.2026.1844705 [code]
- Risperidone regulates the expression of schizophrenia-related genes in the forebrain of adult male mice.Journal: Frontiers in molecular neuroscienceIn common: SAMtools, edgeR, anndata, 18 other tools, genetics / omics, 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: 2 repositories of the authors' code, each at its verified commit and with its license, 410 scripts, and 38 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:1fee130bc0532067…
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.
