Skip to main content
zenodorestricted

TSd5.RDS - CD40 inhibiton in AMI on d5, seq on d7 and d14

<p>##### CD40 inhibiton in AMI on d5, seq on d7 and d14</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/01_TS_d5_paper/03_CD40 inhibition on day 5, seq on day 7 and 14/938-2_cellranger_count/outs")</p><p>&nbsp;</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 mouse replicates per condition</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 DMSO d7, TS d7, DMSO d14 and TS d14</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>Mice &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;- Mice</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 = "Col1a1", 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.60)</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.60)</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$mice &lt;- seurat$HST_Mice_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" = "DMSO_d7",</p><p>&nbsp;"TotalSeq-B0305" = "TS_d7",</p><p>&nbsp;"TotalSeq-B0306" = "DMSO_d14",</p><p>&nbsp;"TotalSeq-B0307" = "TS_d14"</p><p>))</p><p>&nbsp;</p><p>library(plyr)</p><p>seurat$mice &lt;- revalue(seurat$mice, c(</p><p>&nbsp;"TotalSeq-B0301" = "1",</p><p>&nbsp;"TotalSeq-B0302" = "2",</p><p>&nbsp;"TotalSeq-B0303" = "3"</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/01_TS_d5_paper/03_CD40 inhibition on day 5, seq on day 7 and 14/Analyse")</p><p>&nbsp;</p><p>saveRDS(seurat, file= "TSd5.v0.1.RDS")</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</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

Dataset details

Repository
zenodo
Published
October 16, 2023
License
cc-by-4.0
DOI
10.5281/zenodo.10015470

Scored with release 0.9.0

ScienceDex for faculty

Your academic CV and NIH biosketch

Make your CV in your school's format and your NIH biosketch from it, then download both as Word files.