Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[misc] Prepare for 1.12.0 release #1061

Merged
merged 5 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/python/cellxgene_census/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ dependencies= [
# NOTE: the tiledbsoma version must be >= to the version used in the Census builder, to
# ensure that the assets are readable (tiledbsoma supports backward compatible reading).
# Make sure this version does not fall behind the builder's tiledbsoma version.
"tiledbsoma~=1.8.0",
# TODO: When ready to release 1.12.0 update tiledbsoma version to 1.9.x and delete this temporary comment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time to delete the comment?

BTW, I believe ~=1.9.1 means anything >1.9.1 and <1.10.0, so this pin should be fine (1.9.0 never existed in the wild)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove comment.

I believe ~=1.9.1

Yea that is my understanding too

"tiledbsoma~=1.9.1",
"anndata",
"numpy>=1.21",
"requests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_embedding(
embedding_shape = (len(obs_soma_joinids), E.shape[1])
embedding = np.full(embedding_shape, np.NaN, dtype=np.float32, order="C")

obs_indexer = soma.tiledbsoma_build_index(obs_soma_joinids, context=E.context)
obs_indexer = soma.IntIndexer(obs_soma_joinids, context=E.context)
for tbl in E.read(coords=(obs_soma_joinids,)).tables():
obs_idx = obs_indexer.get_indexer(tbl.column("soma_dim_0").to_numpy())
feat_idx = tbl.column("soma_dim_1").to_numpy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ def _highly_variable_genes_seurat_v3(
n_batches = len(batch_index.cat.categories)
n_samples = batch_index.value_counts().loc[batch_index.cat.categories.to_numpy()].to_numpy()
if n_batches > 1:
batch_indexer = soma.tiledbsoma_build_index(
batch_index.index.to_numpy(), context=query.experiment.context
).get_indexer
batch_indexer = soma.IntIndexer(batch_index.index.to_numpy(), context=query.experiment.context).get_indexer
batch_codes = batch_index.cat.codes.to_numpy().astype(np.int64)
else:
n_batches = 1
Expand Down
2 changes: 1 addition & 1 deletion api/r/cellxgene.census/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: cellxgene.census
Title: CZ CELLxGENE Discover Cell Census
Version: 1.11.1
Version: 1.12.0
Authors@R:
person("Chan Zuckerberg Initiative Foundation", email = "[email protected]",
role = c("aut", "cre", "cph", "fnd"))
Expand Down
Loading