Closed PoGibas closed 1 year ago
scconnect
is not part of LIANA, I noticed that I must have merged or unintentionally left some variables that refer to it. I will remove those in a follow-up update :)
@dbdimitrov Thank you for your answer! It makes sense now.
Just to confirm - the official list of methods is available only through the documentation of ?liana_wrap
and it is c("natmi", "connectome", "logfc", "sca", "cellphonedb")
? Can you please explain then to which selections do methods: "CellChat", "SingleCellSignalR", "Crosstalk Scores" link to (other ones are easy to connect by name)?
I also have one additional question: is it possible to submit a vector of resources to liana::liana_wrap
? For example, the command liana::liana_wrap(test_data, resource = "all")
is very likely to fail as one of the resources is MouseConsensus
(therefore all resources will fail). Would a command like this make sense liana::liana_wrap(test_data, resource = grep("Mouse", show_resources(), invert = TRUE, value = TRUE))
? Or would you recommend just running all wanted resources in a loop? Also, was then Consensus
created using MouseConsensus
as well?
I would say the official list is available through show_methods
though, I strongly recommend using the internal ones to liana (i.e. those without call_* in their names). So, indeed the vector that you shared via liana_wrap
is how I would use LIANA. Any of the other ones e.g. call_cellchat, call_sca (SingleCellSignalR), etc, are just calls to external packages that need to be installed. This functionality is largely deprecated (I used them in LIANA's manuscript, but for ease of use and to make sure that all parameters, etc are consistent, I re-implemented certain methods).
Yes, indeed I think this should work. Good catch about all
, I have now changed select_resource
to only return the human resources if all is selected.
But indeed, this should work, as liana will do the loops(maps) for you:
liana_path <- system.file(package = "liana")
seurat_object <-
readRDS(file.path(liana_path , "testdata", "input", "testdata.rds"))
liana_res <- liana::liana_wrap(seurat_object, resource = grep("Mouse", show_resources(), invert = TRUE, value = TRUE), method=c("sca", "natmi"))
MouseConsensus is just an orthology conversion of Consensus.
Thank you! it is all clear now. Can you just confirm if such a programmatic approach will return all possible/usable methods?
liana_wrap(test_data, method = grep("^call_", show_methods(), invert = TRUE, value = TRUE))
Hi @PoGibas,
Yep, this would do it. :)
Method
scconnect
doesn't not work (even with a test data) - returns error message:This method seems to be in the provided method list. For example
liana:::.select_method("scconnect")
returns results, just likeliana:::.select_method("cytotalk")
, butliana:::.select_method("foo")
would give expected error.Code to reproduce
scconnect
error: