# H5ad File Characteristics

**URL:** <https://community.brain-map.org/t/h5ad-file-characteristics/3595>\
**Category:** General\
**Created:** [August 22, 2024, 3:30pm UTC](https://community.brain-map.org/t/h5ad-file-characteristics/3595 "2024-08-22T15:30:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karte](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/karte/32/2185_2.png) [@karte](https://community.brain-map.org/u/karte)\
**Post date:** [August 22, 2024, 3:30pm UTC](https://community.brain-map.org/t/h5ad-file-characteristics/3595/1 "2024-08-22T15:30:41Z")

</div>

Hello, I’m currently working with the SEAAD\_MTG\_RNAseq\_final-nuclei.2024-02-13.h5ad dataset and it’s my first time working with RNAseq data, so please excuse the simplicity of the questions. I was just wondering a few things about the dataset

1. Which column name refers to the gene counts?
2. Which column name refers to the mitochondrial count (or is it just the UMI fractional mitochondria column that is available)?
3. Is this data already filtered based on counts and fraction of genes that are mitochondrial? If so, what are the thresholds set for those?
4. Has the data already been normalized?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![kyle.travaglini](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kyle.travaglini](https://community.brain-map.org/u/kyle.travaglini)\
**Post date:** [August 28, 2024, 10:33pm UTC](https://community.brain-map.org/t/h5ad-file-characteristics/3595/2 "2024-08-28T22:33:41Z")

</div>

Hello @karte,

1. “Genes detected” is the number of genes detected per nucleus
2. “Fraction mitochondrial UMIs” is the fraction of total UMIs that are mitochondrial. You can recover the total mitochondrial UMIs by multiplying this by “Number of UMIs”, which is the number of UMIs detected per nucleus.
3. Yes, already filtered for nuclei with a fraction of mitochondrial UMIs less than 0.05. We also apply a filter at the cell cluster level and flag clusters that are outliers for fraction of mitochondrial UMIs. So some nuclei below our threshold would also have been removed. You can see the code for this [here](https://github.com/AllenInstitute/SEA-AD_2024/blob/main/Single%20nucleus%20omics/01_Mapping%20and%20Quality%20Control/RNAseq/iterative_scANVI.py) in the save\_anndata() and clean\_taxonomies() functions.
4. .layers[“UMIs”] is unnormalized counts, while .X has been processed with sc.pp.normalize\_total() and sc.pp.log1p().

Best,  
Kyle

---

<div class="post-metadata">

**Author:** ![edenbelZhang](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/edenbelzhang/32/2358_2.png) [@edenbelZhang](https://community.brain-map.org/u/edenbelZhang)\
**Post date:** [September 15, 2025, 2:12am UTC](https://community.brain-map.org/t/h5ad-file-characteristics/3595/3 "2025-09-15T02:12:08Z")

</div>

Hello, Kyle!

If .layers[“UMIs”] is unnormalized counts, When I run the “.layers[“UMIs”]” in python：sparse matrix of type ‘\<class ‘numpy.float32’\>’. Why not int64?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![kyle.travaglini](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kyle.travaglini](https://community.brain-map.org/u/kyle.travaglini)\
**Post date:** [September 15, 2025, 5:16pm UTC](https://community.brain-map.org/t/h5ad-file-characteristics/3595/4 "2025-09-15T17:16:53Z")

</div>

Hello,

Somewhere along the way the dtype must have been set to float. If you look at the actual values there will only be whole numbers.

Best,

Kyle

---

<div class="post-metadata">

**Author:** ![edenbelZhang](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/edenbelzhang/32/2358_2.png) [@edenbelZhang](https://community.brain-map.org/u/edenbelZhang)\
**Post date:** [September 16, 2025, 2:48am UTC](https://community.brain-map.org/t/h5ad-file-characteristics/3595/5 "2025-09-16T02:48:41Z")

</div>

Hello Kyle,

I look at the actual values and indeed there are only integers.

Thanks for your reply.
