Closed x11xx1 closed 6 days ago
@x11xx1
Does the data.genes have a column real_gene_name
? If so, you can set parameter gene_name_index
as True to set gene symbols as index instead when reading test_file
.
@x11xx1
Does the data.genes have a column
real_gene_name
? If so, you can set parametergene_name_index
as True to set gene symbols as index instead when readingtest_file
.
The real_gene_names
is an HGNC symbol column. It works. THX!!!
Hi, I‘m seeking for your kindly help. I tried to used SingleR in Stereopy to annotate the cell for saw8 output and my ref is BlueprintEncodeData.h5ad from SingleR. The code is as below, just like your tutorials.
It encountered an AssertionError: no gene of
test_exp_data.gene_names
inref_exp_data.gene_names
. Then I found that data.gene_names are ensembl IDs while ref.gene_names are HGNC symbols and tried to replace the gene_names.However, the error message is can't set attribute data.gene_names = new_gene_names AttributeError: can't set attribute
Are there any ways to change the gene_names? Many thanks🙏