Closed msteph11 closed 1 year ago
I have no idea; never seen this error before. I'm guessing that nrow()
on your test dataset is returning NULL
, leading to the observed error message. If you can create a minimum reproducible example, I can have a look at it. You could also debug(SingleR:::.to_clean_matrix)
and step through the function to see what the value of x
is.
maybe your ref_dataset have some problem.I also encounted this error ,I find my ref is like this
but it should be a SummarizedExperiment, so I redownload the dataset and load it.
celldex::HumanPrimaryCellAtlasData hpca.se <- HumanPrimaryCellAtlasData()
then my code run successfully.
Hello,
When running the following code:
I get the error:
Error in is.null(rownames(x)) && nrow(x) : invalid 'y' type in 'x && y'
I was wondering if you could provide some guidance as to why this is occurring. I think the problem might be with
target_dataset
, because when I run the code using the ImmGen reference dataset instead of my own one it gives the same error. Here's the code I use to create my target dataset:And this is what the object looks like:
Also, for reference, here is what the
ref_dataset
looks like: