It seems that igraph project changed its name
See original GitHub issueWhile I run ‘sc.tl.louvain’, this error raised and told me I should call ‘jgraph’. Is it necessary for me to change the package name of 'igraph’to ‘jgraph’ manually?
---------------------------------------------------------------------------
DeprecationWarning Traceback (most recent call last)
<ipython-input-191-71b705e00011> in <module>
----> 1 sc.tl.louvain(ad_2)
/usr/local/lib/python3.6/dist-packages/scanpy/tools/_louvain.py in louvain(adata, resolution, random_state, restrict_to, key_added, adjacency, flavor, directed, use_weights, partition_type, partition_kwargs, copy)
112 directed = False
113 if not directed: logg.debug(' using the undirected graph')
--> 114 g = utils.get_igraph_from_adjacency(adjacency, directed=directed)
115 if use_weights:
116 weights = np.array(g.es["weight"]).astype(np.float64)
/usr/local/lib/python3.6/dist-packages/scanpy/utils.py in get_igraph_from_adjacency(adjacency, directed)
379 def get_igraph_from_adjacency(adjacency, directed=None):
380 """Get igraph graph from adjacency matrix."""
--> 381 import igraph as ig
382 sources, targets = adjacency.nonzero()
383 weights = adjacency[sources, targets]
/usr/local/lib/python3.6/dist-packages/igraph/__init__.py in <module>
6 __license__ = "MIT"
7
----> 8 raise DeprecationWarning("To avoid name collision with the igraph project, "
9 "this visualization library has been renamed to "
10 "'jgraph'. Please upgrade when convenient.")
DeprecationWarning: To avoid name collision with the igraph project, this visualization library has been renamed to 'jgraph'. Please upgrade when convenient.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
It seems that igraph project changed its name #807 - GitHub
While I run 'sc.tl.louvain', this error raised and told me I should call 'jgraph'. Is it necessary for me to change the package...
Read more >Error with igraph library - deprecated library - Stack Overflow
DeprecationWarning: To avoid name collision with the igraph project, this visualization library has been renamed to 'jgraph'.
Read more >igraph – Network analysis software
igraph is a collection of network analysis tools with the emphasis on efficiency, portability and ease of use. igraph is open source and...
Read more >igraph.pdf - The Comprehensive R Archive Network
Description Routines for simple graphs and network analysis. It can handle large graphs very well and provides functions for generating random ...
Read more >#62642 (cmake 1.1 portgroup sets -DDEBUG for the +debug variant ...
Unlike NDEBUG , DEBUG is not a standard macro name, and should not be used for ... This was completely unexpected to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @YiweiNiu,
Please install
python-igraph
and notigraph
via pip. So runpip install python-igraph
and get rid of theigraph
package. You may have to update youpip
as well.scanpy could just check on import if one of them is installed instead of the package that should be installed, and raise a nicely phrased ImportError.