liana
liana copied to clipboard
Comparing Results across conditions?
Hello,
I was just wondering, some of the methods implemented in LIANA allow for comparing results across datasets (i.e. diseased vs normal) to see how signaling changes according to conditions. Is there any way to do that using LIANA? For instance CellChat has this tutorial: https://htmlpreview.github.io/?https://github.com/sqjin/CellChat/blob/master/tutorial/Comparison_analysis_of_multiple_datasets.html#load-cellchat-object-of-each-dataset-and-then-merge-together
If not possible, is there a way to get resource specific objects from the liana results so that I may run a similar analysis?
Thanks!
Hi @austinv11,
Currently, comparisons between conditions are not implemented in LIANA, but it is a planned extension that I hope to implement soon. Also, as far as I'm aware, CrossTalkeR supports LIANA input, if you want to give it a shot.
If I understood, correctly regarding the resources and by resources you refer to e.g. pathways, etc. Perhaps, this relatively basic tutorial will help: https://saezlab.github.io/liana/articles/liana_intracell.html
I plan to extend LIANA in these directions, and I will keep you posted.
Thanks, Daniel
Just wondering whether this function is still being developed? Would be amazing if it was. Thanks :)
Hi @EJCresswell,
I have now implemented 2 ways of doing between condition comparisons, but we are still testing them. We really want to understand how to best approach this before I push them as tutorials.
It's the next planned update for liana.
Daniel
Great- could you leave a comment on here when it's updated so that I get notified of the release? Thanks so much- looking forward to it! :)
Hey @austinv11 and @EJCresswell,
I created a draft tutorial for the integration of LIANA /w tensor-cell2cell. The tutorial is still preliminary as we want to extend it a bit, and consolidate the assumptions that we make as we build the tensor, but even now it's rather comprehensive.
This is currently implemented only on the dev branch, so you would need to install liana from there: https://github.com/saezlab/liana/tree/dev Code: https://github.com/saezlab/liana/blob/dev/vignettes/liana_cc2tensor.Rmd
The tutorial will be included in LIANA's next update, so you can also wait a bit and use it once done. However, in case you wish to beta-test, feedback would also be appreciated. :)
HTML /w how the tutorial would look once online: liana_cc2tensor.zip
Hi thanks for this! I can't seem to download liana_1.0 though. This is the message that I'm getting:
remotes::install_github('saezlab/liana/liana_1.0') Downloading GitHub repo saezlab/liana@HEAD Error: Failed to install 'liana' from GitHub: Does not appear to be an R package (no DESCRIPTION)
Hi @EJCresswell
please try this command:
remotes::install_github("saezlab/liana", ref="dev")
:)
Hi -thanks this has worked, but it's having other problems installing now
- installing source package 'liana' ... ** using staged installation Warning in system("sh ./configure.win") : 'sh' not found ERROR: configuration failed for package 'liana'
@EJCresswell
Odd... I assume you should have .sh even on Windows - unless it's a very old version?
I assume you just need to install to prevent the error: https://cran.r-project.org/bin/windows/Rtools/rtools40.html
If you run:
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS = TRUE)
Then it it would definitely install, but I don't think R will set up the needed environment, unless .sh is present.
Depending on which R version you have: https://cran.r-project.org/bin/windows/Rtools/
If this is the issue you should also see RTools (...) is not currently installed
in the R terminal output as the package installs
I've managed to install it now. Still getting error messages when trying to run the liana_bysample function though:
Error in [[<-
(*tmp*
, name, value = integer(0)) :
0 elements in value to replace 54708 elements
OK. Odd... Works just fine on my end (liana_bysample
is just a loop that calls liana_wrap
).
Could you please restart your r_session?
Just to make sure it's not some other package interfering and send me the session_info for me to try to reproduce the issue.
You can also skip it if you run:
context_df_dict <- readRDS(url("https://zenodo.org/record/6826420/files/pbmcs_lrs.RDS?download=1"))
These are the liana results by sample that liana_bysample
returns.
I've tried restarting the session and the code isn't working on my data still unfortunately
Hi @EJCresswell,
But does it work with the example data? Sharing your session_info() would allow me to attempt to traceback the issue :) Also, if it works with the example, but not with your data, you can share a subset of your data with me and I can try to trace.
Thanks for trying it out.
Daniel
Please note that I have now moved these changes to the dev
branch and updated my comments respectively.
Hi took me a while to get to this, but finally a tutorial with cell2cell-tensor
is available here:
https://saezlab.github.io/liana/articles/liana_cc2tensor.html
Will close the issue. Feel free to open new ones, related to the vignette.
Daniel