Closed RMOsborn012 closed 1 year ago
Hi @RMOsborn012,
Your error occurs because in that case, the LRscore column no longer exists, if I recall correctly it should be called sca.LRscore instead (method names are appended to score names).
I believe I see where you are also coming from with this, and we recently wrote detailed tutorials on LIANA x Tensor here: https://ccc-protocols.readthedocs.io/en/latest/notebooks/ccc_R/QuickStart.html https://ccc-protocols.readthedocs.io/en/latest/notebooks/ccc_R/02-Infer-Communication-Scores.html
These are still work in progress, but in them we already use magnitude rank aggregation (available in the latest liana version), in case this is what you were interested in.
Hope this helps!
Daniel
PS. This is controlled via the aggregate_how
parameter of liana_bysample
.
@dbdimitrov Thank you so much, this worked out perfectly.
Perfect!
I am running the Context Factorisation with tensor-cell2cell tutorial on my own data and have run everything exactly as the tutorial says with success. However, I recently decided to use all of the default methods in the original liana tutorial (
method = c("natmi", "connectome", "logfc", "sca", "cellphonedb"), # use the same methods as default Liana
) in place of the sca-only method in the tutorial for theliana_bysample
function (method = "sca", # we use SingleCellSignalR's score alone
).The documentation allows for multiple methods by default, however, when implementing the
liana_tensor_c2c
function, I am now getting the following error:How can I fix this?