Comments (2)
Thanks for the kind words.
Regarding your questions -
- It is interesting that SingleR ' preferred' monocytes over macrophages for those cells. Differentiating macrophages and dendritic cells may sometimes be non-trivial, but I've never had issues in differentiating monocytes and macrophages.
- It is always good to look at the heatmap (SingleR.DrawHeatmap function) of scores, and not just the final labels, to see what was SingleR wandering about. This could give you better hints of whether there are multiple populations there, a gradient of differentiation, or if this cell type is missing from the reference, and the cells are similar to several different cell types (see some examples here).
- To remove a cell type from the reference, just copy the reference (in your case its the object blueprint_endcode), find the cells you want to remove (in your case (grepl('Monocytes',blueprint_endcode$main_types) and remove those columns from the expression matrix (blueprint_endcode$data, types and main_types). Finally, recreate the variable genes set using the CreateVariableGeneSet function. You can see some details here on creating a new reference dataset.
- There are tools for removing doublets (DoubletFinder, DoubletDecon and others). Using SingleR you can again use the heatmap to identify cells that have high similarity to two distinct cell types.
Hope this helps.
Best,
Dvir
from singler.
Thanks for the kind words.
Regarding your questions -
- It is interesting that SingleR ' preferred' monocytes over macrophages for those cells. Differentiating macrophages and dendritic cells may sometimes be non-trivial, but I've never had issues in differentiating monocytes and macrophages.
- It is always good to look at the heatmap (SingleR.DrawHeatmap function) of scores, and not just the final labels, to see what was SingleR wandering about. This could give you better hints of whether there are multiple populations there, a gradient of differentiation, or if this cell type is missing from the reference, and the cells are similar to several different cell types (see some examples here).
- To remove a cell type from the reference, just copy the reference (in your case its the object blueprint_endcode), find the cells you want to remove (in your case (grepl('Monocytes',blueprint_endcode$main_types) and remove those columns from the expression matrix (blueprint_endcode$data, types and main_types). Finally, recreate the variable genes set using the CreateVariableGeneSet function. You can see some details here on creating a new reference dataset.
- There are tools for removing doublets (DoubletFinder, DoubletDecon and others). Using SingleR you can again use the heatmap to identify cells that have high similarity to two distinct cell types.
Hope this helps.Best,
Dvir
Hi Dvir, thank you for your reply. I was wondering if the example you suggested, with respect to removing cell types from the reference, could be done in an R script? I downloaded the HumanPrimaryCellAtlasData() set using the celldex package and I want to remove the 'Astrocyte' cell type.
from singler.
Related Issues (20)
- Retrieving a list of marker genes which were used assign cell type labels to clusters HOT 1
- How to annotation cluster by singleR 1.2.4 HOT 2
- can i annotate cells in specific cell types?
- 'assay(<SingleCellExperiment>, i="character", ...)' invalid subscript 'i' 'dimnames' applied to non-array
- the Seurat3.2.2 load and SingleR 1.0.1 conflict error HOT 1
- Can't download MouseRNAseqData
- Error in is.null(rownames(x)) && nrow(x) : invalid 'y' type in 'x && y' HOT 4
- create custom reference dataset HOT 2
- Error in rowAnyNAs(DelayedArray(x)) HOT 1
- SingleR() error HOT 2
- SingleR Performance Issue
- issue with input?
- discriminant features
- Questions about confidence score
- Microwell-Seq Mouse Cell Atlas link on README.md is not working
- Can we use SingleR to annotate BulkRNAseq when reference is also bulk HOT 3
- Annotate Seurat object of several patients
- SingleR error HOT 1
- Positive correlation between the identity score of the right identities and the rest
- SingleR - "sc_data" is missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from singler.