You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of scanpy.
(optional) I have confirmed this bug exists on the main branch of scanpy.
What happened?
I apologize if this was already reported, I looked through the other issues but I believe I did not see another that asked this same issue.
I am running a POC for using scanpy based workflow over Seurat with larger analyses. I ran the tutorial and then attempted to use my own data. When inputting marker genes in a dict (formatted similarly to marker_genes in the tutorial), the program returns the following error:
KeyError: "Could not find keys '['gene_of_interest']' in columns of `adata.obs` or in adata.var_names."
Where 'gene_of_interest' is some but not all marker genes (I currently don't know what would cause some genes to generate this error and others not have this error).
However, running the command:
Generates a dotplot where we see the gene does indeed show up in the dataset in certain clusters. This occurs in genes with both low-to-no expression in clusters, as well as high expression in clusters.
Minimal code sample
# Using the data from tutorial:marker_genes= {
"Test": ["PDGFRB"]
}
sc.pl.dotplot(adata, marker_genes, groupby="leiden_res_0.50", standard_scale="var")
# KeyError: "Could not find keys '['PDFGRB']' in columns of `adata.obs` or in adata.var_names."# Workaround:sc.pl.dotplot(adata, "PDGFRB", groupby="leiden_res_0.50", standard_scale="var")
# Generates correct dotplot showing substancial expression in cluster 9
Please make sure these conditions are met
What happened?
I apologize if this was already reported, I looked through the other issues but I believe I did not see another that asked this same issue.
I am running a POC for using scanpy based workflow over Seurat with larger analyses. I ran the tutorial and then attempted to use my own data. When inputting marker genes in a dict (formatted similarly to
marker_genes
in the tutorial), the program returns the following error:Where 'gene_of_interest' is some but not all marker genes (I currently don't know what would cause some genes to generate this error and others not have this error).
However, running the command:
Generates a dotplot where we see the gene does indeed show up in the dataset in certain clusters. This occurs in genes with both low-to-no expression in clusters, as well as high expression in clusters.
Minimal code sample
Error output
Versions
The text was updated successfully, but these errors were encountered: