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

CZI-tiledb SCVI Custom Dataloader additions #1339

Open
wants to merge 2 commits into
base: ebezzi/census-scvi-datamodule
Choose a base branch
from

Conversation

ori-kron-wis
Copy link

Adding the SCVI-Tools team addition to the Ebezzi/census branch scvi datamodule from cellxgene.

CHANGED TO MAKE IT RUN ON SCVI-TOOLS
label_keys
List of obs column names concatenated to form the label column.
unlabeled_category
Value used for unlabeled cells in `labels_key` used to set up CZI datamodule with scvi.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Value used for unlabeled cells in `labels_key` used to set up CZI datamodule with scvi.
Value used for unlabeled cells in `labels_key` used to set up `CensusSCVIDataModule`.

@@ -577,7 +579,7 @@ def __init__(
experimental
"""
self.exp_uri = experiment.uri
self.aws_region = experiment.context.tiledb_ctx.config().get("vfs.s3.region")
self.aws_region = experiment.context.tiledb_ctx#.config().get("vfs.s3.region")
Copy link
Member

Choose a reason for hiding this comment

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

This seems a bit suspicious - can you remind me what exactly required this change?


# basicaly we should mimiC everything below to any model census in scvi
adata_orig = synthetic_iid()
scvi.model.SCVI.setup_anndata(adata_orig, batch_key="batch")
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain a bit what synthetic_iid() generates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants