-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Hi I think there's an error in .
When I run a test:
import numpy as np
import phenograph
tmp = np.random.rand(100,10)
communities, graph, Q = phenograph.cluster(tmp)
I get a permission error. It might be due for this: This happens if you are trying to open a file, but your path is a folder.
PermissionError Traceback (most recent call last)
in
6
7 tmp = np.random.rand(100,10)
----> 8 communities, graph, Q = phenograph.cluster(tmp)
~/.conda/envs/pypandaenv1/lib/python3.8/site-packages/phenograph/cluster.py in cluster(data, clustering_algo, k, directed, prune, min_cluster_size, jaccard, primary_metric, n_jobs, q_tol, louvain_time_limit, nn_method, partition_type, resolution_parameter, n_iterations, use_weights, seed, **kargs)
348 communities, Q = "", ""
349 if clustering_algo == "louvain":
--> 350 communities, Q = run_louvain(graph, q_tol, louvain_time_limit)
351
352 elif clustering_algo == "leiden":
~/.conda/envs/pypandaenv1/lib/python3.8/site-packages/phenograph/cluster.py in run_louvain(graph, q_tol, louvain_time_limit)
162 uid = uuid.uuid1().hex
163 graph2binary(uid, graph)
--> 164 communities, Q = runlouvain(uid, tol=q_tol, time_limit=louvain_time_limit)
165
166 # clean up
~/.conda/envs/pypandaenv1/lib/python3.8/site-packages/phenograph/core.py in runlouvain(filename, max_runs, time_limit, tol)
259 filename + "_graph.weights",
260 ]
--> 261 p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
262 out, err = p.communicate()
263 # check for errors from convert
~/.conda/envs/pypandaenv1/lib/python3.8/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
856 encoding=encoding, errors=errors)
857
--> 858 self._execute_child(args, executable, preexec_fn, close_fds,
859 pass_fds, cwd, env,
860 startupinfo, creationflags, shell,
~/.conda/envs/pypandaenv1/lib/python3.8/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1704 if errno_num != 0:
1705 err_msg = os.strerror(errno_num)
-> 1706 raise child_exception_type(errno_num, err_msg, err_filename)
1707 raise child_exception_type(err_msg)
1708
PermissionError: [Errno 13] Permission denied: '/udd/remge/.conda/envs/pypandaenv1/lib/python3.8/site-packages/phenograph/louvain/linux-convert'