Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageRank presents with an error #46

Open
nsalomonis opened this issue Aug 9, 2020 · 1 comment
Open

PageRank presents with an error #46

nsalomonis opened this issue Aug 9, 2020 · 1 comment

Comments

@nsalomonis
Copy link
Owner

ICGS-NMF errors when performing Down-Sampling

The error specifically is encountered in the PageRankSampling function of the ICGS_NMF module in the networkx library when calling:
neighbours=list(G.adj[key1])

producing a KeyError for return AtlasView(self._atlas[name])

The error can be overcome by increasing the down-sampling threshold (default = 2500 cells), however, the down-sampling option is not available in the version 2.1.4.2 GUI.

@nsalomonis
Copy link
Owner Author

There are two interim solutions introduced in version 2.1.4.3 to solve this problem:

  1. Enable the end-user to increase the down-sampling threshold in the GUI by adding the option: (optional) Cells to down-sample to (PageRank).
  2. Automatically catch any errors in the PageRankSampling function and increase in the number of cells to downsample to by 1000 (while loop). Typically, setting the option to 5000 in the GUI or command-line (--downsample 5000), resolves this problem by selecting more cells for down-sampling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant