Skip to content

Commit

Permalink
Merge pull request #108 from patchbio/master
Browse files Browse the repository at this point in the history
fix tsne sparse input matrix error
  • Loading branch information
AvantiShri committed May 18, 2023
2 parents d266458 + 5139dec commit 01a92d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modisco/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,11 @@ def compute_subclusters_and_embedding(self, pattern_comparison_settings,
#convert to csr and sort by indices to (try to) get rid of efficiency warning
distmat_sp = distmat_sp.tocsr()
distmat_sp.sort_indices()

if (compute_embedding):
twod_embedding = sklearn.manifold.TSNE(
perplexity=perplexity,
metric='precomputed',
init="random",
verbose=3, random_state=1234).fit_transform(distmat_sp)
self.twod_embedding = twod_embedding

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
description='TF MOtif Discovery from Importance SCOres',
long_description="""Algorithm for discovering consolidated patterns from base-pair-level importance scores""",
url='https://github.com/kundajelab/tfmodisco',
version='0.5.16.2',
version='0.5.16.3',
packages=find_packages(),
package_data={
'': ['cluster/phenograph/louvain/*convert*', 'cluster/phenograph/louvain/*community*', 'cluster/phenograph/louvain/*hierarchy*']
Expand Down

0 comments on commit 01a92d0

Please sign in to comment.