subsetCnetIgraph | R Documentation |
Subset Cnet igraph
subsetCnetIgraph(
gCnet,
includeSets = NULL,
includeGenes = NULL,
remove_singlets = TRUE,
minSetDegree = 1,
minGeneDegree = 1,
remove_blanks = FALSE,
spread_labels = TRUE,
force_relayout = TRUE,
do_reorder = TRUE,
repulse = 4,
layout = NULL,
verbose = FALSE,
...
)
gCnet |
igraph object representing Cnet concept network data |
includeSets |
character vector, or NULL, containing the set names or labels to retain. |
includeGenes |
character vector, or NULL, containing the gene names or labels to retain. |
remove_singlets |
logical whether to remove singlet graph nodes,
which are nodes that have no remaining edges. Note that
argument |
minSetDegree |
integer value indicating the minimum number
of edges each Set node must have to be retained in the resulting
igraph. Use |
minGeneDegree |
integer value indicating the minimum number
of edges each Gene node must have to be retained in the resulting
igraph. Use |
remove_blanks |
logical indicating whether to call
|
spread_labels |
logical indicating whether to call
|
force_relayout |
logical indicating whether to re-apply
the |
do_reorder |
logical indicating whether to call
|
layout |
function that takes |
verbose |
logical indicating whether to print verbose output. |
... |
additional arguments are ignored. |
This function produces a subset of a Cnet igraph based upon supplied set names or gene names. This function is intended to be a convenient method of filtering a Cnet igraph to a pre-defined set of "Set" names.
The function assumes graph nodes have an attribute "nodeType"
with
values either "Set"
or "Gene"
to indicate the type of node.
When includeSets
is supplied, the graph is subsetted to include
only nodes with nodeType="Set"
with matching V(gCnet)$name
or
V(gCnet)$label
. Then only neighboring nodes are retained, thus
removing any nodes with nodeType="Gene"
that do not connect to
any of the given Set nodes.
The result is a proper Cnet igraph that only contains
Gene nodes connected to the subset of Set nodes.
If includeGenes
is supplied, the graph is subsetted to include
only nodes with nodeType="Gene"
with matching V(gCnet)$name
or
V(gCnet)$label
.
When removeSinglets=TRUE
then any nodes that have no remaining
edges are removed. Especially when supplying includeGenes
, this
option is useful to hide any Set nodes that have no connected Gene
nodes.
Other jam igraph functions:
cnet2df()
,
cnet2im()
,
cnetplotJam()
,
cnetplot_internalJam()
,
color_edges_by_nodegroups()
,
color_edges_by_nodes_deprecated()
,
color_edges_by_nodes()
,
color_nodes_by_nodegroups()
,
communities2nodegroups()
,
drawEllipse()
,
edge_bundle_bipartite()
,
edge_bundle_nodegroups()
,
enrichMapJam()
,
fixSetLabels()
,
flip_edges()
,
get_bipartite_nodeset()
,
igraph2pieGraph()
,
jam_igraph()
,
jam_plot_igraph()
,
label_communities()
,
layout_with_qfrf()
,
layout_with_qfr()
,
mem2emap()
,
memIM2cnet()
,
mem_multienrichplot()
,
nodegroups2communities()
,
rectifyPiegraph()
,
relayout_with_qfr()
,
removeIgraphBlanks()
,
removeIgraphSinglets()
,
reorderIgraphNodes()
,
rotate_igraph_layout()
,
spread_igraph_labels()
,
subgraph_jam()
,
subset_igraph_components()
,
sync_igraph_communities()
,
with_qfr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.