Comments (1)
Hi @ShashTrip1,
Thanks for using my package!
I see where the problems is:
- You are feeding a diverging palette to
sequential.palette
parameter. Normally, this should throw an error, but somehow it is not happening. I will fix that for the next update. - Since the error is not being called, you actually get the side effect of the diverging palette being treated as sequential, for which I add a white and black end to the palette. That is why you are getting the error.
I did not intend this function to accept diverging palettes, as I thought there was no use case for it. I will implement its usage for the next update. For now, I would suggest you to use a sequential palette.
However, if you really want to use it with a diverging palette, given the side effect, you can just remove the behaviour of adding the white and black end to sequential color palettes with:
options("SCpubr.ColorPaletteEnds" = FALSE)
This should give you the output you want. But please, be mindful that when I update to fix this side effect, this will no longer work. Here is an example:
Current behaviour
options("SCpubr.ColorPaletteEnds" = TRUE)
SCpubr::do_DotPlot(sample, features = Seurat::VariableFeatures(sample)[1:10], sequential.palette = "RdBu")
Hotfix
options("SCpubr.ColorPaletteEnds" = FALSE)
SCpubr::do_DotPlot(sample, features = Seurat::VariableFeatures(sample)[1:10], sequential.palette = "RdBu")
Hope that works! Feel free to reopen the issue if not!
Best,
Enrique
from scpubr.
Related Issues (20)
- REQUEST | do_ViolinPlot | I want order to be added HOT 2
- Where is the function do_AzimuthAnalysisPlot HOT 1
- do_GroupwiseDEPlot with output of FindConservedMarkers HOT 1
- do_AzimuthAnalysisPlot is not an exported object from 'namespace:SCpubr' HOT 3
- Output of Featureplot and Dimplot are of different size HOT 1
- BUG | do_EnrichmentHeatmap | Undefined columns selected when providing named lists with dashes on the names. HOT 2
- BUG | Do_FeaturePlot | Plotting multiple FeaturePlots with idents.highlight prints them in a line rather than a grid HOT 1
- Do_FeaturePlot | Set custom scales/limits OR copy Seurat::FeaturePlot keep.scale parameter HOT 2
- REQUEST | do_featureplot | shared espression of One or more genes HOT 1
- do_DiffusionMapPlot returns empty plots HOT 1
- Extract coordinated from do_CellularStatesPlot HOT 1
- ncol | do_DimPlot | ncol argument scaling combined plot differently to other plots HOT 2
- REQUEST | do_DimPlot | Create UMAP with Table HOT 1
- REQUEST | do_DotPlot | Allow duplicated features HOT 1
- BUG | do_FeaturePlot | diverging.palette argument is not working HOT 8
- 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
- Show Genenames in featureplot for feature vector HOT 5
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.