Anndata: finding cells that express a specific gene
1
1
Entering edit mode
5.4 years ago
Duckula ▴ 50

Dear all, I am analyzing my single cell data using Scanpy package and as you may knwo it stores my data in anndata object which is a panda like data frame. I am interested to know which of my cells express the gene x. Does anyone has an idea how would I be able to access that information? I am not really familiar with data structures in Python and specially panda

python RNA-Seq • 5.9k views
ADD COMMENT
5
Entering edit mode
5.4 years ago
Duckula ▴ 50

Ok I found my answer :D It was not that complicated

adata[:, adata.var_names.str.match('genenames')]
ADD COMMENT

Login before adding your answer.

Traffic: 3225 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6