|
322 | 322 | "outputs": [], |
323 | 323 | "source": [ |
324 | 324 | "setup_kwargs = {\n", |
325 | | - " \"sample_key\": \"sample\", # specify column in adata.obs that contains the individual slide ID\n", |
326 | | - " \"labels_key\": \"cell_type\", # specify column in adata.obs that contains the cell type labels\n", |
327 | | - " \"cell_coordinates_key\": \"spatial\", # specify key in adata.obsm that contains the spatial coordinates\n", |
328 | | - " \"expression_embedding_key\": \"X_scANVI\", # specify key in adata.obsm that contains the expression embedding\n", |
| 325 | + " \"sample_key\": \"sample\", # column in adata.obs that contains the individual slide ID\n", |
| 326 | + " \"labels_key\": \"cell_type\", # column in adata.obs that contains the cell type labels\n", |
| 327 | + " \"cell_coordinates_key\": \"spatial\", # spatial coordinates key in adata.obsm\n", |
| 328 | + " \"expression_embedding_key\": \"X_scANVI\", # expression embedding key in adata.obsm\n", |
329 | 329 | "}" |
330 | 330 | ] |
331 | 331 | }, |
|
410 | 410 | "source": [ |
411 | 411 | "scvi.external.SCVIVA.setup_anndata(\n", |
412 | 412 | " adata,\n", |
413 | | - " layer=\"counts\", # specify layer in adata that contains the raw counts\n", |
414 | | - " batch_key=\"sample\", # specify column in adata.obs that contains the batch covariate to correct for\n", |
| 413 | + " layer=\"counts\", # adata layer that contains the raw counts\n", |
| 414 | + " batch_key=\"sample\", # column in adata.obs that contains the batch covariate\n", |
415 | 415 | " **setup_kwargs,\n", |
416 | 416 | ")" |
417 | 417 | ] |
|
0 commit comments