Skip to content
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

Error in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : span is too small #1

Open
danshu opened this issue Dec 5, 2018 · 6 comments

Comments

@danshu
Copy link

danshu commented Dec 5, 2018

Hi,

I'm using SC2P and have the following error:
Error in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, :
span is too small
Calls: eset2Phase -> loess -> simpleLoess

Any suggestion on how to solving this problem?

Best,
Danshu

@haowulab
Copy link
Owner

haowulab commented Dec 6, 2018

I'll have to see the data to figure this out. Can you reproduce this problem in a small portion of data?

@dongyuanwu
Copy link

Hello,

I met the same error when using the eset2Phase() function. And also got a warning message said: In eset2Phase(eset) : Zero proportion is greater than estimation. Any idea about them?

Thanks,
Dongyuan

@haowulab
Copy link
Owner

haowulab commented Jun 2, 2020

It's a warning message, happened when estimated zero proportion is too high. This can be caused by the model assumption, eg, the data doesn't behave as our assumption. We developed the model on smart-seq data. It's possible that when read coverages are low, such as from 10X, this will happened. But we'll correct that and issue a warning. It's not an error and the downstream analysis should be okay.

hao

@dongyuanwu
Copy link

It's a warning message, happened when estimated zero proportion is too high. This can be caused by the model assumption, eg, the data doesn't behave as our assumption. We developed the model on smart-seq data. It's possible that when read coverages are low, such as from 10X, this will happened. But we'll correct that and issue a warning. It's not an error and the downstream analysis should be okay.

hao

Thanks so much for your quick reply! I was just wondering if it is the reason for the error message which I also met: Error in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : span is too small. This error occurred when I used eset2Phase function. Is there any solution now?

@haowulab
Copy link
Owner

haowulab commented Jun 2, 2020

As I said before, I'll have to see the data to figure this out. Can you reproduce the loess problem in a small portion of data?

@dongyuanwu
Copy link

As I said before, I'll have to see the data to figure this out. Can you reproduce the loess problem in a small portion of data?

I uploaded a demo for it. Hope it will work.
https://drive.google.com/file/d/1zqmSiHF19OA_O4NMfM8EZa4pmRPFalla/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants