Skip to content

Commit

Permalink
Add clustering example to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-bushuiev committed Jun 24, 2024
1 parent 38b1063 commit 7548b02
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 1 deletion.
346 changes: 346 additions & 0 deletions docs/clustering_ppis.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Contents
analysing_ppis
comparing_ppis
deduplicating_ppis
clustering_ppis
retrieving_ppis
splitting_ppis
modules
2 changes: 1 addition & 1 deletion tests/test_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ def test_idist_cluster_embeddings():

# Test that all near duplicates (same letters in IDs) are in same clusters
df = pd.DataFrame({'letters': [x[0] for x in idist.embeddings.keys()], 'labels': labels})
assert df.groupby('letters')['labels'].nunique().eq(1).all()
assert df.groupby('letters')['labels'].nunique().eq(1).all()

0 comments on commit 7548b02

Please sign in to comment.