# The totalVI DE test; gene names

**URL:** <https://discourse.scverse.org/t/the-totalvi-de-test-gene-names/474>\
**Category:** scvi-tools\
**Tags:** totalvi\
**Created:** [May 22, 2022, 6:53pm UTC](https://discourse.scverse.org/t/the-totalvi-de-test-gene-names/474 "2022-05-22T18:53:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milcah](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@Milcah](https://discourse.scverse.org/u/Milcah)\
**Post date:** [May 22, 2022, 6:53pm UTC](https://discourse.scverse.org/t/the-totalvi-de-test-gene-names/474/1 "2022-05-22T18:53:26Z")

</div>

Hello,  
I was using the totalVI de test with scvi tools 0.13.0. After updating to scvi tools 0.16.0 I am not able to get the gene names as the first column of the de\_df matrix. Rather, the first column is the number corresponding to the gene or feature as given in my adata.var[‘features’]. Is this related to the updated version of scvi tools or is there something else that I may be missing?

Thank you

Milcah

---

<div class="post-metadata">

**Author:** ![Justin\_Hong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/justin_hong/32/85_2.png) [@Justin\_Hong](https://discourse.scverse.org/u/Justin_Hong)\
**Post date:** [May 23, 2022, 8:18pm UTC](https://discourse.scverse.org/t/the-totalvi-de-test-gene-names/474/2 "2022-05-23T20:18:12Z")

</div>

Hi,

Thanks for using scvi-tools. Could you paste code to reproduce this issue? I tried reproducing on 0.16.2, but found the index of the resulting dataframe of `model.differential_expression` still shows the appropriate var names rather than indices.

Best,  
Justin

---

<div class="post-metadata">

**Author:** ![Milcah](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@Milcah](https://discourse.scverse.org/u/Milcah)\
**Post date:** [May 24, 2022, 2:29pm UTC](https://discourse.scverse.org/t/the-totalvi-de-test-gene-names/474/3 "2022-05-24T14:29:23Z")

</div>

Hi Justin

Thank you for your response. I was able to figure out that it was the update to AnnData 0.8.0 from 0.7.6 that underlying the issue of not having gene names. When I loaded my Anndata object with AnnData 0.8.0 my adata.var[‘features’] array was changed so that the row names were indices. I did pip install AnnData 0.7.6 in my environment and then loaded my Anndata object and now I can see the appropriate var names!

So in short, it was my AnnData object structure and not scvi tools and the version of anndata mattered.

Thank you  
Milcah
