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.

RaGOO failed Mapping short reads with minimap2 -- RuntimeWarning: Mean of empty slice

See original GitHub issue

Hi @malonge,

I was trying to scaffold an assembly using your great tool. However I keep getting this warning and the minimap2 mapping is not done all.

Here is the command I ran using python3 :

python ../ragoo.py -b -R PE.inter.fq -T sr -t 100 -g 250 -C ../6000flye.ctg.fa ../PFLA.genome.fasta

And here the error-message

nkal/anaconda3/bin/minimap2 6000flye.ctg.fa  PFLA.genome.fasta 
Sun Jul 28 19:44:09 2019 --- Misassembly correction has been turned on. This automatically inactivates chimeric contig correction.
Sun Jul 28 19:44:09 2019 --- Reading alignments
Sun Jul 28 19:44:09 2019 --- Aligning raw reads to contigs
Sun Jul 28 19:44:09 2019 --- Computing contig coverage
/home/nguinkal/anaconda3/envs/mypython3/lib/python3.7/site-packages/numpy-1.17.0-py3.7-linux-x86_64.egg/numpy/core/fromnumeric.py:3257: RuntimeWarning: Mean of empty slice.
  out=out, **kwargs)
/home/nguinkal/anaconda3/envs/mypython3/lib/python3.7/site-packages/numpy-1.17.0-py3.7-linux-x86_64.egg/numpy/core/_methods.py:161: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)

Best, Julien

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
malongecommented, Jul 29, 2019

Thanks - yes sorry for the inconvenience. This is one of the top things on my TODO list since it is much more convenient to be able to provide a path.

0reactions
bbalog87commented, Jul 29, 2019

Hi @malonge, It seems to work now, since minimap2 is running for more than 1h, which has not happened before. Making a symbolic link of the PE-reads within the the same directory as ragoo.py might have fixed the issue. Thank you very much for the prompt and helpful support. Best, Julien

Read more comments on GitHub >

github_iconTop Results From Across the Web

mean, nanmean and warning: Mean of empty slice
I came here when I searched for this warning: RuntimeWarning: Mean of empty slice. In my case it was due to finding the...
Read more >
warnings.warn("Mean of empty slice.", RuntimeWarning)
Hi, I am new to qiime and trying to demultiplex a set of reads from 9 different samples. If I use split_libraries_fastq.py -i ......
Read more >
[Solved] NumPy RuntimeWarning: Mean of empty slice - Finxter
The reason this warning arises is because you apply the np.nanmean() function on an empty array. The function doesn't cause an error if...
Read more >
Runtime Warning: Mean of Empty Slice Error
Hello, I'm getting an error when attempting to use the Deeptools python package. I used this as recently as yesterday with no issues....
Read more >
Michael Alonge RaGOO Issues - Giters
Michael Alonge RaGOO: RaGOO is no longer supported. ... How to use the short PE reads in the -R parameter ... RuntimeWarning: Mean...
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