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

chrM error #76

Open
tianxiahuihui opened this issue Jan 3, 2020 · 5 comments
Open

chrM error #76

tianxiahuihui opened this issue Jan 3, 2020 · 5 comments

Comments

@tianxiahuihui
Copy link

tianxiahuihui commented Jan 3, 2020

Hello, I have meet an error as the picture shows when used the clipper.
image
ValueError: invalid contig chrM. Could you tell me how to solve this problem?

Thank you.

@tianxiahuihui
Copy link
Author

tianxiahuihui commented Jan 3, 2020

I have solved this problem because of bedtobam. The hg19.size must have the chrM. But when I run the clipper, I meet a warning as the picture shows.
WARNING:py.warnings:/home/chendenghui/miniconda3/envs/bed/lib/python2.7/site-packages/scipy/interpolate/fitpack2.py:227: UserWarning:
The maximal number of iterations maxit (set to 20 by the program)
allowed for finding a smoothing spline with fp=s has been reached: s
too small.
There is an approximation returned but the corresponding weighted sum
of squared residuals does not satisfy the condition abs(fp-s)/s < tol.
warnings.warn(message)

what is the wrong?

Thank you.

@algaebrown
Copy link
Contributor

It is warning that the spline curve-fitting scipy.interpolate.UnivariateSpline in SmoothingSpline does not fit the data very well. There can be many possible reasons. For example, not enough data points in the defined peak region, need to change smoothing factor ...etc. Right now our SmoothingSpline class will automatically assign s = len(peak).
scipy.interpolate.UnivariateSpline
SmoothingSpline

@jkkbuddika
Copy link

I have solved this problem because of bedtobam. The hg19.size must have the chrM. But when I run the clipper, I meet a warning as the picture shows.
WARNING:py.warnings:/home/chendenghui/miniconda3/envs/bed/lib/python2.7/site-packages/scipy/interpolate/fitpack2.py:227: UserWarning:
The maximal number of iterations maxit (set to 20 by the program)
allowed for finding a smoothing spline with fp=s has been reached: s
too small.
There is an approximation returned but the corresponding weighted sum
of squared residuals does not satisfy the condition abs(fp-s)/s < tol.
warnings.warn(message)

what is the wrong?

Thank you.

@tianxiahuihui can you please tell me how exactly you fixed this issue (at least partially)? I am trying to run clipper on a Drosophila dataset and having a hard time getting it to work because of the similar issue (outlined in #79 ). Any advice would help!

Thanks!!!

@maximus-sci
Copy link

maximus-sci commented Jul 7, 2023

I have solved this problem because of bedtobam.

I would also love to know how you solved this issue. I cannot run clipper due to the exact same error

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/fmax/miniconda3/envs/clipper3/bin/clipper", line 8, in <module>
    sys.exit(call_main())
  File "/home/fmax/miniconda3/envs/clipper3/lib/python3.7/site-packages/clipper/src/main.py", line 266, in call_main
    main(options)
  File "/home/fmax/miniconda3/envs/clipper3/lib/python3.7/site-packages/clipper/src/main.py", line 105, in main
    peaks_dicts.append(job.get(timeout=options.timeout))
  File "/home/fmax/miniconda3/envs/clipper3/lib/python3.7/multiprocessing/pool.py", line 657, in get
    raise self._value
ValueError: invalid contig `chrM`

@tslzs
Copy link

tslzs commented Jul 18, 2023

I have solved this problem because of bedtobam. The hg19.size must have the chrM. But when I run the clipper, I meet a warning as the picture shows. WARNING:py.warnings:/home/chendenghui/miniconda3/envs/bed/lib/python2.7/site-packages/scipy/interpolate/fitpack2.py:227: UserWarning: The maximal number of iterations maxit (set to 20 by the program) allowed for finding a smoothing spline with fp=s has been reached: s too small. There is an approximation returned but the corresponding weighted sum of squared residuals does not satisfy the condition abs(fp-s)/s < tol. warnings.warn(message)

what is the wrong?

Thank you.

I have met same problem, do you solve it?

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

No branches or pull requests

5 participants