Open sygongcode opened 5 years ago
Hello All, I am a totally new one in learning single cell RNA_seq. When I was doing quality control, I met this problem. Can anyone help me? Thank you so much
Hi,
Is your mito_genes
vector all boolean? And does it have a non-zero sum? You seem to be getting NA values according to the error I guess.
Hi,
Is your
mito_genes
vector all boolean? And does it have a non-zero sum? You seem to be getting NA values according to the error I guess.
Thank you for your reply. I think the 'mito_genes' vector was all boolean. Maybe it has a zero-sum. So, how can I resolve this problem, Do you have any suggestions?
If you have no mitochondrial genes, you can't plot them. The first line of your code looks for genes whose names start with "MT-". For mouse data that should be "mt-", or maybe you have a different nomenclature... or you don't have any mitochondrial genes in your dataset (possible for Cell ranger versions < 2.0).
I can't really debug this, as it requires looking and playing with your dataset.
Good luck!
If you have no mitochondrial genes, you can't plot them. The first line of your code looks for genes whose names start with "MT-". For mouse data that should be "mt-", or maybe you have a different nomenclature... or you don't have any mitochondrial genes in your dataset (possible for Cell ranger versions < 2.0).
I can't really debug this, as it requires looking and playing with your dataset.
Good luck!
Thank you for your help. My data is Drosophila data. I think maybe there are no mitochondrial genes in the data. Your reply is very helpful.
The problem is Drosophila gtf has a gene with gene_name as 'nan'.
3L FlyBase CDS 14187463 14187689 . - 2 gene_id "FBgn0036414"; transcript_id "FBtr0089524"; exon_number "5"; gene_name "nan"; gene_source "FlyBase"; gene_biotype "protein_coding"; transcript_name "nan-RA"; transcript_source "FlyBase"; transcript_biotype "protein_coding"; protein_id "FBpp0088509";