constantAmateur / SoupX

R package to quantify and remove cell free mRNAs from droplet based scRNA-seq data
249 stars 34 forks source link

Errror while reading SoupChannel #84

Closed hothri closed 2 years ago

hothri commented 2 years ago

I am getting an error while trying to read filtered and raw featured matrix with SoupChannel. sc = SoupChannel(tod,toc)

Error in if (nrow(tod) != nrow(toc)) stop("The provided table of droplets (tod) and table of counts (toc) have different numbers of genes. Both tod and toc must have the same genes in the same order.") : argument is of length zero.

Both the files have same number of genes. Why am I getting this error?

constantAmateur commented 2 years ago

It's impossible to know without having access to your data, but the error message is very explicit. All this test does is test that nrow(tod) and nrow(toc) match. So if you're getting this message, they don't match. Perhaps try checking how you are reading tod and toc in?