Skip to main content
zenodorestricted

CD40 activation and the effect on Neutrophils

<p>##### CD40 activation and the effect on Neutrophils</p><p>&nbsp;</p><p>&nbsp;</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>&nbsp;</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 &lt;- Read10X(data.dir = "filtered_feature_bc_matrix/")</p><p>&nbsp;</p><p>RNA &lt;- pbmc.data$`Gene Expression`</p><p>&nbsp;</p><p>ADT &lt;- pbmc.data$`Antibody Capture`</p><p>&nbsp;</p><p>HST &lt;- pbmc.data$`Multiplexing Capture`</p><p>&nbsp;</p><p>&nbsp;</p><p># Load the Matrix package</p><p>library(Matrix)</p><p>&nbsp;</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 &lt;- c("TotalSeq-B0301", "TotalSeq-B0302", "TotalSeq-B0303")</p><p>animals_data &lt;- HST[subsetted_rows, , drop = FALSE]</p><p>&nbsp;</p><p># Hashtag 4, 5, 6, 7 are representing IgG_1, IgG_1, FGK45_1 and FGK45_1</p><p>subsetted_rows &lt;- c("TotalSeq-B0304", "TotalSeq-B0305", "TotalSeq-B0306", "TotalSeq-B0307")</p><p>treatment_data &lt;- HST[subsetted_rows, , drop = FALSE]</p><p>&nbsp;</p><p>#Create a Seurat obeject and more assays to combine later</p><p>RNA &lt;- CreateSeuratObject(counts = RNA)</p><p>ADT &lt;- CreateAssayObject(counts = ADT)</p><p>Organ &lt;- CreateAssayObject(counts = animals_data)</p><p>Treatment &lt;- CreateAssayObject(counts = treatment_data)</p><p>&nbsp;</p><p>&nbsp;</p><p>seurat &lt;- RNA</p><p>&nbsp;</p><p>#Add the Assays</p><p>seurat[["ADT"]] &lt;- ADT</p><p>&nbsp;</p><p>seurat[["HST_Mice"]] &lt;- Organ</p><p>&nbsp;</p><p>seurat[["HST_Treatment"]] &lt;- Treatment</p><p>&nbsp;</p><p>#Check for AK Names</p><p>rownames(seurat[["ADT"]])</p><p>&nbsp;</p><p>#Cluster cells on the basis of their scRNA-seq profiles</p><p># perform visualization and clustering steps</p><p>DefaultAssay(seurat) &lt;- "RNA"</p><p>seurat &lt;- NormalizeData(seurat)</p><p>seurat &lt;- FindVariableFeatures(seurat)</p><p>seurat &lt;- ScaleData(seurat)</p><p>seurat &lt;- RunPCA(seurat, verbose = FALSE)</p><p>seurat &lt;- FindNeighbors(seurat, dims = 1:30)</p><p>seurat &lt;- FindClusters(seurat, resolution = 0.8, verbose = FALSE)</p><p>seurat &lt;- RunUMAP(seurat, dims = 1:30)</p><p>DimPlot(seurat, label = TRUE)</p><p>&nbsp;</p><p>FeaturePlot(seurat, features = "S100a9", order = T)</p><p>&nbsp;</p><p># Normalize ADT data,</p><p>DefaultAssay(seurat) &lt;- "ADT"</p><p>seurat &lt;- NormalizeData(seurat, normalization.method = "CLR", margin = 2)</p><p>&nbsp;</p><p>#Demultiplex cells based on Mouse_Hashtag Enrichment</p><p>seurat &lt;- NormalizeData(seurat, assay = "HST_Mice", normalization.method = "CLR")</p><p>seurat &lt;- HTODemux(seurat, assay = "HST_Mice", positive.quantile = 0.99)</p><p>&nbsp;</p><p>&nbsp;</p><p>#Visualize demultiplexing results</p><p># Global classification results</p><p>table(seurat$HST_Mice_classification.global)</p><p>&nbsp;</p><p>DimPlot(seurat, group.by = "HST_Mice_classification")</p><p>&nbsp;</p><p>&nbsp;</p><p>#Demultiplex cells based on Treatment_Hashtag Enrichment</p><p>seurat &lt;- NormalizeData(seurat, assay = "HST_Treatment", normalization.method = "CLR")</p><p>seurat &lt;- HTODemux(seurat, assay = "HST_Treatment", positive.quantile = 0.99)</p><p>&nbsp;</p><p>&nbsp;</p><p>#Visualize demultiplexing results</p><p># Global classification results</p><p>table(seurat$HST_Treatment_classification.global)</p><p>&nbsp;</p><p>DimPlot(seurat, group.by = "HST_Treatment_classification")</p><p>&nbsp;</p><p>Idents(seurat) &lt;- seurat$HST_Treatment_classification</p><p>pbmc.singlet &lt;- subset(seurat, idents = "Negative", invert = T)</p><p>Idents(pbmc.singlet) &lt;- pbmc.singlet$HST_Mice_classification</p><p>pbmc.singlet &lt;- subset(pbmc.singlet, idents = "Negative", invert = T)</p><p>&nbsp;</p><p>DimPlot(pbmc.singlet, group.by = "HST_Treatment_maxID")</p><p>&nbsp;</p><p>#Redo the clssification to remove the doublettes</p><p>pbmc.singlet &lt;- HTODemux(pbmc.singlet, assay = "HST_Treatment", positive.quantile = 0.99)</p><p>table(pbmc.singlet$HST_Treatment_classification.global)</p><p>&nbsp;</p><p>DimPlot(pbmc.singlet, group.by = "HST_Treatment_classification")</p><p>pbmc.singlet &lt;- subset(pbmc.singlet, idents = "Doublet", invert = T)</p><p>&nbsp;</p><p>&nbsp;</p><p>pbmc.singlet &lt;- HTODemux(pbmc.singlet, assay = "HST_Mice", positive.quantile = 0.99)</p><p>table(pbmc.singlet$HST_Mice_classification.global)</p><p>pbmc.singlet &lt;- subset(pbmc.singlet, idents = "Doublet", invert = T)</p><p>&nbsp;</p><p>pbmc.singlet &lt;- HTODemux(pbmc.singlet, assay = "HST_Mice", positive.quantile = 0.60)</p><p>pbmc.singlet &lt;- 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>&nbsp;</p><p>&nbsp;</p><p>seurat &lt;- pbmc.singlet</p><p>&nbsp;</p><p>seurat$organ &lt;- seurat$HST_Mice_maxID</p><p>seurat$mouse &lt;- seurat$HST_Treatment_maxID</p><p>seurat$treatment &lt;- seurat$HST_Treatment_maxID</p><p>&nbsp;</p><p>&nbsp;</p><p>library(plyr)</p><p>seurat$treatment &lt;- revalue(seurat$treatment, c(</p><p>&nbsp;"TotalSeq-B0304" = "IgG",</p><p>&nbsp;"TotalSeq-B0305" = "IgG",</p><p>&nbsp;"TotalSeq-B0306" = "FGK45",</p><p>&nbsp;"TotalSeq-B0307" = "FGK45"</p><p>))</p><p>&nbsp;</p><p>library(plyr)</p><p>seurat$organ &lt;- revalue(seurat$organ, c(</p><p>&nbsp;"TotalSeq-B0301" = "heart",</p><p>&nbsp;"TotalSeq-B0302" = "blood",</p><p>&nbsp;"TotalSeq-B0303" = "spleen"</p><p>))</p><p>&nbsp;</p><p>seurat$mouse &lt;- revalue(seurat$mouse, c(</p><p>&nbsp;"TotalSeq-B0304" = "1",</p><p>&nbsp;"TotalSeq-B0305" = "2",</p><p>&nbsp;"TotalSeq-B0306" = "3",</p><p>&nbsp;"TotalSeq-B0307" = "4"</p><p>))</p><p>&nbsp;</p><p>&nbsp;</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) &lt;- "RNA"</p><p>seurat &lt;- NormalizeData(seurat)</p><p>seurat &lt;- FindVariableFeatures(seurat)</p><p>seurat &lt;- ScaleData(seurat)</p><p>seurat &lt;- RunPCA(seurat, verbose = FALSE)</p><p>seurat &lt;- FindNeighbors(seurat, dims = 1:30)</p><p>seurat &lt;- FindClusters(seurat, resolution = 0.8, verbose = FALSE)</p><p>seurat &lt;- RunUMAP(seurat, dims = 1:30)</p><p>DimPlot(seurat, label = TRUE)</p><p>&nbsp;</p><p>&nbsp;</p><p>DefaultAssay(seurat) &lt;- "ADT"</p><p>seurat &lt;- 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>&nbsp;</p><p>&nbsp;</p><p>saveRDS(seurat, file = "FGK45_heart_blood_spleen.v0.1.RDS")</p><p>&nbsp;</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