| pagerank.render | R Documentation |
Nodes in each AGS supply a uniform personalization vector to
igraph::page_rank(). PageRank probabilities are summed over each FGS.
pagerank.render(
ags,
fgs,
net,
damping = 0.15,
use_edge_weights = FALSE,
case_sensitive = FALSE,
n_cores = 1L,
verbose = TRUE
)
ags |
Named list of altered gene sets. |
fgs |
Named list of functional gene sets. |
net |
Undirected igraph network, or a legacy network with a named
adjacency list in |
damping |
PageRank damping factor in the interval |
use_edge_weights |
Use the igraph |
case_sensitive |
Use case-sensitive identifier matching. By default, identifiers in AGS, FGS, and NET are matched case-insensitively. |
n_cores |
Positive integer number of worker processes. Independent AGS personalization vectors are distributed across workers when greater than one. |
verbose |
Report progress with |
With use_edge_weights = FALSE, NEArender explicitly suppresses
igraph's automatic use of a weight attribute. With TRUE, each
source node's edge weights are normalized to transition probabilities by
PageRank. Returned pathway affinities are relative scores, not p- or
q-values.
A nearender_result. scores$pagerank is an FGS-by-AGS matrix
obtained by summing personalized PageRank probabilities over each FGS;
statistics$pagerank is the identical master score matrix.
diagnostics reports original and mapped AGS/FGS sizes, and
parameters records damping, edge-weight use, case policy, and workers.
rwr.render(), nea.render(), spectral.render()
edges <- data.frame(from = c("A", "A", "B"), to = c("B", "C", "C"),
confidence = c(5, 1, 2))
net <- import_network(edges, "from", "to", "confidence",
species = NULL, input_id_format = "custom", verbose = FALSE)
ags <- list(sample = "a")
fgs <- list(pathway_b = "b", pathway_c = "c")
page <- pagerank.render(ags, fgs, net, verbose = FALSE)
page$scores$pagerank
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.