Skip to content

Commit 9802827

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

popv/algorithms/_bbknn.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ def compute_integration(self, adata):
103103

104104
self.method_kwargs.pop("approx", None) # approx not supported in rsc
105105
self.method_kwargs.pop("use_annoy", None) # use_annoy not supported in rsc
106-
rsc.pp.bbknn(
107-
adata, batch_key=self.batch_key, use_rep="X_pca", algorithm="ivfflat", **self.method_kwargs
108-
)
106+
rsc.pp.bbknn(adata, batch_key=self.batch_key, use_rep="X_pca", algorithm="ivfflat", **self.method_kwargs)
109107
else:
110108
sc.external.pp.bbknn(adata, batch_key=self.batch_key, use_rep="X_pca", **self.method_kwargs)
111109

tests/core/test_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def test_annotation_hub(private: bool):
9595
"references": "Tabula Sapiens reveals transcription factor expression, senescence effects, and sex-specific features in cell types from 28 human organs and tissues, The Tabula Sapiens Consortium; bioRxiv, doi: https://doi.org/10.1101/2024.12.03.626516",
9696
"license_info": "cc-by-4.0",
9797
}
98-
hmch = popv.hub.HubModelCardHelper.from_dir(output_folder, anndata_version=anndata.__version__, popv_version=popv.__version__, **model_json)
98+
hmch = popv.hub.HubModelCardHelper.from_dir(
99+
output_folder, anndata_version=anndata.__version__, popv_version=popv.__version__, **model_json
100+
)
99101
hm = popv.hub.HubMetadata.from_anndata(
100102
adata,
101103
popv_version=popv.__version__,

0 commit comments

Comments
 (0)