Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
XinruSu opened this issue Apr 15, 2024 · 0 comments
Closed

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

XinruSu opened this issue Apr 15, 2024 · 0 comments

Comments

@XinruSu
Copy link

XinruSu commented Apr 15, 2024

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

@XinruSu XinruSu closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant