Closed HelloWorldLTY closed 8 months ago
Thank you for your feedback. Yes, it can impute missing ST genes, as long as they are in the single cell reference.
From the error message, the program seems unable to find the genes ['SAMD11', 'NOC2L', 'KLHL17', '] in columns of raw_scrna_df
, but they seem to be in scrna_adata.var_names
as test genes to be imputed.
Could you double check if all the scrna_adata.var_names
genes are in raw_scrna_df
? Maybe the following code will print 0 if genes in the former is a subset of the latter.
import numpy as np
len(np.setdiff1d(scrna_adata.var_names, raw_scrna_df.columns))
Thanks, you are right. After generating overlap genes between these two modalities, I successfully run the code.
Hi, I notice that tranSpa can be used to fill the missing genes ( for example, genes only in scrna-seq, not sequenced by spatial transcriptomic data). But if I set test genes as all genes from scrnas-eq data, I got such error:
Could you please help me address this problem? Thanks.