# \#integration

**URL:** https://discourse.scverse.org/tag/integration/3.md

[Latest](https://discourse.scverse.org/latest.md) · [Categories](https://discourse.scverse.org/categories.md) · [Tags](https://discourse.scverse.org/tags.md)

---

## [Can scVI take as input SCT-normalized data?](https://discourse.scverse.org/t/can-scvi-take-as-input-sct-normalized-data/4042)

<div class="topic-metadata">

**Author:** [@gboscagli](https://discourse.scverse.org/u/gboscagli)\
**Replies:** 2\
**Last updated:** [September 8, 2026, 8:53am UTC](https://discourse.scverse.org/t/can-scvi-take-as-input-sct-normalized-data/4042 "2026-09-08T08:53:42Z")

</div>

Hi all, i am trying to perform scVI integration on a merged dataset processed in R and normalized with scTransform. I want to use native Python implementation rather than Seurat wrapper, since i want to play around with…

---

## [Open-source pipeline for integrating spatial transcriptomics and proteomics in 3D microscopy](https://discourse.scverse.org/t/open-source-pipeline-for-integrating-spatial-transcriptomics-and-proteomics-in-3d-microscopy/4046)

<div class="topic-metadata">

**Author:** [@yumin-lian](https://discourse.scverse.org/u/yumin-lian)\
**Replies:** 0\
**Last updated:** [September 4, 2026, 9:33pm UTC](https://discourse.scverse.org/t/open-source-pipeline-for-integrating-spatial-transcriptomics-and-proteomics-in-3d-microscopy/4046 "2026-09-04T21:33:24Z")

</div>

We developed a machine-learning-aided analysis pipeline for highly multiplexed spatial transcriptomics and proteomics data from mouse brain tissue. The pipeline integrates image processing, 3D registration, cell/nucleus …

---

## [Allowed downstream analysis with get\_normalized\_expression?](https://discourse.scverse.org/t/allowed-downstream-analysis-with-get-normalized-expression/4039)

<div class="topic-metadata">

**Author:** [@gboscagli](https://discourse.scverse.org/u/gboscagli)\
**Replies:** 6\
**Last updated:** [July 30, 2026, 9:06am UTC](https://discourse.scverse.org/t/allowed-downstream-analysis-with-get-normalized-expression/4039 "2026-07-30T09:06:34Z")

</div>

Greetings all, Hope I won’t be redundant with this issue. I am interested in finding an integration tool which returns a full gene-space batch-corrected matrix to use for downstream analysis, and I bumped into scVI’s g…

---

## [SCVI view\_anndata\_setup causes AttributeError with rich.pretty](https://discourse.scverse.org/t/scvi-view-anndata-setup-causes-attributeerror-with-rich-pretty/4022)

<div class="topic-metadata">

**Author:** [@ggruenhagen3](https://discourse.scverse.org/u/ggruenhagen3)\
**Replies:** 1\
**Last updated:** [July 8, 2026, 6:45am UTC](https://discourse.scverse.org/t/scvi-view-anndata-setup-causes-attributeerror-with-rich-pretty/4022 "2026-07-08T06:45:06Z")

</div>

Hello, I was trying to look at my scvi model using view\_anndata\_setup, but got the error below that says ‘rich has no attribute pretty’. I was actually able to do everything else, like train my model completely fine. Eve…

---

## [Getting normalized expression](https://discourse.scverse.org/t/getting-normalized-expression/3976)

<div class="topic-metadata">

**Author:** [@Kray](https://discourse.scverse.org/u/Kray)\
**Replies:** 13\
**Last updated:** [May 13, 2026, 9:54am UTC](https://discourse.scverse.org/t/getting-normalized-expression/3976 "2026-05-13T09:54:49Z")

</div>

Hi, I am working on a big sized scRNAseq atlas with 2 million cells. I want to get the normalized expression. However, since it returns a data frame/numpy array, I run out of memory every time I am trying to retrieve th…

---

## [Mapping 10X Xenium 5k data to scRNA-seq reference](https://discourse.scverse.org/t/mapping-10x-xenium-5k-data-to-scrna-seq-reference/3953)

<div class="topic-metadata">

**Author:** [@Furbelox](https://discourse.scverse.org/u/Furbelox)\
**Replies:** 3\
**Last updated:** [April 23, 2026, 9:26am UTC](https://discourse.scverse.org/t/mapping-10x-xenium-5k-data-to-scrna-seq-reference/3953 "2026-04-23T09:26:33Z")

</div>

Hello everyone, I’m desperately trying to create a latent space from my scRNA-seq reference and map my Xenium cells to that. “Reference mapping with scvi-tools” worked well for each dataset individually, but together, r…

---

## [MRVI Jax Error "Invalid component distribution"](https://discourse.scverse.org/t/mrvi-jax-error-invalid-component-distribution/3959)

<div class="topic-metadata">

**Author:** [@ggruenhagen3](https://discourse.scverse.org/u/ggruenhagen3)\
**Replies:** 3\
**Last updated:** [April 13, 2026, 2:27pm UTC](https://discourse.scverse.org/t/mrvi-jax-error-invalid-component-distribution/3959 "2026-04-13T14:27:55Z")

</div>

Hello! I am trying to run MRVI on some scRNAseq data and ran into an error (listed below) during model.train(). I initially ran into this error when using jax version 0.9.2 and I saw in the first line of output from mode…

---

## [Plotting the tangram imputed spatial data with spatialdata\_plot](https://discourse.scverse.org/t/plotting-the-tangram-imputed-spatial-data-with-spatialdata-plot/3942)

<div class="topic-metadata">

**Author:** [@mdka00001](https://discourse.scverse.org/u/mdka00001)\
**Replies:** 3\
**Last updated:** [March 11, 2026, 2:02pm UTC](https://discourse.scverse.org/t/plotting-the-tangram-imputed-spatial-data-with-spatialdata-plot/3942 "2026-03-11T14:02:10Z")

</div>

I am trying to plot the features of my tangram imupted spatial data by using the spatial image and cell segmentation of my reference spatial data. In general, I want to render a plot as below: However, only replacing…

---

## [Pseudobulk after Performing integration with scatlasvae or scVI?](https://discourse.scverse.org/t/pseudobulk-after-performing-integration-with-scatlasvae-or-scvi/3821)

<div class="topic-metadata">

**Author:** [@Indianhedgehog](https://discourse.scverse.org/u/Indianhedgehog)\
**Replies:** 4\
**Last updated:** [January 23, 2026, 5:37am UTC](https://discourse.scverse.org/t/pseudobulk-after-performing-integration-with-scatlasvae-or-scvi/3821 "2026-01-23T05:37:19Z")

</div>

Hey everyone, I have integrated my dataset with CD8 dataset Integrative mapping of human CD8+ T cells in inflammation and cancer | Nature Methods, and it integration looks good. I was interested in performing pseudobulk…

---

## [Predict cell type with scANVI for spatial transcriptomics data (Xenium)](https://discourse.scverse.org/t/predict-cell-type-with-scanvi-for-spatial-transcriptomics-data-xenium/3867)

<div class="topic-metadata">

**Author:** [@spatts14](https://discourse.scverse.org/u/spatts14)\
**Replies:** 7\
**Last updated:** [December 28, 2025, 2:31pm UTC](https://discourse.scverse.org/t/predict-cell-type-with-scanvi-for-spatial-transcriptomics-data-xenium/3867 "2025-12-28T14:31:08Z")

</div>

Hi, Thanks so much for the amazing tools! I was hoping someone could help me. I have an in-house dataset of Xenium 5k data and I would like to predict the cell types using a reference dataset. As such, I am also tryin…

---

## [Question about complex experiment](https://discourse.scverse.org/t/question-about-complex-experiment/3864)

<div class="topic-metadata">

**Author:** [@dackjames](https://discourse.scverse.org/u/dackjames)\
**Replies:** 1\
**Last updated:** [November 25, 2025, 7:39pm UTC](https://discourse.scverse.org/t/question-about-complex-experiment/3864 "2025-11-25T19:39:01Z")

</div>

Hi everyone, I’m starting a fairly complex experiment that includes 10x single-cell, single-nucleus, and 10x multiome (snRNA-seq + scATAC-seq from the same nucleus), with control and treatment groups spread across all t…

---

## [Excluding Ig and ribosomal genes from HVG selection in scVI, best practice?](https://discourse.scverse.org/t/excluding-ig-and-ribosomal-genes-from-hvg-selection-in-scvi-best-practice/3833)

<div class="topic-metadata">

**Author:** [@marencc](https://discourse.scverse.org/u/marencc)\
**Replies:** 1\
**Last updated:** [October 22, 2025, 9:15am UTC](https://discourse.scverse.org/t/excluding-ig-and-ribosomal-genes-from-hvg-selection-in-scvi-best-practice/3833 "2025-10-22T09:15:23Z")

</div>

Hi everyone, I’m working with single-cell RNA-seq data from CD45⁺ immune cells (mostly lymphoid lineages) and integrating multiple batches using scVI, which so far has given the best batch correction results. We’re now…

---

## [How to use scib benchmark-metrics evaluate the adata after BBKNN integretion](https://discourse.scverse.org/t/how-to-use-scib-benchmark-metrics-evaluate-the-adata-after-bbknn-integretion/3807)

<div class="topic-metadata">

**Author:** [@wangflmi](https://discourse.scverse.org/u/wangflmi)\
**Replies:** 3\
**Last updated:** [October 7, 2025, 6:40am UTC](https://discourse.scverse.org/t/how-to-use-scib-benchmark-metrics-evaluate-the-adata-after-bbknn-integretion/3807 "2025-10-07T06:40:49Z")

</div>

The paper showed we can use benchmark metrics to evaluate the adata after BBKNN integration. But I can only use some default functions in the benchmark-metrics package to get the batch-remove grades. For bio-conservation…

---

## [Anchor-based integration methods](https://discourse.scverse.org/t/anchor-based-integration-methods/3743)

<div class="topic-metadata">

**Author:** [@diop89890](https://discourse.scverse.org/u/diop89890)\
**Replies:** 1\
**Last updated:** [September 25, 2025, 12:49pm UTC](https://discourse.scverse.org/t/anchor-based-integration-methods/3743 "2025-09-25T12:49:40Z")

</div>

Hi. I am working with flow cytometry data. I have two batches of PBMC samples with the exact same panel, 25 proteins. I have a ML model for cell type prediction on one batch (=anchor) and trying to apply it to another …

---

## [How to Correct for Intra-Organ Batch Effects Without Removing Inter-Organ Differences?](https://discourse.scverse.org/t/how-to-correct-for-intra-organ-batch-effects-without-removing-inter-organ-differences/3731)

<div class="topic-metadata">

**Author:** [@dacon06](https://discourse.scverse.org/u/dacon06)\
**Replies:** 6\
**Last updated:** [August 5, 2025, 11:11am UTC](https://discourse.scverse.org/t/how-to-correct-for-intra-organ-batch-effects-without-removing-inter-organ-differences/3731 "2025-08-05T11:11:34Z")

</div>

Dear Community, I’m currently working on integrating a single-cell RNA-seq dataset of human mesenchymal stem cells (MSCs) using scvi-tools. The dataset includes 11 samples, each from a different donor, across four tissu…

---

## [Can we use resolVI and squidpy to annotate a CosMX object based on a single cell reference?](https://discourse.scverse.org/t/can-we-use-resolvi-and-squidpy-to-annotate-a-cosmx-object-based-on-a-single-cell-reference/3747)

<div class="topic-metadata">

**Author:** [@coarfa](https://discourse.scverse.org/u/coarfa)\
**Replies:** 1\
**Last updated:** [August 3, 2025, 6:14pm UTC](https://discourse.scverse.org/t/can-we-use-resolvi-and-squidpy-to-annotate-a-cosmx-object-based-on-a-single-cell-reference/3747 "2025-08-03T18:14:37Z")

</div>

Hi, Are there tutorials or protocols to assign cell types in CosMX loaded via Squidpy based on a single cell reference ? I think ResolVI might help, but I did not found a clear end to end tutorial When annotating C…

---

## [How to handle batch effects within the query dataset when using scArches + SCVI?](https://discourse.scverse.org/t/how-to-handle-batch-effects-within-the-query-dataset-when-using-scarches-scvi/3728)

<div class="topic-metadata">

**Author:** [@ashenflower](https://discourse.scverse.org/u/ashenflower)\
**Replies:** 1\
**Last updated:** [July 31, 2025, 12:14pm UTC](https://discourse.scverse.org/t/how-to-handle-batch-effects-within-the-query-dataset-when-using-scarches-scvi/3728 "2025-07-31T12:14:23Z")

</div>

Hello everyone, I’m new to scArches and currently exploring how it works in combination with SCVI, particularly for integrating new datasets into a reference atlas. I’m following this tutorial, where a SCVI model is fi…

---

## [Shared cell types not mixing when integrating datasets from different species](https://discourse.scverse.org/t/shared-cell-types-not-mixing-when-integrating-datasets-from-different-species/3685)

<div class="topic-metadata">

**Author:** [@sandcell10](https://discourse.scverse.org/u/sandcell10)\
**Replies:** 4\
**Last updated:** [June 19, 2025, 7:02pm UTC](https://discourse.scverse.org/t/shared-cell-types-not-mixing-when-integrating-datasets-from-different-species/3685 "2025-06-19T19:02:10Z")

</div>

Hello, I am attempting to integrate datasets of the same tissue from different species. Some of the datasets are single-cell while some are single-nucleus. I thought that SCVI would work well for this task, however, as …

---

## [SMART-seq and MARS-seq pipelines](https://discourse.scverse.org/t/smart-seq-and-mars-seq-pipelines/3681)

<div class="topic-metadata">

**Author:** [@Roy](https://discourse.scverse.org/u/Roy)\
**Replies:** 1\
**Last updated:** [June 19, 2025, 5:56pm UTC](https://discourse.scverse.org/t/smart-seq-and-mars-seq-pipelines/3681 "2025-06-19T17:56:00Z")

</div>

Hi all, I’ve been working on a Python-based single-cell pipeline for cross-study integration built around the scverse ecosystem. So far, it works well for 10x Genomics data, but I’m now looking to expand support to othe…

---

## [Domain adaptation to pre-train batch correction model using paired data](https://discourse.scverse.org/t/domain-adaptation-to-pre-train-batch-correction-model-using-paired-data/3633)

<div class="topic-metadata">

**Author:** [@Valerie](https://discourse.scverse.org/u/Valerie)\
**Replies:** 12\
**Last updated:** [May 27, 2025, 6:44am UTC](https://discourse.scverse.org/t/domain-adaptation-to-pre-train-batch-correction-model-using-paired-data/3633 "2025-05-27T06:44:23Z")

</div>

Good afternoon scvi team! I am very new to the scvi tool and moslty have been working with scRNA-seq data within R environment. I came around a specific issue which scvi could potentially be well suited for so I would l…

---

## [scVI batch correction clusters all cells from sample in a circle (potential artifact)](https://discourse.scverse.org/t/scvi-batch-correction-clusters-all-cells-from-sample-in-a-circle-potential-artifact/3664)

<div class="topic-metadata">

**Author:** [@CocoConstant](https://discourse.scverse.org/u/CocoConstant)\
**Replies:** 14\
**Last updated:** [June 3, 2025, 9:05am UTC](https://discourse.scverse.org/t/scvi-batch-correction-clusters-all-cells-from-sample-in-a-circle-potential-artifact/3664 "2025-06-03T09:05:55Z")

</div>

When using scVI for batch correction and clustering on my single-cell data, I observed an unusual result: all cells from the same sample are clustered in a circle, separated from the rest. Changes to n\_latent , training …

---

## [How should I calculate the knn entropy using the leiden clusters?](https://discourse.scverse.org/t/how-should-i-calculate-the-knn-entropy-using-the-leiden-clusters/3537)

<div class="topic-metadata">

**Author:** [@danli349](https://discourse.scverse.org/u/danli349)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 7:55am UTC](https://discourse.scverse.org/t/how-should-i-calculate-the-knn-entropy-using-the-leiden-clusters/3537 "2025-04-10T07:55:39Z")

</div>

Hello: How should I calculate the knn entropy using the leiden clusters? https://arxiv.org/pdf/1506.06501v1 Thanks a lot

---

## [Understanding scVI integration inside R with Seurat v5 & SCTransform](https://discourse.scverse.org/t/understanding-scvi-integration-inside-r-with-seurat-v5-sctransform/3588)

<div class="topic-metadata">

**Author:** [@y.grabovska](https://discourse.scverse.org/u/y.grabovska)\
**Replies:** 1\
**Last updated:** [April 6, 2025, 8:52am UTC](https://discourse.scverse.org/t/understanding-scvi-integration-inside-r-with-seurat-v5-sctransform/3588 "2025-04-06T08:52:48Z")

</div>

I have a set of single-cell libraries from an drug treatment experiment - early timepoint, treatment/DMSO at 3 timepoints (21 libraries total). I have preprocessed each library separately with Seurat using SCTransform v…

---

## [How to fix number of nodes used in HPC environment with scvi.train (via R & reticulate)?](https://discourse.scverse.org/t/how-to-fix-number-of-nodes-used-in-hpc-environment-with-scvi-train-via-r-reticulate/3579)

<div class="topic-metadata">

**Author:** [@ZheFrench](https://discourse.scverse.org/u/ZheFrench)\
**Replies:** 8\
**Last updated:** [April 10, 2025, 6:01am UTC](https://discourse.scverse.org/t/how-to-fix-number-of-nodes-used-in-hpc-environment-with-scvi-train-via-r-reticulate/3579 "2025-04-10T06:01:55Z")

</div>

Hi, I’m using scvi via R using reticulate. All cpu nodes of the clusters are used, I would like to restrain this behavior when I call model$train function. Also I wanted to know if I should start the integration from …

---

## [inferCNVpy after running scVI with batch as key](https://discourse.scverse.org/t/infercnvpy-after-running-scvi-with-batch-as-key/848)

<div class="topic-metadata">

**Author:** [@zvittorio](https://discourse.scverse.org/u/zvittorio)\
**Replies:** 5\
**Last updated:** [March 24, 2025, 7:19am UTC](https://discourse.scverse.org/t/infercnvpy-after-running-scvi-with-batch-as-key/848 "2025-03-24T07:19:32Z")

</div>

Hi scverse community, I have at my disposal a bunch of datasets, of which one is a cancer patient while the other ones are the same organ but in a healthy condition. The idea is to use the cell types of the healthy sam…

---

## [Error when running scvi.data.add\_dna\_sequence](https://discourse.scverse.org/t/error-when-running-scvi-data-add-dna-sequence/3549)

<div class="topic-metadata">

**Author:** [@afarha5](https://discourse.scverse.org/u/afarha5)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 8:08am UTC](https://discourse.scverse.org/t/error-when-running-scvi-data-add-dna-sequence/3549 "2025-03-18T08:08:00Z")

</div>

Hello, I am getting an error when running simple commands like: import genomepy # Define genome directory genome\_dir = "data" # Install mm10 genomepy.install\_genome("mm10",provider="ensembl", genomes\_dir=genome\_dir) …

---

## [SysVI model and normalized expression](https://discourse.scverse.org/t/sysvi-model-and-normalized-expression/3543)

<div class="topic-metadata">

**Author:** [@danieljrichard](https://discourse.scverse.org/u/danieljrichard)\
**Replies:** 1\
**Last updated:** [March 15, 2025, 7:32am UTC](https://discourse.scverse.org/t/sysvi-model-and-normalized-expression/3543 "2025-03-15T07:32:36Z")

</div>

Hello, I was working through this example for running SysVI: And tried running get\_normalized expression. However, I get this error: AttributeError: ‘SysVI’ object has no attribute ‘get\_normalized\_expression’ Howeve…

---

## [Scvi-tools and xenium](https://discourse.scverse.org/t/scvi-tools-and-xenium/2450)

<div class="topic-metadata">

**Author:** [@wangjiawen2013](https://discourse.scverse.org/u/wangjiawen2013)\
**Replies:** 7\
**Last updated:** [March 13, 2025, 5:58pm UTC](https://discourse.scverse.org/t/scvi-tools-and-xenium/2450 "2025-03-13T17:58:30Z")

</div>

Hi, Can I use scvi-tools to process 10x genomics xenium spatial transcriptome dataset ? The following adata is an anndata object from xenium dataset. # Registering the data scvi.model.SCVI.setup\_anndata(adata, layer="c…

---

## [Parameters in training model for integrating datasets with scVI in R](https://discourse.scverse.org/t/parameters-in-training-model-for-integrating-datasets-with-scvi-in-r/3522)

<div class="topic-metadata">

**Author:** [@joweihsieh](https://discourse.scverse.org/u/joweihsieh)\
**Replies:** 13\
**Last updated:** [March 9, 2025, 12:36pm UTC](https://discourse.scverse.org/t/parameters-in-training-model-for-integrating-datasets-with-scvi-in-r/3522 "2025-03-09T12:36:23Z")

</div>

Thanks for developing this tool!! I was trying to use scVI to integrate my datasets. Following the instructions (Integrating datasets with scVI in R — scvi-tools), I was able to run the script successfully without chang…

---

## [TotalVI not fully integrating CITEseq cells with GEX and missing protein values](https://discourse.scverse.org/t/totalvi-not-fully-integrating-citeseq-cells-with-gex-and-missing-protein-values/3473)

<div class="topic-metadata">

**Author:** [@timslittle](https://discourse.scverse.org/u/timslittle)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 4:38pm UTC](https://discourse.scverse.org/t/totalvi-not-fully-integrating-citeseq-cells-with-gex-and-missing-protein-values/3473 "2025-02-06T16:38:49Z")

</div>

Hi Team, Apologies if I’m doing something wrong here! I have a CITEseq dataset in which some cells have good quality RNAseq values but poor quality ADT, so these ADT values have been removed. I tried using TotalVI to i…

[Next page](https://discourse.scverse.org/tag/integration/3.md?match_all_tags=true&page=1&tags%5B%5D=integration)
