-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiBatchNorm: Error in .rescale_size_factors(stats$averages, stats$size.factors, min.mean = min.mean) : median ratio of averages between batches is not finite #43
Comments
Hi, @LTLA, by the way, some questions about the usage of
and from https://support.bioconductor.org/p/9145895/#9145905
and the same in the http://bioconductor.org/books/3.16/OSCA.multisample/integrating-datasets.html#slower-setup All of these indicates it's much better to do And from the comment of #16 (comment):
it seems we should do most operation in the original normalized counts but not the normalized counts by
|
If you recall how In your case, somehow one or the other average pseudo-cell has >50% of zeros, even after filtering for a minimum mean. This implies that one batch is completely silent for many genes that are expressed in another batch. I don't know why this might happen, but it seems pretty extreme; you might consider finding these genes and removing them, because it probably won't be sensible to include them in a batch correction step. |
Thanks for your reply. I found this situation commonly when we mixed samples with different tissure types. I mixed blood samples and tumor samples, then I gained epithelial cells after QC, normalization, MNN, clustering and annotation, in this way, there will be small set of epithelial cells from blood (1-5 cells on average in each blood sample, I think this is false positive). subsequently, I subsetted epithelial cells and run By following your advice, is it good to use |
Hi, when I use
multiBatchNorm
to do normalization and adjust for the sequencing depth, I tried to figure out it by changing the argumentmin.mean
, but it cannot work. And it seems this problem has never been reported since I googled and searched this in github without any result.When we encountered this error, does it mean
multiBatchNorm
is not fit for out data and we should do something else likecosineNorm
function?The text was updated successfully, but these errors were encountered: