Comments (3)
Hi @rbutleriii,
Thanks for using my package!
The error seems to arise due to recent implementations in liana. With version 0.1.6 the code you provided works perfectly.
I assume this is related to the changes in how interactions are sorted depending on different parameters.
I will have to go back to the code and update it to match the newest version of liana. Sorry for the inconveniences!
You can download a version of liana compatible with the function here.
Will update this once I fix it!
Best,
Enrique
from scpubr.
@enblacar this relates to my other issue, perhaps having SCpubr as a dependency of liana, and hence doing my unittests with it would resolve any such potential inconsistencies :)
from scpubr.
Hi @rbutleriii,
Sorry for taking that long in implementing the changes!
I have updated the code for SCpubr::do_LigandReceptorPlot()
to work perfectly with liana
v0.1.12
and will roll out in the next, big, SCpubr v2.0.0
update.
Here is an example output with your same code, adapted to the various modifications added to the function:
library(magrittr)
library(liana)
library(SCpubr)
liana_path <- system.file(package="liana")
testdata <- readRDS(file.path(liana_path , "testdata", "input", "testdata.rds"))
liana_test <- liana::liana_wrap(testdata) %>% liana::liana_aggregate()
# Chord diagram of the total significant interactions from each cluster and all the rest.
out <- do_LigandReceptorPlot(liana_output = liana_test,
top_interactions = 25,
return_interactions = TRUE)
# Retrieve Plot.
out$Plot
And now, you need to plot the chord diagrams yourself with the output tibbles:
## Total number of interactions per group.
SCpubr::do_ChordDiagramPlot(from_df = TRUE,
df = out$`Group Interactions`,
link.border.color = "black",
z_index = TRUE)
## Total number of interactions per LR pair.
SCpubr::do_ChordDiagramPlot(from_df = TRUE,
df = out$`LR Interactions`,
link.border.color = "black",
z_index = TRUE)
I hope this helps! Stay tuned for the update on CRAN
! If you want to use it right now, please be aware that downloading the latest commits effectively downloads a v2.0.0
of SCpubr
with all the breaking changes this involves.
Best,
Enrique
from scpubr.
Related Issues (20)
- colors.use not working with split.by in do_DimPlot HOT 5
- pseudotime Analysis HOT 2
- 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
- BUG | do_LigandReceptorPlot() |"arrange_interactions_by = both" implementation HOT 1
- 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.