Extracts the core modules from a set of collections output by Multi-Dendrix. Core modules are defined by how often genes appear in the same gene set together for different parameters of Multi-Dendrix (“how often” is tunable using the stability threshold).
Parameters: |
|
---|
>>> import networkx as nx
>>> collections = [ [["G1", "G2", "G3"], ["G4", "G5", "G6"]],
[["G1", "G2", "G3"], ["G4", "G5", "G6", "G7"]],
[["G1", "G2", "G3"], ["G4", "G5", "G7", "G8"]] ]
>>> core_modules, module_graph = extract(collections, 1)
>>> core_modules
[['G7', 'G6', 'G5', 'G4'], ['G3', 'G2', 'G1']]
>>> nx.draw_circular(module_graph, node_size=125, font_size=8)