Comments (1)
Hi @RMOsborn012,
Thanks a lot for using my package! I am happy to see that it is useful for your work!
Indeed, you have a point there.
I have modified the source code so that interactions are sorted by any of the following modes:
Specificity
.Magnitude
.Specificity
, thenmagnitude
.Magnitude
, thenspecificity
.Specificity
andmagnitude
with equal weights (your suggestion).
I was not able to achieve the result you suggested with your suggested code, but I managed in the end by ordering the tibble based on the specificity
, store the order in a column, perform the same for magnitude
, and then order the final tibble in ascending
order based on the sum of the orders for the two columns (so that interactions that ranked high in both magnitude
and specificity
will have a lower number than lower ranked ones in any of the two columns).
The changes will roll out with update v2.0.0
. It might take a while until this happens though. If you really want to use it now, you can always download the commit where I have added this using:
devtools::install_github("enblacar/SCpubr", ref = "fd203b0")
# Reload R Session
detach("package:SCpubr")
library(SCpubr)
Be mindful that I am still working in the update, so things might still break. Plus, it is a major
update, so many functions have changed and parameters have been renamed.
Hope this helps!
Enrique
from scpubr.
Related Issues (20)
- colors.use not working with split.by in do_DimPlot HOT 5
- pseudotime Analysis HOT 2
- Chord plots error HOT 3
- Feature plot that also has cluster annotation as colored dots/boxes with legend rather than labels on clusters HOT 5
- Replacing LIANA's plots with SCpubr HOT 2
- do_DimPlot: sizes.highlight not working when raster = TRUE HOT 1
- How to present cell communication results in groups HOT 3
- 'do_SankeyPlot' is not an exported object from 'namespace:SCpubr' HOT 2
- Change font size in do_PathwayActivityPlot HOT 1
- Error using do_GroupwiseDEPlot HOT 2
- Changing colors HOT 2
- Error: 'save_Plot' is not an exported object from 'namespace:SCpubr' HOT 2
- Share SCpubr book for version 1.1.2 HOT 2
- Error using do_DimPlot when using split.by HOT 2
- Marking Frequency % inside Barplot stacks HOT 5
- BUG | FUNCTION NAME | BRIEF DESCRIPTION HOT 5
- "Undefined columns selected" | do_FunctionalAnnotationPlot | Function doesn't run HOT 2
- background of label in DimPlot HOT 1
- BUG | do_DimPlot | Multiple legends are visualised when "Group by a variable but split by another" HOT 3
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.