Closed gleb-gavrish closed 3 years ago
Hey Gleb,
The convert_genes function is an internal function that's used by create_domino to convert the signaling database from HGNC symbol to MGI symbol using BioMart. If you use the gene_conv parameter in create_domino it should automatically handle everything for you. If that isn't functioning properly, feel free to respond and I can try to help you work it out.
If you want to access the function for your own use elsewhere, you have two options. The first is to manually edit domino/R/import_fxns.R to include an #' @export flag in the convert_genes documentation section. When you then run devtools::document() and devtools::install() it will export convert_genes. The second is simply to copy the function from import_fxns.R from github directly (in the R folder as well).
Hopefully this gives you some clarity.
Chris
Thanks! It was very informative! :)
Hi! I am having a similar issue with @lothm2014 -- when I'm running convert_genes() function, the error 'Could not find function "convert_genes"' appears.
> library(domino)
> convert_genes()
Error in convert_genes() : could not find function "convert_genes"
The find() function also can't find convert_genes()
> find('convert_genes')
character(0)
But the funniest part is the fact that other functions work properly!
> signaling_heatmap()
Error in signaling_heatmap() : argument "dom" is missing, with no default
> create_domino()
Error in create_domino() :
Either ser or clusters and z_scores must be provided
> find('signaling_heatmap')
[1] "package:domino"
> find('create_domino')
[1] "package:domino"
Also, I have functions documentation for all functions, even for convert_genes(). You've previously written, that the function isn't exported. But I have no idea how to export it by myself :( I will drop my sessionInfo() and NAMESPACE below. In NAMESPACE (similar to the GitHub version) there is no export(convert_genes) line. Maybe it's a clue?
My sessionInfo():
> sessionInfo()
NAMESPACE: