Comments (8)
Hmmm they look ok, apart from the fact that now the feature to plot is "signatrue" instead of "signature"...
It seems like a proper bug. I will add it to the to-do list for the next update. I am sorry it did not work!
Many thanks for the quick feedback and feel free to open another Issue if you face other problems!
Best,
Enrique
from scpubr.
Hi @venkan,
Thanks for using my package!
In order for you to map a diverging palette to the plots, you need to use enforce_symmetry = TRUE
. Otherwise, I only allow the use of sequential palettes for variables that are not centered, transformation that enforce_symmetry
will perform on the data to plot if you set it to TRUE
.
You can then set symmetry.type
to absolute
to make it centered around 0 or centered
alongisde with symmetry.center
to tailor the center to your liking.
For this, you need to update to v2.0.2
.
Hope this helps!
Enrique
from scpubr.
Thank you. When I use
SCpubr::do_FeaturePlot(scdata, features = c("signature"), reduction = "umap", split.by = "DiseaseGroup", ncol=4, order = FALSE, font.size = 8, plot.axes = TRUE, legend.length = 8, legend.width = 0.5, legend.position = "bottom", pt.size=0.3, enforce_symmetry=TRUE, diverging.palette="RdBu")
I'm using ‘2.0.2.9000’
package version. I want the scaling from -0.5 to -0.1
and centered with -0.3 with diverging.palette="RdBu". So, I used it like below:
SCpubr::do_FeaturePlot(scdata, features = c("signature"), reduction = "umap", split.by = "DiseaseGroup", ncol=4,order = FALSE, font.size = 8, plot.axes = TRUE, legend.length = 8, legend.width = 0.5, legend.position = "bottom", pt.size=0.3, diverging.palette="RdBu", symmetry.type = "centered", symmetry.center=-0.3)
But why the colors are not changed in the output plot below?
I want the colors that are used for enforce_symmetry=TRUE with the scaling I want.
from scpubr.
In your second input, there is not enforce_symmetry = TRUE
. Can you try with that and let me know if it works?
Best,
Enrique
from scpubr.
Thanks for your quick reply.
SCpubr::do_FeaturePlot(scdata, features = c("signature"), reduction = "umap", split.by = "DiseaseGroup", ncol=4,order = FALSE, font.size = 8, plot.axes = TRUE,legend.length = 8, legend.width = 0.5, legend.position = "bottom", pt.size=0.3, diverging.palette="RdBu", symmetry.type = "centered", symmetry.center=-0.3, enforce_symmetry=TRUE)
Output:
You see the above image. Scaling is wrong.
from scpubr.
Hmmm true:
Can you check one more thing? Try adding to what you already have:
min.cutoff = -0.5
max.cutoff = -0.1
If it does not work, I will need to have check to fix the bug!
Let me know if it works and thanks for the help!
Enrique
from scpubr.
Thanks again. but didn't work.
SCpubr::do_FeaturePlot(scdata, features = c("signature"), reduction = "umap", split.by = "DiseaseGroup", ncol=4,order = FALSE, font.size = 8, plot.axes = TRUE,legend.length = 8, legend.width = 0.5, legend.position = "bottom", pt.size=0.3, diverging.palette="RdBu", symmetry.type = "centered", symmetry.center=-0.3, enforce_symmetry=TRUE, min.cutoff = -0.5, max.cutoff = -0.1)
Output:
Please check whether the arguments I gave above are right. Thank you !!
from scpubr.
sorry. that's a typo (signature it is). Only when I use split.by
have this problem.
from scpubr.
Related Issues (20)
- Extract coordinated from do_CellularStatesPlot HOT 2
- ncol | do_DimPlot | ncol argument scaling combined plot differently to other plots HOT 3
- REQUEST | do_DimPlot | Create UMAP with Table HOT 1
- REQUEST | do_DotPlot | Allow duplicated features HOT 1
- BUG | do_VolcanoPlot | add gene tags based on logFC + pvalue HOT 1
- REQUEST | do_DotPlot | Reqeuest for the option "dot.min". HOT 1
- How to create custom mappings from p-values to annotation for BoxPlot HOT 1
- Show Genenames in featureplot for feature vector HOT 5
- Fix typo | do_ViolinPlot | Spelling Error HOT 1
- BUG | do_FeaturePlot | The legend titles are not displayed anymore HOT 7
- BUG | do_FeaturePlot | scale = T stopped working HOT 3
- Seurat v5 Support HOT 3
- REQUEST | doDimPlot | Plot NA values of grouping values in background HOT 1
- Violin Feature Plots HOT 2
- REQUEST | do_FeaturePlot | Is it possible to have one feature plot with multiple genes? HOT 3
- label.font only works for legend but not for labels shown on umap HOT 4
- REQUEST | subgroups in dotplot HOT 3
- REQUEST | do_RidgePlot | Extending Data Lines
- No do_LigandReceptorPlot HOT 2
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 scpubr.