Skip to content

Error in .rowNamesDF<-(x, value = value) : invalid 'row.names' length #12

Description

@Yuanxiao369

Hello, I get an error when I use the function 'ConstExpRef'. The error is

Error in .rowNamesDF<-(x, value = value) : invalid 'row.names' length
In addition: Warning message:
In data.frame(..., check.names = FALSE) :
row names were found from a short variable and have been discarded

It occurs at this step "Now compute marker specificity scores and filter markers".

I prepare the three file this function needs. The first one is exp.m matrix, I used the data matrix of seurat object; and celltype.idx file in 'named num' class; and a chr vector of namesCellT.v.

Below is the running result of this function:

> expref <- ConstExpRef(exp.m = exp.m, celltype.idx = mycell.idx,
                       namesCellT.v = namescell)
[1] "Finding marker genes"
$Astrocyte
[1] 17071
$B_cell
[1] 12450
$Endothelial
[1] 9661
$Fibroblasts
[1] 19259
$Myeloid
[1] 20702
$NK_cell
[1] 16420
$T_cell
[1] 19082
$Tumor
[1] 22852
[1] "Now compute marker specificity scores and filter markers"
Error in `.rowNamesDF<-`(x, value = value) : invalid 'row.names' length
In addition: Warning message:
In data.frame(..., check.names = FALSE) :
  row names were found from a short variable and have been discarded

I don't know why I get this error. Looking forward to your answer. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions