Open QuietgraceH opened 1 year ago
Sorry to bother you again. I would like to ask, my sample features are gene names, which are different from the reference features, how to solve this problem.When I run this code assert reference_data.var.shape[0] == sample.var.shape[0]
I get an error AssertionError Traceback (most recent call last) Cell In[21], line 1 ----> assert reference_data.var.shape[0] == sample.var.shape[0]
query data feature is a dataframe(24919 rows × 0 columns), as follow: OR4F5 LOC729737 LOC101928626 FAM87B LINC01128 ... RAB39B CLIC2 H2AFB1 F8A2 TMLHE
Hi Jingya, scATAnno cannot use genes as input. You will need to preprocess your scATAC-seq data by following the instructions here (https://github.com/Yijia-Jiang/scATAnno-main/blob/main/prep_data/RunTILAtlas.sh). After you obtain the peak-cell count matrix for your scATAC-seq data, then follow the tutorial.
Hi,Yijia.Thank you for the tool you developed. It is a necessary and practical method for cell type definition. Now when I use the BCC_sample sample for testing, I run the following code
query_KNN =scATAnno_assignment.scATAnno_KNN_assign(reference,query,reference_label_col="celltypes")
and report an error. The error message is as follows. I don’t know how to solve it. I would like to ask you for help.Python version is 3.8.17. Error message:Sincerely, Jingya