Skip to content

Commit faaf8e9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e972ded commit faaf8e9

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

exploratory/notebooks/clustering_issues.ipynb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,10 @@
243243
],
244244
"source": [
245245
"# Visualise the embeddings\n",
246-
"from mmcontext.pl import plot_umap\n",
247246
"from mmcontext.pp.utils import consolidate_low_frequency_categories\n",
248247
"\n",
248+
"from mmcontext.pl import plot_umap\n",
249+
"\n",
249250
"adata_cut = consolidate_low_frequency_categories(adata, [\"cell_type\"], threshold=10)\n",
250251
"label_key = \"cell_type\"\n",
251252
"emb_key = \"mmcontext_emb\"\n",
@@ -364,9 +365,10 @@
364365
],
365366
"source": [
366367
"# Visualise the embeddings\n",
367-
"from mmcontext.pl import plot_umap\n",
368368
"from mmcontext.pp.utils import consolidate_low_frequency_categories\n",
369369
"\n",
370+
"from mmcontext.pl import plot_umap\n",
371+
"\n",
370372
"label_key = \"tissue\"\n",
371373
"adata_cut = consolidate_low_frequency_categories(adata, [\"tissue\"], threshold=0)\n",
372374
"emb_key = \"mmcontext_emb\"\n",
@@ -417,9 +419,10 @@
417419
],
418420
"source": [
419421
"# Does maybe the original text embedding cluster after tissues?\n",
420-
"from mmcontext.pl import plot_umap\n",
421422
"from mmcontext.pp.utils import consolidate_low_frequency_categories\n",
422423
"\n",
424+
"from mmcontext.pl import plot_umap\n",
425+
"\n",
423426
"label_key = \"tissue\"\n",
424427
"adata_cut = consolidate_low_frequency_categories(adata, [label_key], threshold=15)\n",
425428
"emb_key = \"og_text_emb\"\n",

exploratory/notebooks/mmcontext_train_old.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,10 @@
17671767
],
17681768
"source": [
17691769
"# Visualise the embeddings\n",
1770-
"from mmcontext.pl import plot_umap\n",
17711770
"from mmcontext.pp.utils import consolidate_low_frequency_categories\n",
17721771
"\n",
1772+
"from mmcontext.pl import plot_umap\n",
1773+
"\n",
17731774
"label_key = \"_scvi_batch\"\n",
17741775
"adata_cut = consolidate_low_frequency_categories(adata, [\"cell_type\"], threshold=5, remove=True)\n",
17751776
"plot_umap(adata_cut, color_key=label_key, embedding_key=\"mmcontext_emb\")"

exploratory/notebooks/text_batches.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@
186186
],
187187
"source": [
188188
"# Visualise the embeddings\n",
189-
"from mmcontext.pl import plot_umap\n",
190189
"from mmcontext.pp.utils import consolidate_low_frequency_categories\n",
191190
"\n",
191+
"from mmcontext.pl import plot_umap\n",
192+
"\n",
192193
"adata_cut = consolidate_low_frequency_categories(adata, [\"cell_type\"], threshold=10)\n",
193194
"label_key = \"_scvi_batch\"\n",
194195
"plot_umap(adata_cut, color_key=label_key, embedding_key=\"X_text\")"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ include = [ "mmcontext*" ]
9191
[tool.setuptools.package-data]
9292
#"mmcontext.conf" = [ "*.json" ]
9393

94+
[tool.uv.sources]
95+
#sentence-transformers = { git = "https://github.com/mengerj/sentence-transformers.git", rev = "master" }
96+
9497
[tool.ruff]
9598
line-length = 120
9699
src = [ "src" ]
@@ -163,6 +166,3 @@ skip = [
163166
"docs/references.md",
164167
"docs/notebooks/example.ipynb",
165168
]
166-
167-
[tool.uv.sources]
168-
#sentence-transformers = { git = "https://github.com/mengerj/sentence-transformers.git", rev = "master" }

0 commit comments

Comments
 (0)