Open Fougere87 opened 3 years ago
I found the same problem in sc.pl.dotplot
, but i found in \scanpy\plotting\_anndata.py
2236th line:
if dendrogram_key not in adata.uns:
from ..tools._dendrogram import dendrogram
logg.warning(
f"dendrogram data not found (using key={dendrogram_key}). "
"Running `sc.tl.dendrogram` with default parameters. For fine "
"tuning it is recommended to run `sc.tl.dendrogram` independently."
)
dendrogram(adata, groupby, key_added=dendrogram_key)
dendrogram
is not add var_names
, and i fixed it in my source code
anndata 0.7.8 scanpy 1.9.1
I found that scanpy always only uses all var_names if the parameter var_names
is set to not None.
Any update on this? I encountered the same issue
[ ] (optional) I have confirmed this bug exists on the master branch of scanpy. Latest on pip at least scanpy-1.6.0
I'm using the sc.pl.dendrogram multiple times different lists of genes on my dataset (incrementing number of highly variable genes basically). The outputted dendrogram is alway the same (I guess it's taking into account all the genes because it's using something like 32go of ram....)
Minimal code sample (that we can copy&paste without having any data)
then
outputs: [499, 1000, 1999, 2999, 4000, 4999] (so i have my different genesets)
then
outputs:
At first I was creating all dendrograms in a list comprehension and it did the same. I also directly inputted a list of my own and I obtained the same result.... I guess dendrogram don't detect the genes.
When running functions such as
Everything works fine !
Thanks by advance, C
Versions
1.6.0