CD40 activation and the effect on Neutrophils
<p>##### CD40 activation and the effect on Neutrophils</p><p> </p><p> </p><p># Load necessary libraries for data manipulation, analysis, and visualization</p><p>library(dplyr)</p><p>library(Seurat)</p><p>library(patchwork)</p><p>library(plyr)</p><p> </p><p># Set the working directory to the folder containing the data</p><p>setwd("C:/Users/ALL/sciebo - Lang, Alexander (allan101@uni-duesseldorf.de)@uni-duesseldorf.sciebo.de/ALL_NGS/scRNAseq/scRNAseq/05_FGK45 Wirkung auf Neutros - scRNAseq/938-1_cellranger_count/outs")</p><p># Read the M0 dataset from the 10X Genomics format</p><p>pbmc.data <- Read10X(data.dir = "filtered_feature_bc_matrix/")</p><p> </p><p>RNA <- pbmc.data$`Gene Expression`</p><p> </p><p>ADT <- pbmc.data$`Antibody Capture`</p><p> </p><p>HST <- pbmc.data$`Multiplexing Capture`</p><p> </p><p> </p><p># Load the Matrix package</p><p>library(Matrix)</p><p> </p><p># Hashtag 1, 2 and 3 are marking the organs (heart, blood, spleen)</p><p># Subset the rows based on row names</p><p>subsetted_rows <- c("TotalSeq-B0301", "TotalSeq-B0302", "TotalSeq-B0303")</p><p>animals_data <- HST[subsetted_rows, , drop = FALSE]</p><p> </p><p># Hashtag 4, 5, 6, 7 are representing IgG_1, IgG_1, FGK45_1 and FGK45_1</p><p>subsetted_rows <- c("TotalSeq-B0304", "TotalSeq-B0305", "TotalSeq-B0306", "TotalSeq-B0307")</p><p>treatment_data <- HST[subsetted_rows, , drop = FALSE]</p><p> </p><p>#Create a Seurat obeject and more assays to combine later</p><p>RNA <- CreateSeuratObject(counts = RNA)</p><p>ADT <- CreateAssayObject(counts = ADT)</p><p>Organ <- CreateAssayObject(counts = animals_data)</p><p>Treatment <- CreateAssayObject(counts = treatment_data)</p><p> </p><p> </p><p>seurat <- RNA</p><p> </p><p>#Add the Assays</p><p>seurat[["ADT"]] <- ADT</p><p> </p><p>seurat[["HST_Mice"]] <- Organ</p><p> </p><p>seurat[["HST_Treatment"]] <- Treatment</p><p> </p><p>#Check for AK Names</p><p>rownames(seurat[["ADT"]])</p><p> </p><p>#Cluster cells on the basis of their scRNA-seq profiles</p><p># perform visualization and clustering steps</p><p>DefaultAssay(seurat) <- "RNA"</p><p>seurat <- NormalizeData(seurat)</p><p>seurat <- FindVariableFeatures(seurat)</p><p>seurat <- ScaleData(seurat)</p><p>seurat <- RunPCA(seurat, verbose = FALSE)</p><p>seurat <- FindNeighbors(seurat, dims = 1:30)</p><p>seurat <- FindClusters(seurat, resolution = 0.8, verbose = FALSE)</p><p>seurat <- RunUMAP(seurat, dims = 1:30)</p><p>DimPlot(seurat, label = TRUE)</p><p> </p><p>FeaturePlot(seurat, features = "S100a9", order = T)</p><p> </p><p># Normalize ADT data,</p><p>DefaultAssay(seurat) <- "ADT"</p><p>seurat <- NormalizeData(seurat, normalization.method = "CLR", margin = 2)</p><p> </p><p>#Demultiplex cells based on Mouse_Hashtag Enrichment</p><p>seurat <- NormalizeData(seurat, assay = "HST_Mice", normalization.method = "CLR")</p><p>seurat <- HTODemux(seurat, assay = "HST_Mice", positive.quantile = 0.99)</p><p> </p><p> </p><p>#Visualize demultiplexing results</p><p># Global classification results</p><p>table(seurat$HST_Mice_classification.global)</p><p> </p><p>DimPlot(seurat, group.by = "HST_Mice_classification")</p><p> </p><p> </p><p>#Demultiplex cells based on Treatment_Hashtag Enrichment</p><p>seurat <- NormalizeData(seurat, assay = "HST_Treatment", normalization.method = "CLR")</p><p>seurat <- HTODemux(seurat, assay = "HST_Treatment", positive.quantile = 0.99)</p><p> </p><p> </p><p>#Visualize demultiplexing results</p><p># Global classification results</p><p>table(seurat$HST_Treatment_classification.global)</p><p> </p><p>DimPlot(seurat, group.by = "HST_Treatment_classification")</p><p> </p><p>Idents(seurat) <- seurat$HST_Treatment_classification</p><p>pbmc.singlet <- subset(seurat, idents = "Negative", invert = T)</p><p>Idents(pbmc.singlet) <- pbmc.singlet$HST_Mice_classification</p><p>pbmc.singlet <- subset(pbmc.singlet, idents = "Negative", invert = T)</p><p> </p><p>DimPlot(pbmc.singlet, group.by = "HST_Treatment_maxID")</p><p> </p><p>#Redo the clssification to remove the doublettes</p><p>pbmc.singlet <- HTODemux(pbmc.singlet, assay = "HST_Treatment", positive.quantile = 0.99)</p><p>table(pbmc.singlet$HST_Treatment_classification.global)</p><p> </p><p>DimPlot(pbmc.singlet, group.by = "HST_Treatment_classification")</p><p>pbmc.singlet <- subset(pbmc.singlet, idents = "Doublet", invert = T)</p><p> </p><p> </p><p>pbmc.singlet <- HTODemux(pbmc.singlet, assay = "HST_Mice", positive.quantile = 0.99)</p><p>table(pbmc.singlet$HST_Mice_classification.global)</p><p>pbmc.singlet <- subset(pbmc.singlet, idents = "Doublet", invert = T)</p><p> </p><p>pbmc.singlet <- HTODemux(pbmc.singlet, assay = "HST_Mice", positive.quantile = 0.60)</p><p>pbmc.singlet <- HTODemux(pbmc.singlet, assay = "HST_Treatment", positive.quantile = 0.60)</p><p>DimPlot(pbmc.singlet, group.by = "HST_Treatment_maxID")</p><p>DimPlot(pbmc.singlet, group.by = "HST_Mice_maxID")</p><p> </p><p> </p><p>seurat <- pbmc.singlet</p><p> </p><p>seurat$organ <- seurat$HST_Mice_maxID</p><p>seurat$mouse <- seurat$HST_Treatment_maxID</p><p>seurat$treatment <- seurat$HST_Treatment_maxID</p><p> </p><p> </p><p>library(plyr)</p><p>seurat$treatment <- revalue(seurat$treatment, c(</p><p> "TotalSeq-B0304" = "IgG",</p><p> "TotalSeq-B0305" = "IgG",</p><p> "TotalSeq-B0306" = "FGK45",</p><p> "TotalSeq-B0307" = "FGK45"</p><p>))</p><p> </p><p>library(plyr)</p><p>seurat$organ <- revalue(seurat$organ, c(</p><p> "TotalSeq-B0301" = "heart",</p><p> "TotalSeq-B0302" = "blood",</p><p> "TotalSeq-B0303" = "spleen"</p><p>))</p><p> </p><p>seurat$mouse <- revalue(seurat$mouse, c(</p><p> "TotalSeq-B0304" = "1",</p><p> "TotalSeq-B0305" = "2",</p><p> "TotalSeq-B0306" = "3",</p><p> "TotalSeq-B0307" = "4"</p><p>))</p><p> </p><p> </p><p>#Cluster cells on the basis of their scRNA-seq profiles without doublettes</p><p># perform visualization and clustering steps</p><p>DefaultAssay(seurat) <- "RNA"</p><p>seurat <- NormalizeData(seurat)</p><p>seurat <- FindVariableFeatures(seurat)</p><p>seurat <- ScaleData(seurat)</p><p>seurat <- RunPCA(seurat, verbose = FALSE)</p><p>seurat <- FindNeighbors(seurat, dims = 1:30)</p><p>seurat <- FindClusters(seurat, resolution = 0.8, verbose = FALSE)</p><p>seurat <- RunUMAP(seurat, dims = 1:30)</p><p>DimPlot(seurat, label = TRUE)</p><p> </p><p> </p><p>DefaultAssay(seurat) <- "ADT"</p><p>seurat <- NormalizeData(seurat, normalization.method = "CLR", margin = 2)</p><p>setwd("C:/Users/ALL/sciebo - Lang, Alexander (allan101@uni-duesseldorf.de)@uni-duesseldorf.sciebo.de/ALL_NGS/scRNAseq/scRNAseq/05_FGK45 Wirkung auf Neutros - scRNAseq/Analyse")</p><p> </p><p> </p><p>saveRDS(seurat, file = "FGK45_heart_blood_spleen.v0.1.RDS")</p><p> </p>
ShareScore
16/100
Overall dataset sharing score
Score breakdown
These five areas show where the dataset supports — or may limit — practical reuse.
- Stewardship
- 4
- Harmonization
- 4
- Access
- 8
- Reuse readiness
- 0
- Engagement
- 0