Comments (7)
Hi @saeedfc,
Thanks for kind words and thanks for posting this issue! Yup, simple mistake on my part when writing the function leaving only the gene check in. I've resolved the issue with modifying the code to resemble that of Stacked_VlnPlot with checks on both features and meta data. This should be fixed in develop branch v0.7.0.9920. If you still run into this again after update let me know and I'll reopen the issue.
Also as you probably know sometimes need to be careful in terms of DotPlots off of metadata if keeping default of scale = TRUE because scaling the data may or may not be the most appropriate visualization/comparison for some types of data stored there.
Best,
Sam
from sccustomize.
Do we still need to download the development branch for this feature? Or is it in the main package now?
from sccustomize.
@mmandanas in the main package. just keep in mind warning about scaling data off of meta data variables
from sccustomize.
Thank you so much for your quick response!
I currently have version 2.1.2 installed, but when I tried to use Clustered_DotPlot to show module scores that I've calculated using Seurat's AddModuleScore function, but when I try to input the name of the module scores into Clustered_DotPlot, I get an error from Feature_Present() saying that my feature isn't present in the RNA assay. Was this fix specific to DotPlot_scCustom?
from sccustomize.
I'm able to plot meta.data variables without issue from Clustered_DotPlot.
What is the result if you run:
"MODULE_SCORE_NAME" %in% colnames([email protected])
from sccustomize.
I think I realized the issue: I was trying to only plot that single module score, but I think I need to plot multiple features at a time for it to work, as I can get the plot to show up if I add some genes to the list of features.
My module score name is in the colnames of the meta.data, but when I try to use the split.by parameter, I get the following:
Clustered_DotPlot(seurat_object = Wang_granular_clean,
features = c('HALLMARK_MTORC1_SIGNALING_RNA1', 'CD8A','APOE'),
split.by = 'Condition')
Warning: The following 1 features were not found in the RNA assay: HALLMARK_MTORC1_SIGNALING_RNA1
Error: number of cluster centres must lie between 1 and nrow(x)
In addition: Warning message:
The following features were omitted as they were not found:
ℹ HALLMARK_MTORC1_SIGNALING_RNA1
from sccustomize.
Ok yes so the error is two fold. First, yes clustered dot plot needs multiple features because it performs clustering on the features.
Second is issue with how I wrote the split.by version of the plotting. Let me look into it in terms of solution. I will open new issue and tag you there
from sccustomize.
Related Issues (20)
- Help with getting as.anndata running HOT 15
- plot_median = TRUE does not work in VlnPlot_scCustom when features contains more than one gene HOT 1
- Clustered_DotPlot Plotting Meta Data when split.by HOT 1
- Allow to get unified legend when using split.by = "seurat_clusters" without having to use split_seurat = TRUE in DimPlot_scCustom() HOT 2
- split.by error in Clustered_DotPlot function HOT 5
- Use of DiscretePalette_scCustomize() with DimPlotPlus? HOT 16
- Error in as.anndata object 'dim_reducs_list' not found HOT 1
- Merge_Seurat_List() add.cell.ids for long Seurat object list HOT 3
- Adding chicken to list of supported species? HOT 2
- Duplicate cell name error in Cell_Highlight_Plot, even though they are not duplicate HOT 9
- Access underlying matrix used in Clustered_DotPlot to remove NA/NaN/Inf HOT 13
- as.anndata isseu HOT 3
- DotPlot_scCustom: Show Cluster Idents on top
- Set different color palettes to be used for different assays in FeaturePlot_DualAssay HOT 3
- MAD_stats mad_num variable doesn't change value HOT 5
- Add_Mito_Ribo multiple species HOT 3
- Plots not printing HOT 2
- Enable `Add_Cell_QC_Metrics()` to Support ENSEMBL IDs for "IEG" and "MSig_DB" HOT 2
- Error Merge HOT 7
- conversion to anndata
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 sccustomize.