Closed ywang65 closed 5 years ago
Hi @ywang65
Looks like scran
is returning negative size factors, which isn't ideal. If I remember rightly, scran
's algorithm is inherently random, so this may be stochastic.
To solve this, consider a different size factor calculation e.g. edgeR size factors:
sf <- edgeR::calcNormFactors(counts(example_sce))
stopifnot(all(sf > 0))
cellassign(t(counts(example_sce)),example_rho, sf)
Does that fix things?
Yes, it works. Thank you very much!
From: Kieran R Campbell notifications@github.com Reply-To: Irrationone/cellassign reply@reply.github.com Date: Tuesday, February 19, 2019 at 4:49 PM To: Irrationone/cellassign cellassign@noreply.github.com Cc: "Wang,Yuanxin" YWang65@mdanderson.org, Mention mention@noreply.github.com Subject: [EXT] Re: [Irrationone/cellassign] error when using raw count matrix as input (#23)
WARNING: This email originated from outside of MD Anderson. Please validate the sender's email address before clicking on links or attachments as they may not be safe.
Hi @ywang65https://github.com/ywang65
Looks like scran is returning negative size factors, which isn't ideal. If I remember rightly, scran's algorithm is inherently random, so this may be stochastic.
To solve this, consider a different size factor calculation e.g. edgeR size factors:
sf <- edgeR::calcNormFactors(counts(example_sce))
stopifnot(all(sf > 0))
cellassign(t(counts(example_sce)),example_rho, sf)
Does that fix things?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Irrationone/cellassign/issues/23#issuecomment-465343343, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqaW5iEdJaZAuJ6sPjc5vuB5paVs6UhSks5vPH9igaJpZM4bEAkR. The information contained in this e-mail message may be privileged, confidential, and/or protected from disclosure. This e-mail message may contain protected health information (PHI); dissemination of PHI should comply with applicable federal and state laws. If you are not the intended recipient, or an authorized representative of the intended recipient, any further review, disclosure, use, dissemination, distribution, or copying of this message or any attachment (or the information contained therein) is strictly prohibited. If you think that you have received this e-mail message in error, please notify the sender by return e-mail and delete all references to it and its contents from your systems.
Hi,
I encountered some problem when using raw count matrix as the input. I just used the example_sce and example_rho in the example. So my code is
cellassign(t(counts(example_sce)),example_rho)
and it shows:No size factors supplied - computing from matrix. It is highly recommended to supply size factors calculated using the full gene set 20 NaN Error in while (mi < max_iter_adam && Q_diff > rel_tol_adam) { : missing value where TRUE/FALSE needed In addition: Warning message: In .local(x, ...) : encountered negative size factor estimates
What should I do for this? Thanks!