# Subsetting Mouse Whole Cortex and Hippocampus 10x data by brain region?

**URL:** <https://community.brain-map.org/t/subsetting-mouse-whole-cortex-and-hippocampus-10x-data-by-brain-region/2439>\
**Category:** Transcriptomics Explorer\
**Tags:** atlas-mouse-brain-adult\
**Created:** [July 7, 2023, 5:42pm UTC](https://community.brain-map.org/t/subsetting-mouse-whole-cortex-and-hippocampus-10x-data-by-brain-region/2439 "2023-07-07T17:42:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kesavell](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kesavell](https://community.brain-map.org/u/kesavell)\
**Post date:** [July 7, 2023, 5:42pm UTC](https://community.brain-map.org/t/subsetting-mouse-whole-cortex-and-hippocampus-10x-data-by-brain-region/2439/1 "2023-07-07T17:42:11Z")

</div>

We want to compare our snRNAseq data cell types to the Mouse Whole Cortex and Hippocampus 10x dataset. We want to do this for the corresponding brain region only.

Has anyone successfully subset the large 10X gene expression matrix by brain region? We generated a list of nuclei barcodes from the brain region of interest using the ‘Table of cell metadata file’, but extracting the rows from the large 10X ‘gene expression matrix’ file has proved challenging.

Any advice is appreciated!

Thanks,  
Katherine

---

<div class="post-metadata">

**Author:** ![tylermo](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/tylermo/32/155_2.png) [@tylermo](https://community.brain-map.org/u/tylermo)\
**Post date:** [July 7, 2023, 7:50pm UTC](https://community.brain-map.org/t/subsetting-mouse-whole-cortex-and-hippocampus-10x-data-by-brain-region/2439/2 "2023-07-07T19:50:44Z")

</div>

Hi Katherine,

We recognize the challenges in unpacking the large 10x matrices. Sufficient memory should help, but the script outlined here may also be of help: [Gene expression matrix.cvs is too large to load it - #17 by jeremyinseattle](https://community.brain-map.org/t/gene-expression-matrix-cvs-is-too-large-to-load-it/566/17)

If you still have issues, feel free to share more specifics here and we can work it through with you.

In general: how big of a file/matrix is _too_ big for you? (Conversely, what size is preferable?)

Tyler
