You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Really scary behavior: it omits the gene renamed! so nrow becomes n-1!
(A) At least this should be a "nrow !=" type of error! )
B) Question
How can I rename genes in freshly created object in Seurat v5?
I realized that names are also stored in obj@assays$RNA@features@.Data. Is there any other place that needs replacement? I guess if I replace rownames of @features@.Data, SetAssayData wont complain?
The text was updated successfully, but these errors were encountered:
Hello,
This is a 2-in-1 issue (A, B).
I am trying to rename genes in Seurat. I know you principally disagree, however I need it.
For that end, I:
obj <- SetAssayData(obj, layer = layer.name, new.data = matrix_n)
wherematrix_n
contains e.g. a single gene renamed.Expected
Matrix replaced.
Observed
nrow
becomesn-1
!(
A)
At least this should be a "nrow !=" type of error! )B)
Questionobj@assays$RNA@features@.Data
. Is there any other place that needs replacement? I guess if I replace rownames of@features@.Data
, SetAssayData wont complain?The text was updated successfully, but these errors were encountered: