Add jaccard
as an additional method in sc.pp.neighbors
#3831
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds
jaccard
as amethod
insc.pp.neighbors
alongsideumap
andgauss
. The method performs a weighting of the kNN adjacency graph using Jaccard coefficients between pairs of connected vertices. This is the weighting used in the PhenoGraph package and in Seurat, and it is especially useful to include it here in light of PhenoGraph no longer being actively maintained and thesc.external
API being slated for removal, as mentioned in #3828.N.b., the present implementation of the weighting is notably faster than that in PhenoGraph, since it avoids looping over set intersections in favour of sparse matrix operations, but it returns identical results for identical input matrices of kNN indices.
jaccard
as an additionalmethod
insc.pp.neighbors
#3828umap
andgauss
)