RaGOO failed Mapping short reads with minimap2 -- RuntimeWarning: Mean of empty slice
See original GitHub issueHi @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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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