question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create error model (IndexError)

See original GitHub issue

Encountered errors when running iss model:

DEBUG:iss.app:iss version 1.3.3 DEBUG:iss.app:Using verbose logger INFO:iss.app:Starting iss model INFO:iss.app:Using KDE ErrorModel INFO:iss.bam:Reading bam file: sortedRef.bam INFO:iss.bam:Calculating insert size distribution /home/anting/.local/lib/python3.6/site-packages/numpy/core/_methods.py:140: RuntimeWarning: Degrees of freedom <= 0 for slice keepdims=keepdims) /home/anting/.local/lib/python3.6/site-packages/numpy/core/_methods.py:110: RuntimeWarning: invalid value encountered in true_divide arrmean, rcount, out=arrmean, casting=‘unsafe’, subok=False) /home/anting/.local/lib/python3.6/site-packages/numpy/core/_methods.py:132: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) Traceback (most recent call last): File “/home/anting/.local/bin/iss”, line 11, in <module> sys.exit(main()) File “/home/anting/.local/lib/python3.6/site-packages/iss/app.py”, line 489, in main args.func(args) File “/home/anting/.local/lib/python3.6/site-packages/iss/app.py”, line 263, in model_from_bam bam.to_model(args.bam, args.output) File “/home/anting/.local/lib/python3.6/site-packages/iss/bam.py”, line 189, in to_model hist_insert_size = modeller.insert_size(insert_size_dist) File “/home/anting/.local/lib/python3.6/site-packages/iss/modeller.py”, line 28, in insert_size bw_method=0.2 / np.std(insert_size_distribution, ddof=1)) File “/home/anting/.local/lib/python3.6/site-packages/scipy/stats/kde.py”, line 195, in init raise ValueError(“dataset input should have multiple elements.”) ValueError: dataset input should have multiple elements.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
HadrienGcommented, Apr 2, 2019

In that case I’d advise against using insilicoseq as it will not accurately model homopolymers errors

1reaction
antingHcommented, Feb 28, 2019

Hi Hadrien, the bam files are at https://drive.google.com/file/d/1PhGeyhw6zo77pmy8SjoibfD8hyIUcRVL/view?usp=sharing Thanks for working on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix IndexError in Python - Rollbar
The IndexError in Python occurs when an item from a list is attempted to be accessed that is outside the index range of...
Read more >
Keras Model Errors on Loading using TF2.3 - IndexError
When I was trying to load the sequential model here using tf.keras.models.load_model in TF 2.3.1, an error is thrown at the following ...
Read more >
Index Error, using an already trained LDA model
Hello! I am trying to map topics to each document in a corpus of ca 2000 academic papers. So following Bleis (2003) recommendations...
Read more >
How To Handle Errors in a Flask Application - DigitalOcean
You'll create custom error pages, use the Flask debugger to troubleshoot exceptions, and use logging to track events in your application.
Read more >
Built-in Exceptions — Python 3.11.1 documentation
User code can create subclasses that inherit from an exception type. ... a key or index used on a mapping or sequence is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found