|
1 |
| -#' Creates an enrichment map for the results of functional enrichment |
| 1 | +#' Creates the plot of the enrichment map graph |
2 | 2 | #'
|
3 |
| -#' Generates a graph for the enrichment map, combining information from `res_enrich` |
4 |
| -#' and `res_de`. This object can be further plotted, e.g. statically via |
5 |
| -#' [igraph::plot.igraph()], or dynamically via |
6 |
| -#' [visNetwork::visIgraph()][visNetwork::visNetwork-igraph] |
| 3 | +#' Generates a graph plot for the enrichment map, as created within `GeneTonic` |
| 4 | +#' via `enrichment_map()`. |
7 | 5 | #'
|
8 |
| -#' @param res_enrich A `data.frame` object, storing the result of the functional |
9 |
| -#' enrichment analysis. See more in the main function, [GeneTonic()], to check the |
10 |
| -#' formatting requirements (a minimal set of columns should be present). |
11 |
| -#' @param res_de A `DESeqResults` object. |
12 |
| -#' @param annotation_obj A `data.frame` object with the feature annotation |
13 |
| -#' information, with at least two columns, `gene_id` and `gene_name`. |
14 |
| -#' @param gtl A `GeneTonic`-list object, containing in its slots the arguments |
15 |
| -#' specified above: `dds`, `res_de`, `res_enrich`, and `annotation_obj` - the names |
16 |
| -#' of the list _must_ be specified following the content they are expecting |
17 |
| -#' @param n_gs Integer value, corresponding to the maximal number of gene sets to |
18 |
| -#' be displayed |
19 |
| -#' @param gs_ids Character vector, containing a subset of `gs_id` as they are |
20 |
| -#' available in `res_enrich`. Lists the gene sets to be displayed. |
21 |
| -#' @param overlap_threshold Numeric value, between 0 and 1. Defines the threshold |
22 |
| -#' to be used for removing edges in the enrichment map - edges below this value |
23 |
| -#' will be excluded from the final graph. Defaults to 0.1. |
| 6 | +#' @param emg An `igraph` object, ideally generated via `enrichment_map()` |
| 7 | +#' @param cluster_fun Character string, containing the name of the function |
| 8 | +#' to be used for clustering the graph of the geneset similarities. Defaults to |
| 9 | +#' "cluster_markov". |
24 | 10 | #' @param scale_edges_width A numeric value, to define the scaling factor for the
|
25 | 11 | #' edges between nodes. Defaults to 200 (works well chained to `visNetwork`
|
26 | 12 | #' functions).
|
27 | 13 | #' @param scale_nodes_size A numeric value, to define the scaling factor for the
|
28 |
| -#' node sizes. Defaults to 5 - works well chained to `visNetwork` functions. |
29 |
| -#' @param color_by Character, specifying the column of `res_enrich` to be used |
30 |
| -#' for coloring the plotted gene sets. Defaults to `gs_pvalue`. |
31 |
| -#' |
32 |
| -#' @return An `igraph` object to be further manipulated or processed/plotted |
| 14 | +#' within GeneTonic |
| 15 | +#' @return A `ggraph` object with the static representation of the enrichment |
| 16 | +#' map graph. |
33 | 17 | #'
|
34 | 18 | #' @importFrom ggraph ggraph
|
35 | 19 | #' @importFrom ggforce geom_mark_hull
|
|
39 | 23 | #' @importFrom scales alpha
|
40 | 24 | #' @importFrom BioNAR layoutByCluster
|
41 | 25 | #'
|
42 |
| -#' @seealso [GeneTonic()] embeds an interactive visualization for the enrichment map |
| 26 | +#' @seealso [enrichment_map()] is used to generate the input igraph object. |
| 27 | +#' Also, [GeneTonic()] embeds an interactive visualization for the enrichment |
| 28 | +#' map (based on the `VisNetwork` package) |
43 | 29 | #'
|
44 | 30 | #' @export
|
45 | 31 | #'
|
|
0 commit comments