# Vae\_q.latent\_space\_classifer\_ not found in totalVI CITE-seq reference mapping tutorial

**URL:** <https://discourse.scverse.org/t/vae-q-latent-space-classifer-not-found-in-totalvi-cite-seq-reference-mapping-tutorial/1859>\
**Category:** scvi-tools\
**Tags:** totalvi\
**Created:** [November 7, 2023, 4:58pm UTC](https://discourse.scverse.org/t/vae-q-latent-space-classifer-not-found-in-totalvi-cite-seq-reference-mapping-tutorial/1859 "2023-11-07T16:58:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JenniferF](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/jenniferf/32/853_2.png) [@JenniferF](https://discourse.scverse.org/u/JenniferF)\
**Post date:** [November 7, 2023, 4:58pm UTC](https://discourse.scverse.org/t/vae-q-latent-space-classifer-not-found-in-totalvi-cite-seq-reference-mapping-tutorial/1859/1 "2023-11-07T16:58:55Z")

</div>

We are following the tutorial located here to create a reference and map cell idents to a query. [CITE-seq reference mapping with totalVI — scvi-tools](https://docs.scvi-tools.org/en/1.0.1/tutorials/notebooks/totalVI_reference_mapping.html#query-cell-type-prediction)

In “Query cell type prediction”, we receive an error that `vae_q` does not have `latent_space_classifier_`, when running: `predictions = vae_q.latent_space_classifer_.predict(query.obsm["X_totalvi_scarches"])` Should this be `vae` instead of `vae_q`? Or do we need to rerun the code to generate the classifier in the “Train a classifier on the latent space” Section? Thank you!

---

<div class="post-metadata">

**Author:** ![martinkim0](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/martinkim0/32/881_2.png) [@martinkim0](https://discourse.scverse.org/u/martinkim0)\
**Post date:** [November 7, 2023, 10:52pm UTC](https://discourse.scverse.org/t/vae-q-latent-space-classifer-not-found-in-totalvi-cite-seq-reference-mapping-tutorial/1859/2 "2023-11-07T22:52:07Z")

</div>

Hi, thank you for your question. I am unable to reproduce the reported error using the latest version of scvi-tools (1.0.4). Could you let me know what version you are using?

---

<div class="post-metadata">

**Author:** ![JenniferF](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/jenniferf/32/853_2.png) [@JenniferF](https://discourse.scverse.org/u/JenniferF)\
**Post date:** [November 17, 2023, 8:06pm UTC](https://discourse.scverse.org/t/vae-q-latent-space-classifer-not-found-in-totalvi-cite-seq-reference-mapping-tutorial/1859/3 "2023-11-17T20:06:07Z")

</div>

Thank you for the reply. We backtracked our steps and found this was due to some incompatibilities in versions, and we were able to resolve it!

---

<div class="post-metadata">

**Author:** ![martinkim0](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/martinkim0/32/881_2.png) [@martinkim0](https://discourse.scverse.org/u/martinkim0)\
**Post date:** [November 20, 2023, 8:59pm UTC](https://discourse.scverse.org/t/vae-q-latent-space-classifer-not-found-in-totalvi-cite-seq-reference-mapping-tutorial/1859/4 "2023-11-20T20:59:42Z")

</div>

Great! Glad you were able to resolve it.
