# Cell hashing analysis using muon

**URL:** <https://discourse.scverse.org/t/cell-hashing-analysis-using-muon/3445>\
**Category:** muon\
**Created:** [January 21, 2025, 7:41pm UTC](https://discourse.scverse.org/t/cell-hashing-analysis-using-muon/3445 "2025-01-21T19:41:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![urjabhatt](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@urjabhatt](https://discourse.scverse.org/u/urjabhatt)\
**Post date:** [July 12, 2025, 2:36pm UTC](https://discourse.scverse.org/t/cell-hashing-analysis-using-muon/3445/2 "2025-07-12T14:36:13Z")

</div>

For those like me who struggled to figure out how to get counts data for hashing antibodies in .obs, the below link is helpful. This step is necessary for demultiplexing antibody hashed samples by hashsolo program.

> [@How to install solo-sc or use hashsolo from scvi?](http://discourse.scverse.org/t/how-to-install-solo-sc-or-use-hashsolo-from-scvi/1702/5):
>
> Thank you. It worked for my dataset. The semicolon might be a typo. The code is as the following: import scanpy as sc adata=sc.read\_10x\_h5("filtered\_feature\_bc\_matrix.h5",gex\_only=False) htos = list(adata.var[adata.var["feature\_types"] == "Multiplexing Capture"].index.unique()) for hto in htos: adata.obs[hto] = adata.X[:,adata.var.index == hto].toarray() import scanpy.external as sce sce.pp.hashsolo(adata, ['hash1', 'hash2', 'hash3','hash4'])

My fastq files were processed through Cellranger 8.0.1 where I provided information on TotalseqB antibody barcodes as well as Hashtag barcodes. That is the reason I had antibody counts in .X layer of my muon data or mdata which I needed to transfer to .obs of filtered\_feature\_bc\_matrix file.

If my understanding is incorrect, please feel free to correct.

---

_[View the full topic](https://discourse.scverse.org/t/cell-hashing-analysis-using-muon/3445)._
