Skip to content

Commit bf9c2cf

Browse files
correctly documenting the parameters
1 parent feb2685 commit bf9c2cf

File tree

2 files changed

+27
-60
lines changed

2 files changed

+27
-60
lines changed

R/enrichment_map_static.R

+13-27
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
1-
#' Creates an enrichment map for the results of functional enrichment
1+
#' Creates the plot of the enrichment map graph
22
#'
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()`.
75
#'
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".
2410
#' @param scale_edges_width A numeric value, to define the scaling factor for the
2511
#' edges between nodes. Defaults to 200 (works well chained to `visNetwork`
2612
#' functions).
2713
#' @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.
3317
#'
3418
#' @importFrom ggraph ggraph
3519
#' @importFrom ggforce geom_mark_hull
@@ -39,7 +23,9 @@
3923
#' @importFrom scales alpha
4024
#' @importFrom BioNAR layoutByCluster
4125
#'
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)
4329
#'
4430
#' @export
4531
#'

man/plot_emap_static.Rd

+14-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)