saezlab / liana

LIANA: a LIgand-receptor ANalysis frAmework
https://saezlab.github.io/liana/
GNU General Public License v3.0
176 stars 31 forks source link

Issue with using the example dictionary to do orthology conversion #146

Closed XinruSu closed 5 months ago

XinruSu commented 5 months ago

Hi!

I'm wondering how to generate homologs with a custom dictionary because I encountered the following error when using generate_homologs() with the example dictionary provided in the vignettes:

symbols_dict <- readRDS(file.path(liana_path, "human_mouse_orthologues.RDS"))
head(symbols_dict)

op_resource <- select_resource(resource)[[1]]
ortholog_resource <- generate_homologs(op_resource = op_resource,
                                       target_organism = "test_mouse",
                                       symbols_dict = symbols_dict)

One-to-many homolog matches:
Error in `mutate()`:
ℹ In argument: `across(all_of(columns), ~recode.character2(.x, .missing_fun = .missing_fun))`.
Caused by error in `across()`:
! Can't compute column `source_genesymbol`.
Caused by error in `recode.character2()`:
! No replacements provided.
Run `rlang::last_trace()` to see where the error occurred.

Could you please give me some help? Thanks a lot!

Best wishes,

Xinru

katiestoker commented 1 month ago

Hello,

Did you manage to solve this error? Thanks.

Kind regards, Katie.