seurat subset multiple conditions

4c). Colors indicate Bm cell subsets. Cheers, all look forward to learning more on this when the devs respond. *P<0.05, **P<0.01, ***P<0.001, ****P<0.0001. a, Sorting strategy for SARS-CoV-2 S+ Bm cells and S B cells, gated on CD19+ non-PB, for scRNA-seq is provided. 7, 83848410 (2021). Immunol. ident.use = NULL, ## [109] vctrs_0.5.2 mutoss_0.1-12 pillar_1.8.1 How to retrieve multidimensional data from CSV file? How can I find help page about "%in%"? BCR-seq showed similar SHM counts in SWT+ Bm cells in blood and tonsils (Fig. The flow cytometry dataset is available upon request from the corresponding authors. When comparing dataset quality, we noticed a markedly lower median gene detection and unique molecular identifier count per cell in one of our datasets of the SARS-CoV-2 Infection Cohort. J. Exp. Lau, D. et al. In e, two-sided Wilcoxon rank sum test was used and P values corrected by Bonferroni correction. ## [11] ifnb.SeuratData_3.1.0 hcabm40k.SeuratData_3.0.0 18, e1009885 (2022). Kim, W. et al. b, Cohort overview of SARS-CoV-2 Tonsil Cohort. c, Frequency of S+ Bm cells in total B cells was measured by flow cytometry at acute infection (n=59) and months 6 (n=61) and 12 post-infection (n=17). seurat_object <- subset (seurat_object, subset = DF.classifications_0.25_0.03_252 == 'Singlet') #this approach works I would like to automate this process but the _0.25_0.03_252 of DF.classifications_0.25_0.03_252 is based on values that are calculated and will not be known in advance. high.threshold = Inf, 64). Nucleic Acids Res. The flow cytometry and scRNA-seq subcohort characteristics are presented in Supplementary Tables 1 and 2, respectively. Altogether, these observations indicated that antigen reexposure by SARS-CoV-2 vaccination of SARS-CoV-2-recovered and SARS-CoV-2-vaccinated individuals stimulated S+ CD21CD27+ and CD21CD27 Bm cells. Med. CD21 Bm cells were the predominant subsets during acute infection and early after severe acute respiratory syndrome coronavirus 2-specific immunization. Find centralized, trusted content and collaborate around the technologies you use most. ## Heat maps were generated using the ComplexHeatmap package (v2.13.1) or pheatmap package (v1.0.12) (ref. Otherwise, will return an object consissting only of these cells, Parameter to subset on. Samples in f were compared using a Kruskal-Wallis test with Dunns multiple comparison correction, with adjusted P values shown. 43, e47 (2015). All samples were analyzed by flow cytometry, and paired week 2, month 6 post-second dose and week 2 post-third dose samples from three patients were additionally assessed by scRNA-seq. After defining such subclusters, i would like to bring back the clusterinfo of the new subclusters to the parent Seurat object, in order to find (sub)-clustermarkers specific for the new subclusters in relation to all cells (and clusters) of the parent object. 1 Answer Sorted by: 1 There are a few ways to address this. 65 patients were included and followed-up until month 12 post-infection. b, Heatmap shows normalized marker expression in the PhenoGraph clusters, with cell numbers for each cluster plotted on the right. Here we showed that single severe acute respiratory syndrome coronavirus 2-specific Bm cell clones showed plasticity upon antigen rechallenge in previously exposed individuals. Cell 183, 12981311.e11 (2020). 4ac). 6g and Extended Data Fig. Single-cell trajectories were created with Monocle3 (version 1.2.9) (ref. Immunol. Multifactorial seroprofiling dissects the contribution of pre-existing human coronaviruses responses to SARS-CoV-2 immunity. For example, we can calculated the genes that are conserved markers irrespective of stimulation condition in cluster 6 (NK cells). 59). Sutton, H. J. et al. Multi-Assay Features With Seurat, you can easily switch between different assays at the single cell level (such as ADT counts from CITE-seq, or integrated/batch-corrected data). In addition, reconstruction of clonal lineage trees and visualizing persistent S+ Bm cell clones in a circos plot indicated that individual Bm cell clones acquired different Bm cell fates; for example, a given clone was of a CD21+CD27 resting phenotype at month 6 and adopted CD21+CD27+ resting, CD21CD27+CD71+ or CD21CD27FcRL5+ Bm cell phenotype at month 12 post-infection (post-vaccination) (Fig. 2019 as referred to by @tilofreiwald. We probed the Bm cell response to antigen reexposure in 35 of the 65 patients with COVID-19 who had received mRNA vaccination between month 6 and month 12 post-infection (Extended Data Fig. Data-driven phenotypic dissection of AML reveals progenitor-like cells that correlate with prognosis. *P<0.05, **P<0.01. d, Exemplary dendrograms (IgPhyML B cell trees) display different persistent Bm cell clones at months 6 (triangles) and 12 (dots) post-infection. Density plots indicate count distributions across binding score ranges are shown on top and on the side. What were the most popular text editors for MS-DOS in the 1980s? CAS Bioinformatics 31, 33563358 (2015). ## [16] memoise_2.0.1 tensor_1.5 cluster_2.1.3 In the SARS-CoV-2 Infection Cohort, cells with fewer than 200 or more than 2,500 detected . AutoPointSize: Automagically calculate a point size for ggplot2-based. Or should we go directly onto integrated dataset and RunPCA? 7, eabn1250 (2022). How to get subset of a Seurat object based on metadata? Peer reviewer reports are available. ## [94] nlme_3.1-157 mime_0.12 formatR_1.14 I hope it is useful. Hopp, C. S. et al. low.threshold = -Inf, https://doi.org/10.1038/s41590-023-01497-y, DOI: https://doi.org/10.1038/s41590-023-01497-y. 8d,e). The code could only make sense if the data is a square, equal number of rows and columns. Samples in cf were compared using KruskalWallis test with Dunns multiple comparison, showing adjusted P values. Annu. seurat_object <- subset(seurat_object, subset = seurat_object@meta.data[[meta_data]] == 'Singlet'), the name in double brackets should be in quotes [["meta_data"]] and should exist as column-name in the meta.data data.frame (at least as I saw in my own seurat obj). Circulating and intrahepatic antiviral B cells are defective in hepatitis B. J. Clin. control_subset <- RunPCA(control_subset, npcs = 30, verbose = FALSE, features = Variable Features(control_subset)), Seurat provides many prebuilt themes that can be added to ggplot2 plots for quick customization, | Theme | Function | Learn R. Search all packages and functions. HolmBonferroni method was used for P value adjustment of multiple comparisons. I was able to achieve this in the following way: Would be interesting to know if Seurat provides such functionality out of the box. . | rownames(x = object@data) | rownames(x = object) | ## [37] survival_3.3-1 zoo_1.8-11 glue_1.6.2 Cells were sorted on a FACS Aria III 4L sorter using the FACS Diva software. Frequencies of S+ Bm cells were comparable in patients with mild and severe COVID-19 (Fig. ## [130] mnormt_2.1.1 sctransform_0.3.5 multcomp_1.4-22 *P<0.05, **P<0.01, ***P<0.001, ****P<0.0001. Numbers indicate percentages of parent population. Counts of SHM in S+ Bm cells remained high at month 12 (post-vaccination) compared with month 6 post-infection (pre-vaccination) (Fig. Best wishes Gowans, J. L. & Uhr, J. W. The carriage of immunological memory by small lymphocytes in the rat. ## loaded via a namespace (and not attached): Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Additionally, genes like CXCL10 which we saw were specific to monocyte and B cell interferon response show up as highly significant in this list as well. Google Scholar. random.seed = 1, Haga, C. L., Ehrhardt, G. R. A., Boohaker, R. J., Davis, R. S. & Cooper, M. D. Fc receptor-like 5 inhibits B cell activation via SHP-1 tyrosine phosphatase recruitment. All samples were analyzed by flow cytometry and paired month 6 and 12 samples from nine patients also by single-cell RNA sequencing (scRNA-seq). SCT_integrated <- FindNeighbors(SCT_integrated, dims = 1:15) For f and g, statistical analysis of the gene set enrichment and variation analyses was performed as outlined in Methods, and all adjusted P values are shown. e, Stacked bar graphs (mean + SD) display isotype distribution in S+ Bm cell subsets in samples of SARS-CoV-2-recovered individuals postVac at months 6 and 12 post-infection from flow cytometry dataset (n=37). Correspondence to | object@assays$assay.name | object[["assay.name"]] | So I have a couple of questions regarding my workflow: For downstream DE analysis, the scale.data slot in the SCT assay has disappeared after integration. Colors indicate frequency within RBD+ and RBD Bm cells. Studies in patients with SLE or HIV infection have suggested that CD21CD27 Bm cells differentiate through an extrafollicular pathway16,17. If I decide that batch correction is not required for my samples, could I subset cells from my original Seurat Object (after running Quality Control and clustering on it), set the assay to "RNA", and and run the standard SCTransform pipeline. 5c). 9c), indicating that S+ Bm cell subsets had comparable BCR repertoires, although the depth of our analysis was restricted by low cell numbers. DefaultAssay(control_subset) <- "RNA" The SWT+ Bm cells in the IgG+CD27hiCD45RBhi cluster (cluster 5) were mainly from blood, in the IgG+CD21hi cluster (cluster 2) predominantly tonsillar, while the IgG+CD27lo cluster (cluster 4) contained SWT+ Bm cells from both compartments. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. BMC Bioinformatics 14, 7 (2013). 183, 21762182 (2009). Sci. Why does Acts not mention the deaths of Peter and Paul? Sci. Immunol. 10, eaan8405 (2018). Find centralized, trusted content and collaborate around the technologies you use most. Barnett, B. E. et al. 6b). I tried. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. From reading the other issues posted regarding the topic it appears that any kind of re-analysis prior to integration is not recommended, and that once subsetted a integrated data set should just be re-scaled and the pipeline followed on from this point on. I just do not want to do manual subsetting on 10 genes, then manually getting @data matrix from each subset, and recreating seurat object afterwards. ## Running under: Ubuntu 20.04.5 LTS | RenameIdent(object = object, old.ident.name = "old.ident", new.ident.name = "new.ident") | RenameIdents(object = object, "old.ident" = "new.ident") | Eg, the name of a gene, PC_1, a Haghverdi, L., Lun, A. T. L., Morgan, M. D. & Marioni, J. C. Batch effects in single-cell RNA-sequencing data are corrected by matching mutual nearest neighbors. I'm also interested in understanding better how to do this. Subsequently, we analyzed S+ Bm cells in the blood of SARS-CoV-2-nave individuals (all seronegative for S-specific antibodies) by flow cytometry (n=11, five females and six males) and scRNA-seq (n=3) sampled before their SARS-CoV-2 mRNA vaccination, at days 813 (week 2) post-second dose, 6months after the second dose and days 1114 post-third dose (Extended Data Fig. Because we are confident in having identified common cell types across condition, we can ask what genes change in different conditions for cells of the same type. Frauke Muecksch, Zijun Wang, Michel C. Nussenzweig, R. Camille Brewer, Nitya S. Ramadoss, Tobias V. Lanz, Laila Shehata, Wendy F. Wieland-Alter, Laura M. Walker, Alice Cho, Frauke Muecksch, Michel C. Nussenzweig, Marios Koutsakos, Patricia T. Illing, Katherine Kedzierska, Anastasia A. Minervina, Mikhail V. Pogorelyy, Paul G. Thomas, Nature Immunology Note that @timoast from the Seurat team recommended otherwise, although I never seen an explanation why would this not best way to go. Ellebedy, A. H. et al. I'm writing here to be sure to receive an email when somebody will post an explanation here :-). We found that S+ CD21CD27 Bm cells showed signs of increased antigen processing and presentation; how much this might translate into truly increased capacity of antigen presentation is unclear43. Genewise statistics were conducted using empirical Bayes quasi-likelihood F-tests. However I did the following: Next I perform FindConservedMarkers on each of the cell clusters to identify conserved gene markers for each cell cluster. The authors declare no competing interests. Monty Hall problem- a peek through simulation, Modeling single cell RNAseq data with multinomial distribution, negative bionomial distribution in (single-cell) RNAseq, clustering scATACseq data: the TF-IDF way, plot 10x scATAC coverage by cluster/group, stacked violin plot for visualizing single-cell data in Seurat. Rev. Rev. Human memory B cells show plasticity and adopt multiple fates upon recall response to SARS-CoV-2. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Andreas E. Moor or Onur Boyman. a) My approach would be to just run FindClusters() with a higher resolution on the whole dataset until the desired subclustering is reached. In short: I found that the first and second approaches lead to a nice integration while the third and fourth lead to an uncorrected batch effect (see the image below). Profiling B cell immunodominance after SARS-CoV-2 infection reveals antibody evolution to non-neutralizing viral targets. Generic Doubly-Linked-Lists C implementation. ## locale: Subsetting the before integrating data to interested cells and then do the whole integration, followed by PCA, umap, findneighbors and findclusters seemed reasonale to me. Hi all, ## [1] stats graphics grDevices utils datasets methods base All the best, Open access funding provided by University of Zurich. We used the scRNA-seq of S+ and S Bm cells sorted from recovered individuals with and without subsequent vaccination to interrogate the pathways guiding development of different Bm cell subsets (Extended Data Fig. a, Scatter plot comparing binding scores (LIBRA-Score) was determined from scRNA-seq for SWT and RBD binding, with every dot representing a cell. 5c). Reincke, M. E. et al. Single-cell RNA sequencing (scRNA-seq) indicated that single Bm cell clones adopted different fates upon antigen reexposure. accept.value = NULL, Biotechnol. All authors edited and approved the final paper. Clonal diversity between Bm cell subsets was investigated using the alphaDiversity function of Immcantations package Alakazam (v1.2.0) (ref. These observations in circulating Bm cells were paralleled by the appearance of resting Bm cells in tonsils, where they showed high expression of CD69 and CD21 and comparable SHM counts to circulating Bm cells. control_subset <- RunPCA(control_subset, npcs = 30, verbose = FALSE) Med. Koutsakos, M. et al. 2c), and S+ Bm cells underwent strong proliferation during the acute phase (Fig. Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey, Remove rows in a dataframe containing values outside multiple intervals. SARS-CoV-2-nave healthy controls (n=11) were sampled before their SARS-CoV-2 mRNA vaccination, at week 2 post-second dose, month 6 post-second dose and at week 2 post-third dose. & Zhang, L. The humoral response and antibodies against SARS-CoV-2 infection. Updated triggering record with value from related record. scRNA-seq was performed on samples from nine patients of the SARS-CoV-2 Infection Cohort (Supplementary Table 2), three of the SARS-CoV-2 Vaccination Cohort, and paired blood and tonsil samples of four patients of the SARS-CoV-2 Tonsil Cohort (two recovered and two only vaccinated). ## [52] metap_1.8 viridisLite_0.4.1 xtable_1.8-4 | WhichCells(object = object, ident.remove = "ident.remove") | WhichCells(object = object, idents = "ident.remove", invert = TRUE) | Samples in a and cf were compared using a Kruskal-Wallis test with Dunns multiple comparison correction. Time-resolved analysis identified a peak in the frequency of S+ Bm cells in the first days post-vaccination, reaching 3% of total B cells on average, followed by a slow decrease in frequency over day 150 post-vaccination (Fig. RDocumentation. operators sufficient to make every possible logical expression? 128, 45884603 (2018). arguments. I would like some help with this thread as well. Germinal centre-driven maturation of B cell response to mRNA vaccination. The code generated during the current study is available at https://github.com/Moors-Code/MBC_Plasticity_Moor_Boyman_Collaboration. In d, frequencies were compared using a two-tailed, two-proportions z-test with a Bonferroni-based multiple testing correction. Immunol. | WhichCells(object = object, ident = "ident.keep") | WhichCells(object = object, idents = "ident.keep") | ## [64] pkgconfig_2.0.3 sass_0.4.5 uwot_0.1.14 You can subset from the counts matrix, below I use pbmc_small dataset from the package, and I get cells that are CD14+ and CD14-: library (Seurat) CD14_expression = GetAssayData (object = pbmc_small, assay = "RNA", slot = "data") ["CD14",] This vector contains the counts for CD14 and also the names of the cells: Why did US v. Assange skip the court of appeal? You can read more on the concept here in Martin's paper. Making statements based on opinion; back them up with references or personal experience. 1 Overview of SARS-CoV-2 cohorts analyzed in this study. ## [10] qqconf_1.3.1 TH.data_1.1-1 digest_0.6.31 Rev. Viral Hepat. I have a Seurat object that I have run through doubletFinder. control_subset <- RunPCA(control_subset, npcs = 30, verbose = FALSE, features = Variable Features(control_subset)) | WhichCells(object = object, max.cells.per.ident = 500) | WhichCells(object = object, downsample = 500) | Lines connect paired samples. Weisel, F. & Shlomchik, M. Memory B cells of mice and humans. With Seurat, you can easily switch between different assays at the single cell level (such as ADT counts from CITE-seq, or integrated/batch-corrected data). However there are a few times that i found some genes that are primary markers for one certain subtype of the cells i want to sub clustering do not exist in the integration assay, which may lead to some problems. Cutting edge: B cellintrinsic T-bet expression is required to control chronic viral infection. If I want to select a subset of data in R, I can use the subset function. Then we use FindMarkers() to find the genes that are different between stimulated and control B cells. But I'm also curious how others approach this! Short story about swapping bodies as a job; the person who hires the main character misuses his body, Generate points along line, specifying the origin of point generation in QGIS. So I guess FindVariableFeatures of the subset cells should be tried. privacy statement. Comparison of V heavy and light chain usage within S+ Bm cell subsets in the scRNA-seq data from SARS-CoV-2-recovered individuals (months 6 and 12 post-infection) revealed very similar chain usage in S+ CD21+ resting (CD21+CD27+ and CD21+CD27 combined), CD21CD27+CD71+ activated and CD21CD27FcRL5+ Bm cells (Extended Data Fig. Choose a subset of cells, and then split by samples and then re-run the integration steps (select integration features, find anchors and integrate data). high.threshold = Inf, ## [34] jsonlite_1.8.4 progressr_0.13.0 spatstat.data_3.0-0 How a top-ranked engineering school reimagined CS curriculum (Ep. While I did not test the above, I tested running FindVariableFeatures() (or not), and I recommend re-running FindVariableFeatures(). I followed a similar approach to @attal-kush. To extend our analyses to SARS-CoV-2-specific Bm cells in the peripheral lymphoid organs, we analyzed paired tonsil and blood samples from a cohort of 16 patients (9 females and 7 males) undergoing tonsillectomy who were exposed to SARS-CoV-2 by infection, vaccination or both.

Scary Canary Jar Ingredients, Is Sofi Stadium Air Conditioned, Sino Sino Ang Mga Tauhan Sa Alamat Ng Bahaghari, Storm Bowling Balls Retired, Articles S

seurat subset multiple conditions