
Get GeneMANIA Edges
GetGeneMANIA.edges.RdThis function processes the GM results text file and returns it as a filtered edgelist.
Details
To get the GeneMANIA results text file, click on the three lines in the upper right corner. This should be under the GeneMANIA side window beside the species. Click "Export Results". The path to this file is the gm.results.path. An visual depiction of these instructions in the vignette PTMsToPathways under the GeneMANIA section.
Examples
ex.gm.results.path <- system.file("extdata/ex_gm_edgetable.csv", package = "PTMsToPathways")
example.GeneMANIA.edges <- GetGeneMANIA.edges(ex.gm.results.path, ex.gene.cccn.nodes)
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> Error in start_line[1]:(end_line[1] - 1): NA/NaN argument
utils::head(example.GeneMANIA.edges)
#> Error: object 'example.GeneMANIA.edges' not found