|  | 
| 31 | 31 | from webweb import Web | 
| 32 | 32 | from wordcloud import STOPWORDS, WordCloud | 
| 33 | 33 | 
 | 
| 34 |  | -from . import dendrogram, utils, wgcna | 
|  | 34 | +from . import dendrogram, utils_old, wgcna | 
| 35 | 35 | from .linkers import get_clustergrammer_link | 
| 36 | 36 | from .translate import hex2rgb, mpl_to_html_image | 
| 37 | 37 | 
 | 
| @@ -1440,7 +1440,7 @@ def get_notebook_network_pyvis(graph, args={}): | 
| 1440 | 1440 |     notebook_net.barnes_hut(overlap=0.8) | 
| 1441 | 1441 |     notebook_net.from_nx(graph) | 
| 1442 | 1442 |     notebook_net.show_buttons(["nodes", "edges", "physics"]) | 
| 1443 |  | -    utils.generate_html(notebook_net) | 
|  | 1443 | +    utils_old.generate_html(notebook_net) | 
| 1444 | 1444 | 
 | 
| 1445 | 1445 |     return notebook_net | 
| 1446 | 1446 | 
 | 
| @@ -1649,7 +1649,7 @@ def get_network(data, identifier, args): | 
| 1649 | 1649 |         args["title"] = identifier | 
| 1650 | 1650 | 
 | 
| 1651 | 1651 |     if not data.empty: | 
| 1652 |  | -        if utils.check_columns(data, cols=[args["source"], args["target"]]): | 
|  | 1652 | +        if utils_old.check_columns(data, cols=[args["source"], args["target"]]): | 
| 1653 | 1653 |             if "values" not in args: | 
| 1654 | 1654 |                 args["values"] = "width" | 
| 1655 | 1655 |                 data[args["values"]] = 1 | 
| @@ -1720,7 +1720,7 @@ def get_network(data, identifier, args): | 
| 1720 | 1720 |                     nx.set_node_attributes(graph, degrees, "radius") | 
| 1721 | 1721 | 
 | 
| 1722 | 1722 |                 clusters = network_analysis.get_network_communities(graph, args) | 
| 1723 |  | -                col = utils.get_hex_colors(len(set(clusters.values()))) | 
|  | 1723 | +                col = utils_old.get_hex_colors(len(set(clusters.values()))) | 
| 1724 | 1724 |                 colors = {n: col[clusters[n]] for n in clusters} | 
| 1725 | 1725 |                 nx.set_node_attributes(graph, colors, "color") | 
| 1726 | 1726 |                 nx.set_node_attributes(graph, clusters, "cluster") | 
| @@ -1795,7 +1795,7 @@ def get_network(data, identifier, args): | 
| 1795 | 1795 |                 args["stylesheet"] = stylesheet | 
| 1796 | 1796 |                 args["layout"] = layout | 
| 1797 | 1797 | 
 | 
| 1798 |  | -                cy_elements, mouseover_node = utils.networkx_to_cytoscape(vis_graph) | 
|  | 1798 | +                cy_elements, mouseover_node = utils_old.networkx_to_cytoscape(vis_graph) | 
| 1799 | 1799 | 
 | 
| 1800 | 1800 |                 app_net = get_cytoscape_network(cy_elements, identifier, args) | 
| 1801 | 1801 |                 # args['mouseover_node'] = mouseover_node | 
|  | 
0 commit comments