Convert Cnet igraph to incidence matrix
Arguments
- g
igraph object containing Cnet data, specifically vertex attribute name "nodeType" with values "Set" and "Gene", and where "Set" nodes are only connected to "Gene" nodes.
- df
data.frame as optional input instead of
g, usually the result of a previous call tocnet2df().- ...
additional arguments are ignored.
Value
numeric matrix with colnames defined by "Set" node
names, and rownames defined by "Gene" node names.
Details
This function takes igraph object containing "Cnet" data,
including vertex attribute "nodeType" with values "Set"
and "Gene", and where "Set" nodes are only connected
to "Gene" nodes. It returns an incidence matrix whose
columns are "Set" node names and whose rows are "Gene"
node names.
See also
Other jam igraph functions:
cnet2df(),
cnetplotJam(),
cnetplot_internalJam(),
color_edges_by_nodegroups(),
color_edges_by_nodes(),
color_edges_by_nodes_deprecated(),
color_nodes_by_nodegroups(),
communities2nodegroups(),
drawEllipse(),
edge_bundle_bipartite(),
edge_bundle_nodegroups(),
enrichMapJam(),
fixSetLabels(),
flip_edges(),
get_bipartite_nodeset(),
highlight_edges_by_node(),
igraph2pieGraph(),
jam_igraph(),
jam_plot_igraph(),
label_communities(),
layout_with_qfr(),
layout_with_qfrf(),
mem2emap(),
memIM2cnet(),
mem_multienrichplot(),
nodegroups2communities(),
rectifyPiegraph(),
relayout_with_qfr(),
removeIgraphBlanks(),
removeIgraphSinglets(),
reorderIgraphNodes(),
rotate_igraph_layout(),
spread_igraph_labels(),
subgraph_jam(),
subsetCnetIgraph(),
subset_igraph_components(),
sync_igraph_communities(),
with_qfr()
Other jam conversion functions:
cnet2df(),
enrichDF2enrichResult(),
enrichList2IM(),
enrichList2df(),
enrichMapJam()