Scanorama error: passed valued is not matched to AnnData shape #150
Replies: 3 comments 1 reply
-
The error states that the length of variable names is different between the passed value and the AnnData format. it is important to ensure that the variable names are correctly aligned. check the variable names in each sample using the AnnData object's var_names attribute. print(adata_A.var_names) |
Beta Was this translation helpful? Give feedback.
-
To resolve this issue, you need to ensure that the number of variable names provided matches the number of variables (resources) in your AnnData object. |
Beta Was this translation helpful? Give feedback.
-
Check if there are any parameters in the correct_scanpy function that affect the gene count. Some parameters can control how genes are treated during correction. also check that the input data "AnnData objects" is correctly formatted and contains the genes in the expected order. Make sure both samples have the same set of genes (19465) before correction. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am pretty new to python, and I am trying to use scanorama to integrate my two samples.
I just follow the tutorial of scanpy and had this error, it seems the numbers doesn't match but I don't how to fix it. Any advice will be greatly appreciated! thanks!
ValueError: Length of passed value for var_names is 19465, but this AnnData has shape: (1526, 19454)
Beta Was this translation helpful? Give feedback.
All reactions