Question: Anndata: finding cells that express a specific gene
1
gravatar for Duckula
4 months ago by
Duckula20
Duckula20 wrote:

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

rna-seq python • 241 views
ADD COMMENTlink modified 4 months ago • written 4 months ago by Duckula20
2
gravatar for Duckula
4 months ago by
Duckula20
Duckula20 wrote:

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

adata[:, adata.var_names.str.match('genenames')]
ADD COMMENTlink modified 4 months ago by genomax65k • written 4 months ago by Duckula20
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1791 users visited in the last hour