I get 0 mitochondrial gene/cell. However they are still present as I find some in the following steps (highly variable genes). I am applying it on Drosophila melanogaster. In my transcripts_to_genes file the mitochondrial genes are annotated "mt:", so I tried to adapt the code :
mito_ensembl_ids = sc.queries.mitochondrial_genes("dmelanogaster", attrname="ensembl_gene_id",chromosome='mt:')
I also tried to change ensembl_gene_id into external_gene_name, but to no avail.
Did anyone encounter the same issue ?
Hi,
While cleaning my data following your protocol (kb_into_2_python) I ran into an issue concerning the mitochondrial filtering. When running :
I get 0 mitochondrial gene/cell. However they are still present as I find some in the following steps (highly variable genes). I am applying it on Drosophila melanogaster. In my transcripts_to_genes file the mitochondrial genes are annotated "mt:", so I tried to adapt the code :
mito_ensembl_ids = sc.queries.mitochondrial_genes("dmelanogaster", attrname="ensembl_gene_id",chromosome='mt:')
I also tried to change ensembl_gene_id into external_gene_name, but to no avail. Did anyone encounter the same issue ?