Closed sciotlos closed 8 months ago
Hi @sciotlos,
Some resources might use different gene symbol synonyms that get harmonized to the same one through OmniPath
. You can remove these duplicates in your net
dataframe using dplyr::distinct
, and then pass it to run_ulm
. Also, there is no need to use rename_net
if you already provide the correct column names (.source='pathway', .target='genesymbol'
) into the run_ulm
function. Hope this is helpful!
Hi there,
I ran into the same issue when using the MSigDB collection.
net_mysig <- decoupleR::get_resource("MSigDB")
The issue here is, that you have an 1->n mapping from uniprot to genesymbols. Just remove the uniprot column or select only the columns for further analysis and run a unique on these:
net_mysig['mor'] <- 1.0 net_mysig_un <- unique(net_mysig[,c(2,5,6)])
That worked for me for the MSigDB collection and run_fgsea().
Hello,
I'm encountering the following error when trying to either run rename_net() or run_ulm() with a network I loaded using get_resource(), specifically the NetPath data:
NP_net <- get_resource("NetPath")
NP_net
NP_net['mor'] <- 1.0
Next, when I try either of these:
I get this error:
How would I correctly format the NetPath tibble? Or am I not using the proper function for testing? Thanks for your help!