split_libraries_fastq.py RuntimeWarning: Mean of empty slice.

507 views
Skip to first unread message

Constantino Schillebeeckx

unread,
Aug 7, 2015, 10:47:10 AM8/7/15
to Qiime Forum
When I run the command:
split_libraries_fastq.py -i primerTrimmed50.fastq -b primerTrimmed.index50.fastq -m old_files/Mapping_File_150529_AEF8U.txt --barcode_type 13 --rev_comp_mapping_barcodes -o split_lib

I get a runtime error:
/usr/lib/python2.7/dist-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice.
  warnings
.warn("Mean of empty slice.", RuntimeWarning)

Unfortunately that numpy error doesn't tell me much more than a mean being calculated on an empty array.  I've previously never had problems with this script.  I'm hoping someone can tell me what I'm doing wrong.

Thanks
primerTrimmed.index50.fastq
primerTrimmed50.fastq
Mapping_File_150529_AEF8U.txt

Tony Walters

unread,
Aug 7, 2015, 11:11:15 AM8/7/15
to qiime...@googlegroups.com
Hello Constantino,

Can you try running this with --rev_comp_mapping_barcodes removed? I think in this case, since there is only one read, it's not matching anything, and the zero data left is raising the warning. The seq was assigned to a barcode when I removed --rev_comp_mapping_barcodes and didn't raise the warning.

--

---
You received this message because you are subscribed to the Google Groups "Qiime Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qiime-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Constantino Schillebeeckx

unread,
Aug 7, 2015, 11:25:21 AM8/7/15
to Qiime Forum
Looks like that did the trick!

Even on my full dataset I was getting the runtime error with the --rev_comp_mapping_barcodes option.

Thanks for the help!
Reply all
Reply to author
Forward
0 new messages